Changeset 903 for trunk/src/gmakenew/filedef.h
- Timestamp:
- May 23, 2007, 7:31:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmakenew/filedef.h
r507 r903 26 26 struct file 27 27 { 28 c har *name;29 c har *hname;/* Hashed filename */30 c har *vpath;/* VPATH/vpath pathname */28 const char *name; 29 const char *hname; /* Hashed filename */ 30 const char *vpath; /* VPATH/vpath pathname */ 31 31 struct dep *deps; /* all dependencies, including duplicates */ 32 32 struct commands *cmds; /* Commands to execute for this target. */ 33 33 int command_flags; /* Flags OR'd in for cmds; see commands.h. */ 34 c har *stem;/* Implicit stem, if an implicit35 34 const char *stem; /* Implicit stem, if an implicit 35 rule has been used */ 36 36 struct dep *also_make; /* Targets that are made by making this. */ 37 37 FILE_TIMESTAMP last_mtime; /* File's modtime, if already known. */ … … 102 102 103 103 104 extern struct file *lookup_file PARAMS ((char *name));105 extern struct file *enter_file PARAMS ((char *name));106 extern struct dep *parse_prereqs PARAMS ((char *prereqs));107 extern void remove_intermediates PARAMS ((int sig));108 extern void snap_deps PARAMS ((void));109 extern void rename_file PARAMS ((struct file *file, char *name));110 extern void rehash_file PARAMS ((struct file *file, char *name));111 extern void set_command_state PARAMS ((struct file *file, enum cmd_state state));112 extern void notice_finished_file PARAMS ((struct file *file));113 extern void init_hash_files PARAMS ((void));114 extern char *build_target_list PARAMS ((char *old_list));104 struct file *lookup_file (const char *name); 105 struct file *enter_file (const char *name); 106 struct dep *parse_prereqs (char *prereqs); 107 void remove_intermediates (int sig); 108 void snap_deps (void); 109 void rename_file (struct file *file, const char *name); 110 void rehash_file (struct file *file, const char *name); 111 void set_command_state (struct file *file, enum cmd_state state); 112 void notice_finished_file (struct file *file); 113 void init_hash_files (void); 114 char *build_target_list (char *old_list); 115 115 116 116 #if FILE_TIMESTAMP_HI_RES … … 153 153 + 1 + 1 + 4 + 25) 154 154 155 extern FILE_TIMESTAMP file_timestamp_cons PARAMS ((char const *, 156 time_t, int)); 157 extern FILE_TIMESTAMP file_timestamp_now PARAMS ((int *)); 158 extern void file_timestamp_sprintf PARAMS ((char *p, FILE_TIMESTAMP ts)); 155 FILE_TIMESTAMP file_timestamp_cons (char const *, time_t, int); 156 FILE_TIMESTAMP file_timestamp_now (int *); 157 void file_timestamp_sprintf (char *p, FILE_TIMESTAMP ts); 159 158 160 159 /* Return the mtime of file F (a struct file *), caching it. … … 166 165 The value is NONEXISTENT_MTIME if the file does not exist. */ 167 166 #define file_mtime_no_search(f) file_mtime_1 ((f), 0) 168 extern FILE_TIMESTAMP f_mtime PARAMS ((struct file *file, int search));167 FILE_TIMESTAMP f_mtime (struct file *file, int search); 169 168 #define file_mtime_1(f, v) \ 170 169 ((f)->last_mtime == UNKNOWN_MTIME ? f_mtime ((f), v) : (f)->last_mtime)
Note:
See TracChangeset
for help on using the changeset viewer.