/* VCG description handler for Bison.
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright 2001, 2002 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
#include "vcg_defaults.h"
#include "quotearg.h"
-/* Return an unambiguous printable representated, allocated in slot 0,
- for NAME, suitable for C strings. */
+/* Return an unambiguous printable representated, for NAME, suitable
+ for C strings. Use slot 2 since the user may use slots 0 and 1.
+ */
+
static char const *
quote (char const *name)
{
- return quotearg_n_style (0, c_quoting_style, name);
+ return quotearg_n_style (2, c_quoting_style, name);
}
case orchid: return "orchid";
case black: return "black";
default:
- assert (!"Not a default color.");
+#define A_known_default_color 0
+ assert (A_known_default_color);
}
return NULL;
}
case left_justify: return "left_justify";
case right_justify: return "right_justify";
default:
- assert (!"Not a text mode.");
+#define A_known_text_mode 0
+ assert (A_known_text_mode);
}
return NULL;
}
case ellipse: return "ellipse";
case triangle: return "triangle";
default:
- assert (!"Not a shape.");
+#define A_known_shape 0
+ assert (A_known_shape);
}
return NULL;
}
case dfs: return "dfs";
case tree: return "tree";
default:
- assert (!"Not a layout algorithm.");
+#define A_known_layout_algorithm 0
+ assert (A_known_layout_algorithm);
}
return NULL;
}
case no: return "no";
case yes: return "yes";
default:
- assert (!"Either yes nor no.");
+#define Either_yes_nor_no 0
+ assert (Either_yes_nor_no);
}
return NULL;
}
case left_to_right: return "left_to_right";
case right_to_left: return "right_to_left";
default:
- assert (!"Not an orientation.");
+#define A_knownn_orientation 0
+ assert (A_knownn_orientation);
}
return NULL;
}
case top: return "top";
case bottom: return "bottom";
default:
- assert (!"Not an alignement.");
+#define A_known_alignement 0
+ assert (A_known_alignement);
}
return NULL;
}
case fixed: return "fixed";
case free_a: return "free";
default:
- assert (!"Not an arrow mode.");
+#define A_known_arrow_mode 0
+ assert (A_known_arrow_mode);
}
return NULL;
}
case barymedian: return "barymedian";
case medianbary: return "medianbary";
default:
- assert (!"Not a crossing type.");
+#define A_known_crossing_type 0
+ assert (A_known_crossing_type);
}
return NULL;
}
case fcfish: return "fcfish";
case fpfish: return "fpfish";
default:
- assert (!"Not a view.");
+#define A_known_view 0
+ assert (A_known_view);
}
return NULL;
}
case dotted: return "dotted";
case invisible: return "invisible";
default:
- assert (!"Not a line style.");
+#define A_known_line_style 0
+ assert (A_known_line_style);
}
return NULL;
}
case line: return "line";
case none: return "none";
default:
- assert (!"Not an arrow style.");
+#define A_known_arrow_style 0
+ assert (A_known_arrow_style);
}
return NULL;
}