[Commit]
rrclient rrminimal.c,NONE,1.1 .cvsignore,1.1,1.2 Makefile,1.1,1.2
rrtest.c,1.2,1.3
Carl Worth
commit at keithp.com
Mon Jun 2 08:47:01 PDT 2003
- Previous message: [Commit] librr/src rr.h,1.2,1.3 rr_board.c,1.3,1.4
- Next message: [Commit]
nickle ChangeLog,1.4,1.5 debug.c,1.31,1.32 error.c,1.18,1.19
execute.c,1.78,1.79 prng.5c,1.7,1.8 ref.c,1.16,1.17
sched.c,1.48,1.49 value.c,1.41,1.42 value.h,1.84,1.85
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: cworth
Update of /local/src/CVS/rrclient
In directory home.keithp.com:/tmp/cvs-serv7616
Modified Files:
.cvsignore Makefile rrtest.c
Added Files:
rrminimal.c
Log Message:
Added rrminimal.c
--- NEW FILE: rrminimal.c ---
/* rrminimal - Minimal demonstration of librr (with no error checking)
*/
#include <stdio.h>
#include <rr.h>
int
main (void)
{
static char diagram[] = "\n"
" === === === \n"
"|R..|... g..|\n"
" \n"
"|... .RT|...|\n"
" === \n"
"|... ... .gs|\n"
" === === === ";
rr_board_t *board;
board = rr_board_create_from_str (diagram);
rr_board_move (board, RR_ROBOT_GREEN, RR_DIRECTION_SOUTH);
rr_board_move (board, RR_ROBOT_GREEN, RR_DIRECTION_WEST);
rr_board_move (board, RR_ROBOT_RED, RR_DIRECTION_SOUTH);
rr_board_move (board, RR_ROBOT_RED, RR_DIRECTION_EAST);
puts (rr_board_to_str (board));
rr_board_destroy (board);
return 0;
}
Index: .cvsignore
===================================================================
RCS file: /local/src/CVS/rrclient/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- .cvsignore 2 Jun 2003 14:18:14 -0000 1.1
+++ .cvsignore 2 Jun 2003 14:46:59 -0000 1.2
@@ -1 +1,3 @@
rrtest
+rrminimal
+
Index: Makefile
===================================================================
RCS file: /local/src/CVS/rrclient/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile 1 Jun 2003 04:29:30 -0000 1.1
+++ Makefile 2 Jun 2003 14:46:59 -0000 1.2
@@ -1,7 +1,7 @@
CFLAGS=-g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls `pkg-config --cflags librr`
LDFLAGS=`pkg-config --libs librr`
-PROGS=rrtest
+PROGS=rrtest rrminimal
all: $(PROGS)
Index: rrtest.c
===================================================================
RCS file: /local/src/CVS/rrclient/rrtest.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- rrtest.c 2 Jun 2003 14:17:46 -0000 1.2
+++ rrtest.c 2 Jun 2003 14:46:59 -0000 1.3
@@ -126,7 +126,7 @@
int i, j;
for (i=0; i < sizeof (puzzle) / sizeof (puzzle[0]); i++) {
- board = rr_board_create (3, 3);
+ board = rr_board_create (0, 0);
status = rr_board_parse (board, puzzle[i].board);
if (status) {
- Previous message: [Commit] librr/src rr.h,1.2,1.3 rr_board.c,1.3,1.4
- Next message: [Commit]
nickle ChangeLog,1.4,1.5 debug.c,1.31,1.32 error.c,1.18,1.19
execute.c,1.78,1.79 prng.5c,1.7,1.8 ref.c,1.16,1.17
sched.c,1.48,1.49 value.c,1.41,1.42 value.h,1.84,1.85
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commit
mailing list