]> git.saurik.com Git - bison.git/blobdiff - src/getargs.c
Convert underscores to dashes in some %define variable names.
[bison.git] / src / getargs.c
index 2f2e90051b74ff623a3ce848a28f8f8d427c0123..962dad4db1ff8f7fa6c31bf94ab1009bb0282375 100644 (file)
@@ -663,3 +663,11 @@ getargs (int argc, char *argv[])
   current_file = grammar_file = uniqstr_new (argv[optind]);
   MUSCLE_INSERT_C_STRING ("file_name", grammar_file);
 }
+
+void
+tr (char *s, char from, char to)
+{
+  for (; *s; s++)
+    if (*s == from)
+      *s = to;
+}