Changeset 37 for trunk/src/kmk/var.c
- Timestamp:
- Mar 27, 2003, 1:06:39 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/var.c
r36 r37 89 89 90 90 #ifdef USE_KLIB 91 #include <kLib/kLib.h> 91 #define KLIB_INSTRICT 92 #include <kLib/kLib.h> 92 93 #endif 93 94 … … 96 97 #include <regex.h> 97 98 #include <stdlib.h> 99 #include <string.h> 98 100 #include "make.h" 99 101 #include "buf.h" … … 222 224 return (strcmp ((char *) name, ((Var *) v)->name)); 223 225 } 226 227 /*- 228 *----------------------------------------------------------------------- 229 * StrCmp -- 230 * See if the given strings matches. Called from 231 * Lst_Find when searching for a environment-variable-overrided var. 232 * 233 * Results: 234 * 0 if they match. non-zero otherwise. 235 * 236 * Side Effects: 237 * none 238 *----------------------------------------------------------------------- 239 */ 240 static int 241 VarStrCmp (str1, str2) 242 ClientData str1; 243 ClientData str2; 244 { 245 return (strcmp ((char *) str1, (char *)str2)); 246 } 247 248 224 249 225 250 /*- … … 293 318 */ 294 319 if (Lst_Find (envFirstVars, (ClientData)name, 295 (int (*)(ClientData, ClientData)) strcmp) != NILLNODE)320 (int (*)(ClientData, ClientData)) VarStrCmp) != NILLNODE) 296 321 { 297 322 localCheckEnvFirst = TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.