
RCS file: color.c,v
Working file: color.c
head: 1.22
branch:
locks: strict
	kragen: 1.22
access list:
symbolic names:
keyword substitution: kv
total revisions: 22;	selected revisions: 22
description:
Solve an instance of the map-coloring problem.
----------------------------
revision 1.22	locked by: kragen;
date: 1997/08/21 21:21:56;  author: kragen;  state: Exp;  lines: +7 -0
Added some error checks to the file-input code.
----------------------------
revision 1.21
date: 1997/08/21 16:41:16;  author: kragen;  state: Exp;  lines: +1 -1
Didn't update main() enough.
----------------------------
revision 1.20
date: 1997/08/21 16:40:25;  author: kragen;  state: Exp;  lines: +18 -20
Added stuff to main to call read_file.
I'm not very confident that read_file and copy_word will work.
----------------------------
revision 1.19
date: 1997/08/21 16:35:45;  author: kragen;  state: Exp;  lines: +1 -1
Fixed silly typo.
----------------------------
revision 1.18
date: 1997/08/21 16:35:04;  author: kragen;  state: Exp;  lines: +84 -0
Added stuff to read in a file.
----------------------------
revision 1.17
date: 1997/08/21 15:16:18;  author: kragen;  state: Exp;  lines: +16 -10
Cleaned up the compilation.
----------------------------
revision 1.16
date: 1997/08/21 15:10:29;  author: kragen;  state: Exp;  lines: +12 -0
Added some stuff to show the backtracking, and demonstrate that it
really does work.  In its current state, it will have to backtrack two
countries.
----------------------------
revision 1.15
date: 1997/08/21 08:13:23;  author: kragen;  state: Exp;  lines: +1 -1
Implemented color().
----------------------------
revision 1.14
date: 1997/08/21 08:12:22;  author: kragen;  state: Exp;  lines: +10 -0
Added more debug code.  Now it's almost useful to run it without the
debugger.
----------------------------
revision 1.13
date: 1997/08/21 07:56:10;  author: kragen;  state: Exp;  lines: +1 -1
Oops.  While walking through the program, I found an embarrassing bug:
I was trying to walk a linked list by incrementing the pointer to the
current node....
----------------------------
revision 1.12
date: 1997/08/21 07:49:38;  author: kragen;  state: Exp;  lines: +7 -0
Added some debug code to run the program through its paces.
----------------------------
revision 1.11
date: 1997/08/21 07:35:33;  author: kragen;  state: Exp;  lines: +2 -1
Added something to main to help debugging.
----------------------------
revision 1.10
date: 1997/08/21 07:27:52;  author: kragen;  state: Exp;  lines: +4 -2
The compiler found several serious bugs:
- a couple of functions weren't returning 1 when they should have
  (i.e. on success).
- despite my reminding myself that country_named has the name arg first
  and the map arg second, I screwed it up.  I rearranged the args to form
  a more sensible order.
----------------------------
revision 1.9
date: 1997/08/21 07:25:55;  author: kragen;  state: Exp;  lines: +17 -0
Added a main to the bottom.
----------------------------
revision 1.8
date: 1997/08/21 07:23:55;  author: kragen;  state: Exp;  lines: +35 -2
Added more stuff.  Maybe almost compilable now.
----------------------------
revision 1.7
date: 1997/08/21 07:17:07;  author: kragen;  state: Exp;  lines: +63 -0
Added more stuff.
----------------------------
revision 1.6
date: 1997/08/21 07:01:04;  author: kragen;  state: Exp;  lines: +14 -0
Finished most of the map stuff.
----------------------------
revision 1.5
date: 1997/08/21 06:55:56;  author: kragen;  state: Exp;  lines: +52 -6
Added more stuff.
Changed some stuff.
----------------------------
revision 1.4
date: 1997/08/21 06:44:11;  author: kragen;  state: Exp;  lines: +42 -0
Added more stuff.
----------------------------
revision 1.3
date: 1997/08/21 06:36:49;  author: kragen;  state: Exp;  lines: +18 -3
Added stuff.
----------------------------
revision 1.2
date: 1997/08/21 06:33:05;  author: kragen;  state: Exp;  lines: +49 -1
*** empty log message ***
----------------------------
revision 1.1
date: 1997/08/21 06:23:44;  author: kragen;  state: Exp;
Initial revision
=============================================================================
