ref: 3916902cb6178992d35c04df7aba13ecd1e61375
parent: 3a29bb80d14034f7bd3bb8b3fa7ac33180522652
author: Andrew Chambers <ac@acha.ninja>
date: Thu Apr 7 21:22:13 CDT 2022
More renames.
--- a/amalgamate.sh
+++ b/amalgamate.sh
@@ -1,8 +1,11 @@
# Amalgamate the source code, sqlite3 style.
set -eu
-echo "/* This file is a distributable version of the minipeg[1] project."
-echo "/* [1] https://github.com/andrewchambers/minipeg */"
-
+cat <<EOF
+/*
+ This file is a distributable version of the minipeg[1] project.
+ Visit https://github.com/andrewchambers/minipeg for source code.
+*/
+EOF
(
for f in "$@"
do
--- a/compile.c
+++ b/compile.c
@@ -730,7 +730,7 @@
void Rule_compile_c_header(void)
{
- fprintf(output, "/* A recursive-descent parser generated by peg %d.%d.%d */\n", PEG_MAJOR, PEG_MINOR, PEG_LEVEL);
+ fprintf(output, "/* A recursive-descent parser generated by minipeg %s */\n", MINIPEG_VERSION);
fprintf(output, "\n");
fprintf(output, "%s", header);
fprintf(output, "#define YYRULECOUNT %d\n", ruleCount);
--- a/peg.c
+++ b/peg.c
@@ -1,4 +1,4 @@
-/* A recursive-descent parser generated by peg 0.1.18 */
+/* A recursive-descent parser generated by minipeg 0.1.19 */
#include <stdio.h>
#include <stdlib.h>
@@ -1440,7 +1440,7 @@
static void version(char *name)
{
- printf("%s version %d.%d.%d\n", name, PEG_MAJOR, PEG_MINOR, PEG_LEVEL);
+ printf("%s version %s\n", name, MINIPEG_VERSION);
}
static void usage(char *name)
--- a/peg.peg
+++ b/peg.peg
@@ -204,7 +204,7 @@
static void version(char *name)
{
- printf("%s version %d.%d.%d\n", name, PEG_MAJOR, PEG_MINOR, PEG_LEVEL);
+ printf("%s version %s\n", name, MINIPEG_VERSION);
}
static void usage(char *name)
--- a/version.h
+++ b/version.h
@@ -1,3 +1,1 @@
-#define PEG_MAJOR 0
-#define PEG_MINOR 1
-#define PEG_LEVEL 18
+#define MINIPEG_VERSION "0.1.19"