From 522f11a3e40670bbf85e0fada285141448167968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Sun, 14 Nov 2010 14:18:44 +0100 Subject: [PATCH] editor: #undef O after use --- editor.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/editor.c b/editor.c index ecafdc6..7151e2b 100644 --- a/editor.c +++ b/editor.c @@ -179,8 +179,8 @@ void draw_scene(void) struct it * find_object(void) { struct object_list *p; -#define O p->next->member +#define O p->next->member for(p=&objects;p->next;p=p->next) { if ( @@ -191,6 +191,8 @@ struct it * find_object(void) ) return &(p->next->member); } +#undef O + return 0; } @@ -290,7 +292,6 @@ void save_data(void) } #define O p->next->member - for(p=&objects;p->next;p=p->next) { snprintf(txt,sizeof(txt),"%s %c %d %d\n",sprite_names[O.sprite],O.type,O.x,O.y); @@ -309,6 +310,8 @@ void save_data(void) break; } } +#undef O + fclose(data); fclose(dynamic); }