summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Smith2008-01-21 17:30:17 +0000
committerBradley Smith2008-01-21 17:30:17 +0000
commit92007999e5cb1dcb001028d3e74db83267975c8b (patch)
tree53193574e450167b40ce9eca563a41cfe43cdc62
parentCorrected fsf address in copyright. (diff)
downloadgnurobots-92007999e5cb1dcb001028d3e74db83267975c8b.tar.gz
Reformatted src/api.c.
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
-rw-r--r--src/api.c5
-rw-r--r--src/main.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/api.c b/src/api.c
index 2fec42d..bb57b7e 100644
--- a/src/api.c
+++ b/src/api.c
@@ -136,7 +136,7 @@ api_robot_get_score (void)
return (scm_long2num (score));
}
-void
+void
api_init (void)
{
/* define some new builtins (hooks) so that they are available in
@@ -149,7 +149,7 @@ api_init (void)
scm_c_define_gsubr ("robot-look", 1, 0, 0, api_robot_look);
scm_c_define_gsubr ("robot-grab", 0, 0, 0, api_robot_grab);
scm_c_define_gsubr ("robot-zap", 0, 0, 0, api_robot_zap);
-
+
scm_c_define_gsubr ("robot-get-shields", 0, 0, 0, api_robot_get_shields);
scm_c_define_gsubr ("robot-get-energy", 0, 0, 0, api_robot_get_energy);
scm_c_define_gsubr ("robot-get-score", 0, 0, 0, api_robot_get_score);
@@ -157,4 +157,3 @@ api_init (void)
scm_c_define_gsubr ("stop", 0, 0, 0, api_robot_stop);
scm_c_define_gsubr ("quit", 0, 0, 0, api_robot_stop);
}
-
diff --git a/src/main.c b/src/main.c
index d88a927..8c2d683 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,7 +1,7 @@
/* $Id: main.c,v 1.28 2005/09/06 19:55:40 zeenix Exp $ */
/*
- * GNU Robots game engine. This is the main() program, using GNU
- * Guile as my backend to handle the language.
+ * GNU Robots game engine. This is the main() program, using GNU
+ * Guile as the backend to handle the language.
*
* Copyright (C) 1998 Jim Hall <jhall1@isd.net>
* Copyright (C) 2008 Bradley Smith <brad@brad-smith.co.uk>