Changeset 2591 for trunk/src/kmk/dep.h
- Timestamp:
- Jun 17, 2012, 10:45:31 PM (13 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
- Property svn:ignore
-
old new 13 13 stamp-* 14 14 makebook* 15 15 16 .*gdbinit 17 .gdb_history 18 16 19 *.dep 17 20 *.dvi … … 31 34 *.pg 32 35 *.pgs 36 33 37 README 34 38 README.DOS 35 39 README.W32 40 README.OS2 36 41 aclocal.m4 37 42 autom4te.cache … … 52 57 config.h.W32 53 58 config.h-vms 59 54 60 loadavg 55 61 loadavg.c 56 62 make 63 57 64 .deps 58 65 .dep_segment 66 ID 67 TAGS 68 59 69 _* 60 70 sun4 … … 72 82 sol2 73 83 i486-linux 84 74 85 customs 86 75 87 install-sh 76 88 mkinstalldirs 89 90 .directive.asc
-
- Property svn:ignore
-
trunk/src/kmk/dep.h
r1993 r2591 1 1 /* Definitions of dependency data structures for GNU Make. 2 2 Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software4 Foundation, Inc.3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 4 2010 Free Software Foundation, Inc. 5 5 This file is part of GNU Make. 6 6 … … 44 44 unsigned int staticpattern : 1; 45 45 unsigned int need_2nd_expansion : 1; 46 unsigned int dontcare : 1; 47 46 48 #ifdef CONFIG_WITH_INCLUDEDEP 47 49 unsigned int includedep : 1; … … 59 61 60 62 63 #define PARSEFS_NONE (0x0000) 64 #define PARSEFS_NOSTRIP (0x0001) 65 #define PARSEFS_NOAR (0x0002) 66 #define PARSEFS_NOGLOB (0x0004) 67 #define PARSEFS_EXISTS (0x0008) 68 #define PARSEFS_NOCACHE (0x0010) 69 61 70 #ifndef CONFIG_WITH_ALLOC_CACHES 62 struct nameseq *multi_glob (struct nameseq *chain, unsigned int size); 71 #define PARSE_FILE_SEQ(_s,_t,_c,_p,_f) \ 72 (_t *)parse_file_seq ((_s),sizeof (_t),(_c),(_p),(_f)) 63 73 #else 64 struct nameseq *multi_glob (struct nameseq *chain, struct alloccache *cache); 74 # define PARSE_FILE_SEQ(_s,_t,_c,_p,_f) \ 75 (_t *)parse_file_seq ((_s),sizeof (_t),(_c),(_p),(_f), \ 76 &PARSE_FILE_SEQ_IGNORE_ ## _t ## _cache) 77 # define PARSE_FILE_SEQ_IGNORE_struct 65 78 #endif 79 66 80 #ifdef VMS 67 struct nameseq*parse_file_seq ();81 void *parse_file_seq (); 68 82 #else 69 # ifndef CONFIG_WITH_ALLOC_CACHES 70 struct nameseq *parse_file_seq (char **stringp, int stopchar, unsigned int size, int strip); 71 # else 72 struct nameseq *parse_file_seq (char **stringp, int stopchar, struct alloccache *cache, int strip); 73 # endif 83 void *parse_file_seq (char **stringp, unsigned int size, 84 int stopchar, const char *prefix, int flags 85 IF_WITH_ALLOC_CACHES_PARAM(struct alloccache *cache)); 74 86 #endif 87 75 88 char *tilde_expand (const char *name); 76 89 … … 79 92 #endif 80 93 81 #define dep_name(d) ((d)->name == 0 ? (d)->file->name : (d)->name)94 #define dep_name(d) ((d)->name == 0 ? (d)->file->name : (d)->name) 82 95 83 struct dep *alloc_dep (void); 84 void free_dep (struct dep *d); 96 97 #ifndef CONFIG_WITH_ALLOC_CACHES 98 #define alloc_dep() (xcalloc (sizeof (struct dep))) 99 #define free_ns(_n) free (_n) 100 #define free_dep(_d) free_ns (_d) 101 #else 102 #define alloc_dep() alloccache_calloc (&dep_cache) 103 #define free_ns(_n) alloccache_free (&nameseq_cache, _n) 104 #define free_dep(_d) alloccache_free (&dep_cache, _d) 105 #endif 106 85 107 struct dep *copy_dep_chain (const struct dep *d); 86 108 void free_dep_chain (struct dep *d); 87 109 void free_ns_chain (struct nameseq *n); 88 110 struct dep *read_all_makefiles (const char **makefiles); 89 #ifndef CONFIG_WITH_VALUE_LENGTH 90 int eval_buffer (char *buffer); 91 #else 92 int eval_buffer (char *buffer, char *eos); 93 #endif 111 void eval_buffer (char *buffer IF_WITH_VALUE_LENGTH(COMMA char *eos)); 94 112 int update_goal_chain (struct dep *goals); 95 void uniquize_deps (struct dep *);96 113 97 114 #ifdef CONFIG_WITH_INCLUDEDEP … … 100 117 void eval_include_dep (const char *name, struct floc *f, enum incdep_op op); 101 118 void incdep_flush_and_term (void); 102 103 /* read.c */104 void record_files (struct nameseq *filenames, const char *pattern,105 const char *pattern_percent, struct dep *deps,106 unsigned int cmds_started, char *commands,107 unsigned int commands_idx, int two_colon,108 const struct floc *flocp);109 119 #endif 110 120
Note:
See TracChangeset
for help on using the changeset viewer.