Changeset 425 for trunk/src/gmake
- Timestamp:
- Mar 26, 2006, 5:06:22 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/read.c
r310 r425 3020 3020 struct nameseq *nexto; 3021 3021 glob_t gl; 3022 #if defined(KMK) || defined(__EMX__) /* speed optimization */ 3023 int rc; 3024 #endif 3022 3025 3023 3026 dir_setup_glob (&gl); … … 3058 3061 #endif /* !NO_ARCHIVES */ 3059 3062 3063 #if defined(KMK) || defined(__EMX__) /* speed optimization */ 3064 if (!strpbrk(old->name, "*?[")) 3065 { 3066 gl.gl_pathc = 1; 3067 gl.gl_pathv = &old->name; 3068 } 3069 else 3070 rc = glob (old->name, GLOB_NOCHECK|GLOB_ALTDIRFUNC, NULL, &gl); 3071 switch (rc) 3072 #else 3060 3073 switch (glob (old->name, GLOB_NOCHECK|GLOB_ALTDIRFUNC, NULL, &gl)) 3074 #endif 3061 3075 { 3062 3076 case 0: /* Success. */ … … 3117 3131 } 3118 3132 } 3133 #if defined(KMK) || defined(__EMX__) /* speed optimization */ 3134 if (gl.gl_pathv != &old->name) 3135 #endif 3119 3136 globfree (&gl); 3120 3137 free (old->name);
Note:
See TracChangeset
for help on using the changeset viewer.