Lines Matching refs:ext
145 compute_exts_from_gf (const char *ext)
147 if (strcmp (ext, ".y") == 0)
154 src_extension = xstrdup (ext);
155 header_extension = xstrdup (ext);
165 compute_exts_from_src (const char *ext)
170 src_extension = xstrdup (ext);
171 header_extension = xstrdup (ext);
207 const char **base, const char **tab, const char **ext)
212 *ext = mbsrchr (*base, '.');
217 if (*ext)
219 size_t baselen = *ext - *base;
222 && (strncmp (*ext - dottablen, ".tab", dottablen) == 0
223 || strncmp (*ext - dottablen, "_tab", dottablen) == 0))
224 *tab = *ext - dottablen;
232 const char *base, *tab, *ext;
241 file_name_split (spec_outfile, &base, &tab, &ext);
247 (strlen (spec_outfile) - (ext ? strlen (ext) : 0)));
253 - (tab ? strlen (tab) : (ext ? strlen (ext) : 0))));
255 if (ext)
256 compute_exts_from_src (ext);
260 file_name_split (grammar_file, &base, &tab, &ext);
282 xstrndup (base, (strlen (base) - (ext ? strlen (ext) : 0)));
291 if (ext && !yacc_flag)
292 compute_exts_from_gf (ext);