summaryrefslogtreecommitdiff
path: root/apps/plugins/nim.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/nim.c')
-rw-r--r--apps/plugins/nim.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/nim.c b/apps/plugins/nim.c
index 27f1210ea4..d937af168b 100644
--- a/apps/plugins/nim.c
+++ b/apps/plugins/nim.c
@@ -20,7 +20,7 @@
20 20
21#ifdef HAVE_LCD_CHARCELLS 21#ifdef HAVE_LCD_CHARCELLS
22 22
23/* NIM game for the player 23/* NIM game for the player
24 24
25Rules of nim game 25Rules of nim game
26----------------- 26-----------------
@@ -46,6 +46,7 @@ V1.2 : 2003-07-30
46 take a match. Later you are obliged to take at least one.) 46 take a match. Later you are obliged to take at least one.)
47*/ 47*/
48 48
49PLUGIN_HEADER
49 50
50/*Pattern for the game*/ 51/*Pattern for the game*/
51static unsigned char smile[]={0x00, 0x11, 0x04, 0x04, 0x00, 0x11, 0x0E}; /* :-) */ 52static unsigned char smile[]={0x00, 0x11, 0x04, 0x04, 0x00, 0x11, 0x0E}; /* :-) */
@@ -140,11 +141,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
140 bool ok; 141 bool ok;
141 bool go; 142 bool go;
142 143
143 /* this macro should be called as the first thing you do in the plugin.
144 it test that the api version and model the plugin was compiled for
145 matches the machine it is running on */
146 TEST_PLUGIN_API(api);
147
148 /* if you don't use the parameter, you can do like 144 /* if you don't use the parameter, you can do like
149 this to avoid the compiler warning about it */ 145 this to avoid the compiler warning about it */
150 (void)parameter; 146 (void)parameter;