pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-07-10
2021-07-10 14:32:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>
36e8ba1a67e9fddd5d8700680f948fefc6451576 (
9
lines) (+
9
/-
0
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Detect circularities in simple_describe_type().
2316:
void simple_describe_type(struct pike_type *s) {
+
DECLARE_CYCLIC();
+
if (BEGIN_CYCLIC(s, NULL)) {
+
Pike_fatal("Circular type!\n");
+
}
+
SET_CYCLIC_RET(1);
+
if (s) { /* fprintf(stderr, "[[[%p]]]", s); */ switch(s->type & PIKE_T_MASK) {
2630:
} else { fprintf(stderr, "__unknown__"); }
+
+
END_CYCLIC();
} static void low_describe_int_range(struct string_builder *s,