-
-
-/*--------------------------------------------------.
-| Set default tagged/tagless %destructor/%printer. |
-`--------------------------------------------------*/
-
-void
-default_tagged_destructor_set (code_props destructor)
-{
- if (code_props_code_get (default_tagged_destructor))
- {
- complain_at (code_props_location_get (destructor),
- _("redeclaration for default tagged %%destructor"));
- complain_at (code_props_location_get (default_tagged_destructor),
- _("previous declaration"));
- }
- default_tagged_destructor = destructor;
-}
-
-void
-default_tagless_destructor_set (code_props destructor)
-{
- if (code_props_code_get (default_tagless_destructor))
- {
- complain_at (code_props_location_get (destructor),
- _("redeclaration for default tagless %%destructor"));
- complain_at (code_props_location_get (default_tagless_destructor),
- _("previous declaration"));
- }
- default_tagless_destructor = destructor;
-}
-
-void
-default_tagged_printer_set (code_props printer)
-{
- if (code_props_code_get (default_tagged_printer))
- {
- complain_at (code_props_location_get (printer),
- _("redeclaration for default tagged %%printer"));
- complain_at (code_props_location_get (default_tagged_printer),
- _("previous declaration"));
- }
- default_tagged_printer = printer;
-}
-
-void
-default_tagless_printer_set (code_props printer)
-{
- if (code_props_code_get (default_tagless_printer))
- {
- complain_at (code_props_location_get (printer),
- _("redeclaration for default tagless %%printer"));
- complain_at (code_props_location_get (default_tagless_printer),
- _("previous declaration"));
- }
- default_tagless_printer = printer;
-}
-