-/*------------------------------------------.
-| Set the PRECEDENCE associated to SYMBOL. |
-`------------------------------------------*/
+/*----------------------------------------------------------------.
+| Set the PRITNER associated to SYMBOL. Do nothing if passed 0. |
+`----------------------------------------------------------------*/
+
+void
+symbol_printer_set (symbol_t *symbol, char *printer, location_t location)
+{
+ if (printer)
+ {
+ if (symbol->printer)
+ complain_at (location,
+ _("%s redeclaration for %s"),
+ "%printer", symbol->tag);
+ symbol->printer = printer;
+ symbol->printer_location = location;
+ }
+}
+
+
+/*------------------------------------------------------------------.
+| Set the PRECEDENCE associated to SYMBOL. Does nothing if invoked |
+| with UNDEF_ASSOC as ASSOC. |
+`------------------------------------------------------------------*/