From 6a52075c557c3d64dfa9e6c05ab2b67e30b900f2 Mon Sep 17 00:00:00 2001 From: Bradley Smith Date: Mon, 10 Mar 2008 00:55:01 +0000 Subject: Remove sign hack. Signed-off-by: Bradley Smith --- include/Makefile.am | 1 - include/grobot.h | 1 + include/sign.h | 5 ----- 3 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 include/sign.h (limited to 'include') diff --git a/include/Makefile.am b/include/Makefile.am index 5f57db1..9217f6d 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -22,6 +22,5 @@ EXTRA_DIST =\ map.h\ main.h\ grobot.h\ - sign.h\ userinterface.h diff --git a/include/grobot.h b/include/grobot.h index 6ebcca3..1aeafb2 100644 --- a/include/grobot.h +++ b/include/grobot.h @@ -67,6 +67,7 @@ struct _GRobotClass { /* some convenient macros */ #define G_ROBOT_POSITION_X(robot) ((robot)->x) #define G_ROBOT_POSITION_Y(robot) ((robot)->y) +#define sign(x) (x/abs(x)) /* normal GObject stuff */ GType g_robot_get_type(void) G_GNUC_CONST; diff --git a/include/sign.h b/include/sign.h deleted file mode 100644 index 05fe87d..0000000 --- a/include/sign.h +++ /dev/null @@ -1,5 +0,0 @@ -/* This needs to go. */ - -#include - -gint sign (gint n); -- cgit v1.1