summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorDusan Durech <dusan@debian.debian>2009-04-22 20:03:05 +0200
committerDusan Durech <dusan@debian.debian>2009-04-22 20:03:05 +0200
commitb7b72cca9df9c9c3601e88ac1381802ac83014ee (patch)
treea7805d76cc8fa90c37db4982c896f8060e7031f6 /src/modules
parent31941d9f3b2a665317503166785a3eb6cef35a9c (diff)
rename macro UNSET on UNSED
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/modAI.c30
-rw-r--r--src/modules/modBasic.c8
-rw-r--r--src/modules/modMove.c18
-rw-r--r--src/modules/modPipe.c8
-rw-r--r--src/modules/modTeleport.c22
-rw-r--r--src/modules/modWall.c20
6 files changed, 53 insertions, 53 deletions
diff --git a/src/modules/modAI.c b/src/modules/modAI.c
index 63b94c8..b987f20 100644
--- a/src/modules/modAI.c
+++ b/src/modules/modAI.c
@@ -48,8 +48,8 @@ alternative_t *cloneAlternative(alternative_t * p, int route, int x, int y)
assert(p != NULL);
- UNUSET(x);
- UNUSET(y);
+ UNUSED(x);
+ UNUSED(y);
new = newAlternative(route, p->x, p->y);
new->first = p->first;
@@ -121,7 +121,7 @@ void destroyAlternative(alternative_t * p)
static void cmd_ai(char *line)
{
- UNUSET(line);
+ UNUSED(line);
}
int init(export_fce_t * p)
@@ -134,10 +134,10 @@ int init(export_fce_t * p)
#ifndef PUBLIC_SERVER
int draw(int x, int y, int w, int h)
{
- UNUSET(x);
- UNUSET(y);
- UNUSET(w);
- UNUSET(h);
+ UNUSED(x);
+ UNUSED(y);
+ UNUSED(w);
+ UNUSED(h);
return 0;
}
@@ -167,7 +167,7 @@ static void shotTux(arena_t * arena, tux_t * tux_ai, tux_t * tux_rival)
int x_rival, y_rival;
int w, h;
- UNUSET(arena);
+ UNUSED(arena);
export_fce->fce_tux_get_proportion(tux_ai, &x_ai, &y_ai, &w, &h);
export_fce->fce_tux_get_proportion(tux_rival, &x_rival, &y_rival, &w, &h);
@@ -336,8 +336,8 @@ static void tux_eventAI(tux_t * tux)
static void action_tuxAI(space_t * space, tux_t * tux, void *p)
{
- UNUSET(space);
- UNUSET(p);
+ UNUSED(space);
+ UNUSED(p);
if (tux->control == TUX_CONTROL_AI && tux->status == TUX_STATUS_ALIVE) {
tux_eventAI(tux);
@@ -394,10 +394,10 @@ int event()
int isConflict(int x, int y, int w, int h)
{
- UNUSET(x);
- UNUSET(y);
- UNUSET(w);
- UNUSET(h);
+ UNUSED(x);
+ UNUSED(y);
+ UNUSED(w);
+ UNUSED(h);
return 0;
}
@@ -410,7 +410,7 @@ void cmdArena(char *line)
void recvMsg(char *msg)
{
- UNUSET(msg);
+ UNUSED(msg);
}
int destroy()
diff --git a/src/modules/modBasic.c b/src/modules/modBasic.c
index 012466e..3b0f9b3 100644
--- a/src/modules/modBasic.c
+++ b/src/modules/modBasic.c
@@ -35,10 +35,10 @@ int init(export_fce_t * p)
int draw(int x, int y, int w, int h)
{
- UNUSET(x);
- UNUSET(y);
- UNUSET(w);
- UNUSET(h);
+ UNUSED(x);
+ UNUSED(y);
+ UNUSED(w);
+ UNUSED(h);
printf("Drawing Basic module.\n");
return 0;
diff --git a/src/modules/modMove.c b/src/modules/modMove.c
index 231a827..fc616a7 100644
--- a/src/modules/modMove.c
+++ b/src/modules/modMove.c
@@ -226,10 +226,10 @@ static void proto_moveshot(char *msg)
int draw(int x, int y, int w, int h)
{
- UNUSET(x);
- UNUSET(y);
- UNUSET(w);
- UNUSET(h);
+ UNUSED(x);
+ UNUSED(y);
+ UNUSED(w);
+ UNUSED(h);
return 0;
}
@@ -243,17 +243,17 @@ int event()
int isConflict(int x, int y, int w, int h)
{
- UNUSET(x);
- UNUSET(y);
- UNUSET(w);
- UNUSET(h);
+ UNUSED(x);
+ UNUSED(y);
+ UNUSED(w);
+ UNUSED(h);
return 0;
}
void cmdArena(char *line)
{
- UNUSET(line);
+ UNUSED(line);
}
void recvMsg(char *msg)
diff --git a/src/modules/modPipe.c b/src/modules/modPipe.c
index 19c840d..ee7e10d 100644
--- a/src/modules/modPipe.c
+++ b/src/modules/modPipe.c
@@ -221,8 +221,8 @@ int init(export_fce_t * p)
static void action_drawpipe(space_t * space, pipe_t * pipe, void *p)
{
- UNUSET(space);
- UNUSET(p);
+ UNUSED(space);
+ UNUSED(p);
drawPipe(pipe);
}
@@ -299,7 +299,7 @@ static void action_eventpipe(space_t * space, pipe_t * pipe, shot_t * shot)
arena_t *arena;
tux_t *author;
- UNUSET(space);
+ UNUSED(space);
arena = export_fce->fce_arena_get_current();
@@ -370,7 +370,7 @@ void cmdArena(char *line)
void recvMsg(char *msg)
{
- UNUSET(msg);
+ UNUSED(msg);
}
int destroy()
diff --git a/src/modules/modTeleport.c b/src/modules/modTeleport.c
index 301a368..c8cfda4 100644
--- a/src/modules/modTeleport.c
+++ b/src/modules/modTeleport.c
@@ -251,8 +251,8 @@ int init(export_fce_t * p)
static void action_drawteleport(space_t * space, teleport_t * teleport, void *p)
{
- UNUSET(space);
- UNUSET(p);
+ UNUSED(space);
+ UNUSED(p);
drawTeleport(teleport);
}
@@ -275,7 +275,7 @@ static void action_eventteleportshot(space_t * space, teleport_t * teleport, sho
arena_t *arena;
tux_t *author;
- UNUSET(space);
+ UNUSED(space);
arena = export_fce->fce_arena_get_current();
@@ -291,7 +291,7 @@ static void action_eventteleportshot(space_t * space, teleport_t * teleport, sho
static void action_eventshot(space_t * space, shot_t * shot, space_t * p_spaceTeleport)
{
- UNUSET(space);
+ UNUSED(space);
space_action_from_location(p_spaceTeleport, action_eventteleportshot, shot,
shot->x, shot->y, shot->w, shot->h);
@@ -299,7 +299,7 @@ static void action_eventshot(space_t * space, shot_t * shot, space_t * p_spaceTe
static void action_eventteleporttux(space_t * space, teleport_t * teleport, tux_t * tux)
{
- UNUSET(space);
+ UNUSED(space);
teleportTux(tux, teleport);
}
@@ -308,7 +308,7 @@ static void action_eventtux(space_t * space, tux_t * tux, space_t * p_spaceTelep
{
int x, y, w, h;
- UNUSET(space);
+ UNUSED(space);
export_fce->fce_tux_get_proportion(tux, &x, &y, &w, &h);
@@ -336,10 +336,10 @@ int event()
int isConflict(int x, int y, int w, int h)
{
- UNUSET(x);
- UNUSET(y);
- UNUSET(w);
- UNUSET(h);
+ UNUSED(x);
+ UNUSED(y);
+ UNUSED(w);
+ UNUSED(h);
if (spaceTeleport == NULL) {
return 0;
@@ -356,7 +356,7 @@ void cmdArena(char *line)
void recvMsg(char *msg)
{
- UNUSET(msg);
+ UNUSED(msg);
}
int destroy()
diff --git a/src/modules/modWall.c b/src/modules/modWall.c
index 6e9b54f..4facf20 100644
--- a/src/modules/modWall.c
+++ b/src/modules/modWall.c
@@ -157,11 +157,11 @@ static void getStatusImgWall(void *p, int *id, int *x, int *y, int *w, int *h)
static void setStatusImgWall(void *p, int x, int y, int w, int h)
{
- UNUSET(p);
- UNUSET(x);
- UNUSET(y);
- UNUSET(w);
- UNUSET(h);
+ UNUSED(p);
+ UNUSED(x);
+ UNUSED(y);
+ UNUSED(w);
+ UNUSED(h);
}
#endif
@@ -258,8 +258,8 @@ int init(export_fce_t * p)
static void action_drawwall(space_t * space, wall_t * wall, void *p)
{
- UNUSET(space);
- UNUSET(p);
+ UNUSED(space);
+ UNUSED(p);
drawWall(wall);
}
@@ -283,8 +283,8 @@ static void action_eventwall(space_t * space, wall_t * wall, shot_t * shot)
arena_t *arena;
tux_t *author;
- UNUSET(space);
- UNUSET(wall);
+ UNUSED(space);
+ UNUSED(wall);
arena = export_fce->fce_arena_get_current();
@@ -346,7 +346,7 @@ void cmdArena(char *line)
void recvMsg(char *msg)
{
- UNUSET(msg);
+ UNUSED(msg);
}
int destroy()