Ignore:
Timestamp:
May 23, 2007, 7:31:19 AM (18 years ago)
Author:
bird
Message:

Merged with the 2007-05-23 CVS. Added rsort and fixed a couple of windows build issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmakenew/filedef.h

    r507 r903  
    2626struct file
    2727  {
    28     char *name;
    29     char *hname;                /* Hashed filename */
    30     char *vpath;                /* VPATH/vpath pathname */
     28    const char *name;
     29    const char *hname;          /* Hashed filename */
     30    const char *vpath;          /* VPATH/vpath pathname */
    3131    struct dep *deps;           /* all dependencies, including duplicates */
    3232    struct commands *cmds;      /* Commands to execute for this target.  */
    3333    int command_flags;          /* Flags OR'd in for cmds; see commands.h.  */
    34     char *stem;                 /* Implicit stem, if an implicit
    35                                    rule has been used */
     34    const char *stem;           /* Implicit stem, if an implicit
     35                                   rule has been used */
    3636    struct dep *also_make;      /* Targets that are made by making this.  */
    3737    FILE_TIMESTAMP last_mtime;  /* File's modtime, if already known.  */
     
    102102
    103103
    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));
     104struct file *lookup_file (const char *name);
     105struct file *enter_file (const char *name);
     106struct dep *parse_prereqs (char *prereqs);
     107void remove_intermediates (int sig);
     108void snap_deps (void);
     109void rename_file (struct file *file, const char *name);
     110void rehash_file (struct file *file, const char *name);
     111void set_command_state (struct file *file, enum cmd_state state);
     112void notice_finished_file (struct file *file);
     113void init_hash_files (void);
     114char *build_target_list (char *old_list);
    115115
    116116#if FILE_TIMESTAMP_HI_RES
     
    153153   + 1 + 1 + 4 + 25)
    154154
    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));
     155FILE_TIMESTAMP file_timestamp_cons (char const *, time_t, int);
     156FILE_TIMESTAMP file_timestamp_now (int *);
     157void file_timestamp_sprintf (char *p, FILE_TIMESTAMP ts);
    159158
    160159/* Return the mtime of file F (a struct file *), caching it.
     
    166165   The value is NONEXISTENT_MTIME if the file does not exist.  */
    167166#define file_mtime_no_search(f) file_mtime_1 ((f), 0)
    168 extern FILE_TIMESTAMP f_mtime PARAMS ((struct file *file, int search));
     167FILE_TIMESTAMP f_mtime (struct file *file, int search);
    169168#define file_mtime_1(f, v) \
    170169  ((f)->last_mtime == UNKNOWN_MTIME ? f_mtime ((f), v) : (f)->last_mtime)
Note: See TracChangeset for help on using the changeset viewer.