Lines Matching refs:includePath
43 static int szPath; /* number of entries allocated for includePath */
44 static int nPathEntries; /* number of actual entries in includePath */
45 static char **includePath; /* Holds all directories we might be including data from */
161 includePath = (char **) calloc(szPath, sizeof(char *));
162 if (includePath == NULL)
176 * Remove all entries from the global includePath.
185 free(includePath[i]);
186 includePath[i] = NULL;
195 * Add the given path to the global includePath variable.
196 * If dir is NULL, the includePath is emptied.
218 new = (char **) realloc(includePath, szPath * sizeof(char *));
221 WSGO("Allocation failed (includePath)\n");
225 includePath = new;
227 includePath[nPathEntries] = strdup(dir);
228 if (includePath[nPathEntries] == NULL)
230 WSGO("Allocation failed (includePath[%d])\n", nPathEntries);
388 int pathLen = strlen(includePath[i]);
394 ERROR("File name (%s/%s/%s) too long\n", includePath[i],
399 snprintf(buf, sizeof(buf), "%s/%s/%s", includePath[i], typeDir, name);