1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
Description: Conversion patch from d/source/format 1.0 to 3.0 quilt.
Last-Update: 2022-05-25
--- a/RIGHTS
+++ b/RIGHTS
@@ -5,7 +5,7 @@
Set (PCCTS) -- PCCTS is in the public domain. An individual or
company may do whatever they wish with source code distributed with
PCCTS or the code generated by PCCTS, including the incorporation of
-PCCTS, or its output, into commerical software.
+PCCTS, or its output, into commercial software.
We encourage users to develop software with PCCTS. However, we do ask
that credit is given to us for developing PCCTS. By "credit", we mean
--- a/antlr/antlr.1
+++ b/antlr/antlr.1
@@ -98,7 +98,7 @@
.IP \fB-gl\fP
Generate line info about grammar actions in C parser of the form
\fB#\ \fIline\fP\ "\fIfile\fP"\fR which makes error messages from
-the C/C++ compiler make more sense as they will \*Qpoint\*U into the
+the C/C++ compiler make more sense as they will point into the
grammar file not the resulting C file. Debugging is easier as well,
because you will step through the grammar not C file.
.IP \fB-gs\fR
--- a/antlr/gen.c
+++ b/antlr/gen.c
@@ -1743,7 +1743,7 @@
Junction *q;
#endif
{
- Junction * qOriginal = q; /* DEBUG */
+ /* Junction * qOriginal = q; DEBUG */
/* MR14 Couldn't find aSubBlock which was a guess block when it lay
behind aLoopBlk. The aLoopBlk only appear in conjunction with
--- a/dlg/dlg.1
+++ b/dlg/dlg.1
@@ -30,7 +30,7 @@
of look ahead.
.IP "\fB-cl\fP class
Specify a class name for DLG to generate. The default is DLGLexer.
-'class' will be a subclass of DLGLexerBase; only used for -CC.
+"class" will be a subclass of DLGLexerBase; only used for -CC.
.IP \fB-ci\fP
The automaton will treat upper and lower case characters identically.
This is accomplished in the automaton; the characters in the lexical
--- a/sorcerer/lib/astlib.c
+++ b/sorcerer/lib/astlib.c
@@ -217,7 +217,7 @@
SORAST *sib;
if ( u==NULL ) return 1;
- if ( t==NULL ) if ( u!=NULL ) return 0; else return 1;
+ if ( t==NULL ) { if ( u!=NULL ) return 0; } else return 1;
for (sib=t; sib!=NULL&&u!=NULL; sib=sib->ast_right, u=u->ast_right)
{
@@ -310,7 +310,7 @@
{
SORAST *sib;
- if ( t==NULL ) if ( u!=NULL ) return 0; else return 1;
+ if ( t==NULL ) { if ( u!=NULL ) return 0; } else return 1;
if ( u==NULL ) return 0;
for (sib=t; sib!=NULL&&u!=NULL; sib=sib->ast_right, u=u->ast_right)
@@ -335,7 +335,7 @@
{
ScanAST *sib;
- if ( t==NULL ) if ( u!=NULL ) return 0; else return 1;
+ if ( t==NULL ) { if ( u!=NULL ) return 0; } else return 1;
if ( u==NULL ) return 0;
for (sib=t; sib!=NULL&&u!=NULL; sib=sib->right, u=u->ast_right)
--- a/sorcerer/lib/sintstack.c
+++ b/sorcerer/lib/sintstack.c
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <setjmp.h>
+#include "pcctscfg.h"
#ifdef PCCTS_USE_STDARG
#include <stdarg.h>
#else
--- a/sorcerer/lib/sorlist.c
+++ b/sorcerer/lib/sorlist.c
@@ -28,6 +28,7 @@
*/
#include <stdio.h>
#include <setjmp.h>
+#include "pcctscfg.h"
#ifdef PCCTS_USE_STDARG
#include <stdarg.h>
--- a/sorcerer/makefile
+++ b/sorcerer/makefile
@@ -43,6 +43,7 @@
clean:
rm -f *.o core sor
+ $(MAKE) -C lib clean
scrub:
rm -f *.o core $(GENHFILES) parser.dlg scan.c err.c sor.c sor
--- a/sorcerer/sor.c
+++ b/sorcerer/sor.c
@@ -6,7 +6,7 @@
* With AHPCRC, University of Minnesota
* ANTLR Version 1.33MR33
*
- * ..\bin\antlr -gh -k 2 -gt sor.g
+ * ../bin/antlr -gh -k 2 -gt sor.g
*
*/
--- a/sorcerer/test/makefile
+++ b/sorcerer/test/makefile
@@ -2,9 +2,7 @@
# Makefile for simple 1.00B SORCERER examples
#
-PCCTS=../..
-BIN=$(PCCTS)/bin
-SOR = $(BIN)/sor
+SOR = sor
CFLAGS = -I. -I../../h -I../h -I../lib -g -ansi
DFLAGS = -C2 -i
SRC = test.c
--- a/support/genmk/genmk.c
+++ b/support/genmk/genmk.c
@@ -79,6 +79,7 @@
void pfiles();
void fatal();
void warn();
+void pclasses(char **classes, int n, char *suffix);
#endif
typedef struct _Opt {
@@ -966,8 +967,10 @@
}
#ifdef __STDC__
+void
pclasses(char **classes, int n, char *suffix)
#else
+void
pclasses(classes, n, suffix)
char **classes;
int n;
|