instead of `unsigned'.
(print_state): Donnot call obstack_object_size () in obstack_grow ()
to avoid macro variables shadowing.
+2001-08-24 Marc Autret <autret_m@epita.fr>
+
+ * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
+ instead of `unsigned'.
+ (print_state): Donnot call obstack_object_size () in obstack_grow ()
+ to avoid macro variables shadowing.
+
2001-08-23 Marc Autret <autret_m@epita.fr>
* src/lex.c (percent_table): Typo: s/naem/name/.
2001-08-23 Marc Autret <autret_m@epita.fr>
* src/lex.c (percent_table): Typo: s/naem/name/.
-static unsigned node_output_size = 0;
+static size_t node_output_size = 0;
/* Return an unambiguous printable representated, allocated in slot 0,
for NAME, suitable for C strings. */
/* Return an unambiguous printable representated, allocated in slot 0,
for NAME, suitable for C strings. */
}
/* `obstack_cat' NODE_OBSTACK to GRAPH_OBSTACK. */
}
/* `obstack_cat' NODE_OBSTACK to GRAPH_OBSTACK. */
- obstack_grow (&graph_obstack,
- obstack_base (&node_obstack),
- obstack_object_size (&node_obstack));
- obstack_finish (&node_obstack);
+ {
+ size_t obs_size;
+
+ obs_size = obstack_object_size (&node_obstack);
+ obstack_grow (&graph_obstack,
+ obstack_base (&node_obstack),
+ obs_size);
+ obstack_finish (&node_obstack);
+ }