Lines Matching refs:path

809 static int already_tokenized(const char *path)
813 for (stream = *hash_stream(path); stream >= 0 ; stream = next) {
818 if (strcmp(path, s->name))
824 if (strcmp(path, s->name))
876 const char *path = stream->path;
877 if (!path) {
879 path = "";
886 path = m;
887 /* normalize this path */
888 while (path[0] == '.' && path[1] == '/') {
889 path += 2;
890 while (path[0] == '/')
891 path++;
894 stream->path = path;
896 includepath[0] = path;
899 static int try_include(struct position pos, const char *path, const char *filename, int flen, struct token **where, const char **next_path)
902 int plen = strlen(path);
905 memcpy(fullname, path, plen);
906 if (plen && path[plen-1] != '/') {
925 const char *path;
927 while ((path = *pptr++) != NULL) {
928 if (!try_include(token->pos, path, filename, flen, list, pptr))
949 const char **path;
969 /* Absolute path? */
978 path = stream->next_path;
982 path = includepath;
987 path = expect ? angle_includepath : quote_includepath;
991 if (do_include_path(path, list, token, filename, flen))
1806 /* Add a path before 'where' and update the pointers associated with the
1808 static void add_path_entry(struct token *token, const char *path,
1816 error_die(token->pos, "too many include path entries");
1821 if (strcmp(*dst, path) == 0)
1825 next = path;
1849 warning(token->pos, "expected path string");
1863 sparse_error(token->pos, "expected path string");
1877 sparse_error(token->pos, "expected path string");
1885 static void add_dirafter_entry(struct token *token, const char *path)
1891 error_die(token->pos, "too many include path entries");
1896 *dst = path;
1908 sparse_error(token->pos, "expected path string");
1920 * Split the include path. Any directories specified with `-I'