-#ifdef MSDOS
- if (! noparserflag)
- actfile = mktemp(stringappend(tmp_base, tmp_len, "acXXXXXX"));
- tmpattrsfile = mktemp(stringappend(tmp_base, tmp_len, "atXXXXXX"));
- tmptabfile = mktemp(stringappend(tmp_base, tmp_len, "taXXXXXX"));
- tmpdefsfile = mktemp(stringappend(tmp_base, tmp_len, "deXXXXXX"));
-#else
- if (! noparserflag)
- actfile = mktemp(stringappend(tmp_base, tmp_len, "act.XXXXXX"));
- tmpattrsfile = mktemp(stringappend(tmp_base, tmp_len, "attrs.XXXXXX"));
- tmptabfile = mktemp(stringappend(tmp_base, tmp_len, "tab.XXXXXX"));
- tmpdefsfile = mktemp(stringappend(tmp_base, tmp_len, "defs.XXXXXX"));
-#endif /* not MSDOS */
-
- if (! noparserflag)
- faction = tryopen(actfile, "w+");
- fattrs = tryopen(tmpattrsfile,"w+");
- ftable = tryopen(tmptabfile, "w+");
-
- if (definesflag)
+/* Computes extensions from the given c source file extension. */
+static void
+compute_exts_from_src(const char *ext)
+{
+ if (!src_extension)
+ src_extension = xstrdup(ext);
+ if (!header_extension)