2000-08-03 Fred Fish <[EMAIL PROTECTED]>
* filedef.h (struct file): Give enum member "command_state" an explicit
tag of "cs_state".
(set_command_state): Pass enum cs_state instead of int.
* file.c (set_command_state): Make parameter "state" an "enum cs_state"
rather than an int.
Index: filedef.h
===================================================================
RCS file: /cvsroot/gg/fsf/make/filedef.h,v
retrieving revision 1.1.1.6
diff -c -p -r1.1.1.6 filedef.h
*** filedef.h 2000/07/10 14:41:46 1.1.1.6
--- filedef.h 2000/08/04 00:39:42
*************** struct file
*** 63,69 ****
short int update_status; /* Status of the last attempt to update,
or -1 if none has been made. */
! enum /* State of the commands. */
{ /* Note: It is important that cs_not_started be zero. */
cs_not_started, /* Not yet started. */
cs_deps_running, /* Dep commands running. */
--- 63,69 ----
short int update_status; /* Status of the last attempt to update,
or -1 if none has been made. */
! enum cs_state /* State of the commands. */
{ /* Note: It is important that cs_not_started be zero. */
cs_not_started, /* Not yet started. */
cs_deps_running, /* Dep commands running. */
*************** extern void rename_file PARAMS ((struct
*** 106,112 ****
extern void rehash_file PARAMS ((struct file *file, char *name));
extern void file_hash_enter PARAMS ((struct file *file, char *name,
unsigned int oldhash, char *oldname));
! extern void set_command_state PARAMS ((struct file *file, int state));
extern void notice_finished_file PARAMS ((struct file *file));
--- 106,112 ----
extern void rehash_file PARAMS ((struct file *file, char *name));
extern void file_hash_enter PARAMS ((struct file *file, char *name,
unsigned int oldhash, char *oldname));
! extern void set_command_state PARAMS ((struct file *file, enum cs_state));
extern void notice_finished_file PARAMS ((struct file *file));
Index: file.c
===================================================================
RCS file: /cvsroot/gg/fsf/make/file.c,v
retrieving revision 1.1.1.7
diff -c -p -r1.1.1.7 file.c
*** file.c 2000/07/10 14:41:45 1.1.1.7
--- file.c 2000/08/04 00:39:42
*************** snap_deps ()
*** 545,551 ****
void
set_command_state (file, state)
struct file *file;
! int state;
{
struct dep *d;
--- 545,551 ----
void
set_command_state (file, state)
struct file *file;
! enum cs_state state;
{
struct dep *d;