Lines Matching refs:ext
143 compute_exts_from_gf (const char *ext) in compute_exts_from_gf() argument
145 if (strcmp (ext, ".y") == 0) in compute_exts_from_gf()
152 src_extension = xstrdup (ext); in compute_exts_from_gf()
153 header_extension = xstrdup (ext); in compute_exts_from_gf()
163 compute_exts_from_src (const char *ext) in compute_exts_from_src() argument
168 src_extension = xstrdup (ext); in compute_exts_from_src()
169 header_extension = xstrdup (ext); in compute_exts_from_src()
205 const char **base, const char **tab, const char **ext) in file_name_split() argument
210 *ext = mbsrchr (*base, '.'); in file_name_split()
215 if (*ext) in file_name_split()
217 size_t baselen = *ext - *base; in file_name_split()
220 && (strncmp (*ext - dottablen, ".tab", dottablen) == 0 in file_name_split()
221 || strncmp (*ext - dottablen, "_tab", dottablen) == 0)) in file_name_split()
222 *tab = *ext - dottablen; in file_name_split()
230 const char *base, *tab, *ext; in compute_file_name_parts() local
239 file_name_split (spec_outfile, &base, &tab, &ext); in compute_file_name_parts()
245 (strlen (spec_outfile) - (ext ? strlen (ext) : 0))); in compute_file_name_parts()
251 - (tab ? strlen (tab) : (ext ? strlen (ext) : 0)))); in compute_file_name_parts()
253 if (ext) in compute_file_name_parts()
254 compute_exts_from_src (ext); in compute_file_name_parts()
258 file_name_split (grammar_file, &base, &tab, &ext); in compute_file_name_parts()
280 xstrndup (base, (strlen (base) - (ext ? strlen (ext) : 0))); in compute_file_name_parts()
289 if (ext && !yacc_flag) in compute_file_name_parts()
290 compute_exts_from_gf (ext); in compute_file_name_parts()