Index: trunk/src/hid.h =================================================================== --- trunk/src/hid.h (revision 1266) +++ trunk/src/hid.h (revision 1267) @@ -82,9 +82,9 @@ const char *syntax; } HID_Action; - extern void hid_register_action(const HID_Action *, void *); + extern void hid_register_action(const HID_Action *a, const char *cookie); - extern void hid_register_actions(const HID_Action *, int, const char *); + extern void hid_register_actions(const HID_Action *a, int, const char *cookie); #define REGISTER_ACTIONS(a, cookie) HIDCONCAT(void register_,a) ()\ { hid_register_actions(a, sizeof(a)/sizeof(a[0]), cookie); } Index: trunk/src/main.c =================================================================== --- trunk/src/main.c (revision 1266) +++ trunk/src/main.c (revision 1267) @@ -1325,9 +1325,7 @@ }; -static const char *main_cookie = "pcb-rnd main.c"; - -REGISTER_ATTRIBUTES(main_attribute_list, main_cookie) +REGISTER_ATTRIBUTES(main_attribute_list, NULL) /* ---------------------------------------------------------------------- * post-process settings. */ @@ -1603,6 +1601,7 @@ FreeLibraryMemory(&Library); pcb_fp_uninit(); file_uninit(); + #define free0(ptr) \ do { \