Home | History | Annotate | Download | only in src

Lines Matching defs:base

181 /* Decompose FILE_NAME in four parts: *BASE, *TAB, and *EXT, the fourth
183 *BASE, so we don't need an additional parameter.
189 cannot be equal to *BASE.
194 '/tmp/foo.tab.c' -> *BASE = 'foo.tab.c', *TAB = '.tab.c', *EXT =
197 'foo.c' -> *BASE = 'foo.c', *TAB = NULL, *EXT = '.c'
199 'tab.c' -> *BASE = 'tab.c', *TAB = NULL, *EXT = '.c'
201 '.tab.c' -> *BASE = '.tab.c', *TAB = NULL, *EXT = '.c'
203 'foo.tab' -> *BASE = 'foo.tab', *TAB = NULL, *EXT = '.tab'
205 'foo_tab' -> *BASE = 'foo_tab', *TAB = NULL, *EXT = NULL
207 'foo' -> *BASE = 'foo', *TAB = NULL, *EXT = NULL. */
211 const char **base, const char **tab, const char **ext)
213 *base = base_name (file_name);
216 *ext = strrchr (*base, '.');
223 size_t baselen = *ext - *base;
236 const char *base, *tab, *ext;
245 file_name_split (spec_outfile, &base, &tab, &ext);
246 dir_prefix = xstrndup (spec_outfile, base - spec_outfile);
264 file_name_split (grammar_file, &base, &tab, &ext);
269 dir_prefix = xstrndup (grammar_file, base - grammar_file);
284 xstrndup (base, (strlen (base) - (ext ? strlen (ext) : 0)));