Home | History | Annotate | Download | only in src

Lines Matching refs:tab

63    If --output=dir/foo.tab.c was specified, DIR_PREFIX is `dir/',
64 ALL_BUT_EXT is `dir/foo.tab', and ALL_BUT_TAB_EXT is `dir/foo'.
67 ALL_BUT_EXT = `foo.tab' and ALL_BUT_TAB_EXT = `foo'.
177 /* Decompose FILE_NAME in four parts: *BASE, *TAB, and *EXT, the fourth
183 If there is no *EXT, *TAB is NULL. Otherwise, *TAB points to
184 `.tab' or `_tab' if present right before *EXT, or is NULL. *TAB
190 '/tmp/foo.tab.c' -> *BASE = 'foo.tab.c', *TAB = '.tab.c', *EXT =
193 'foo.c' -> *BASE = 'foo.c', *TAB = NULL, *EXT = '.c'
195 'tab.c' -> *BASE = 'tab.c', *TAB = NULL, *EXT = '.c'
197 '.tab.c' -> *BASE = '.tab.c', *TAB = NULL, *EXT = '.c'
199 'foo.tab' -> *BASE = 'foo.tab', *TAB = NULL, *EXT = '.tab'
201 'foo_tab' -> *BASE = 'foo_tab', *TAB = NULL, *EXT = NULL
203 'foo' -> *BASE = 'foo', *TAB = NULL, *EXT = NULL. */
207 const char **base, const char **tab, const char **ext)
213 *tab = NULL;
215 /* If there is an extension, check if there is a `.tab' part right
222 && (strncmp (*ext - dottablen, ".tab", dottablen) == 0
224 *tab = *ext - dottablen;
232 const char *base, *tab, *ext;
238 files, remove the ".c" or ".tab.c" suffix. */
241 file_name_split (spec_outfile, &base, &tab, &ext);
249 /* ALL_BUT_TAB_EXT goes up to TAB, excluding it. */
253 - (tab ? strlen (tab) : (ext ? strlen (ext) : 0))));
260 file_name_split (grammar_file, &base, &tab, &ext);
272 /* If --yacc, then the output is `y.tab.c'. */