Mercurial > ~dholland > hg > ag > index.cgi
comparison helpgen/readhelp.c @ 22:5581ef01f993
Regen all the AG output.
This also fixes the line number output in the tools
(cgbigen/helpgen/help2html), apparently because those files weren't
regenerated last go.
author | David A. Holland |
---|---|
date | Mon, 13 Jun 2022 00:06:39 -0400 |
parents | ec2b657edf13 |
children |
comparison
equal
deleted
inserted
replaced
21:1c9dac05d040 | 22:5581ef01f993 |
---|---|
20 #include "topic.h" | 20 #include "topic.h" |
21 #include "helpgen.h" | 21 #include "helpgen.h" |
22 | 22 |
23 /* | 23 /* |
24 * AnaGram, A System for Syntax Directed Programming | 24 * AnaGram, A System for Syntax Directed Programming |
25 * File generated by: Version 2.40-current, built Jun 13 2007 | 25 * File generated by: Version 2.40-current, built Jun 12 2022 |
26 * | 26 * |
27 * AnaGram Parsing Engine | 27 * AnaGram Parsing Engine |
28 * Copyright 1993-2002 Parsifal Software. All Rights Reserved. | 28 * Copyright 1993-2002 Parsifal Software. All Rights Reserved. |
29 * | 29 * |
30 * This software is provided 'as-is', without any express or implied | 30 * This software is provided 'as-is', without any express or implied |
42 * 2. Altered source versions must be plainly marked as such, and must not be | 42 * 2. Altered source versions must be plainly marked as such, and must not be |
43 * misrepresented as being the original software. | 43 * misrepresented as being the original software. |
44 * 3. This notice may not be removed or altered from any source distribution. | 44 * 3. This notice may not be removed or altered from any source distribution. |
45 */ | 45 */ |
46 | 46 |
47 #ifndef READHELP_H_1181769468 | 47 #ifndef READHELP_H_1655092739 |
48 #include "readhelp.h" | 48 #include "readhelp.h" |
49 #endif | 49 #endif |
50 | 50 |
51 #ifndef READHELP_H_1181769468 | 51 #ifndef READHELP_H_1655092739 |
52 #error Mismatched header file | 52 #error Mismatched header file |
53 #endif | 53 #endif |
54 | 54 |
55 #include <ctype.h> | 55 #include <ctype.h> |
56 #include <stdio.h> | 56 #include <stdio.h> |
62 | 62 |
63 | 63 |
64 readhelp_pcb_type readhelp_pcb; | 64 readhelp_pcb_type readhelp_pcb; |
65 #define PCB readhelp_pcb | 65 #define PCB readhelp_pcb |
66 | 66 |
67 #line 124 "/disk/disk0/home/dholland/projects/ag/src/helpgen/readhelp.syn" | 67 #line 124 "../../src/helpgen/readhelp.syn" |
68 static char string_space[4096]; | 68 static char string_space[4096]; |
69 static size_t string_pos; | 69 static size_t string_pos; |
70 | 70 |
71 static void startstr(void) { | 71 static void startstr(void) { |
72 string_pos = 0; | 72 string_pos = 0; |
83 static const char *getstr(void) { | 83 static const char *getstr(void) { |
84 string_space[string_pos] = 0; | 84 string_space[string_pos] = 0; |
85 return string_space; | 85 return string_space; |
86 } | 86 } |
87 #line 88 "readhelp.c" | 87 #line 88 "readhelp.c" |
88 #line 149 "/disk/disk0/home/dholland/projects/ag/src/helpgen/readhelp.syn" | 88 #line 149 "../../src/helpgen/readhelp.syn" |
89 static struct topic *curtopic; | 89 static struct topic *curtopic; |
90 | 90 |
91 static void startblock(void) { | 91 static void startblock(void) { |
92 assert(curtopic == NULL); | 92 assert(curtopic == NULL); |
93 curtopic = topic_create(); | 93 curtopic = topic_create(); |
101 static void see_xref(const char *ref) { | 101 static void see_xref(const char *ref) { |
102 topic_addref(curtopic, ref); | 102 topic_addref(curtopic, ref); |
103 } | 103 } |
104 | 104 |
105 #line 106 "readhelp.c" | 105 #line 106 "readhelp.c" |
106 #line 172 "/disk/disk0/home/dholland/projects/ag/src/helpgen/readhelp.syn" | 106 #line 172 "../../src/helpgen/readhelp.syn" |
107 #define GET_CONTEXT CONTEXT = PCB.pointer | 107 #define GET_CONTEXT CONTEXT = PCB.pointer |
108 | 108 |
109 static unsigned char *inputdata; | 109 static unsigned char *inputdata; |
110 | 110 |
111 static void block(long head, long tail) { | 111 static void block(long head, long tail) { |
195 #define ag_rp_14() (CONTEXT - inputdata) | 195 #define ag_rp_14() (CONTEXT - inputdata) |
196 | 196 |
197 #define ag_rp_15() (CONTEXT - inputdata) | 197 #define ag_rp_15() (CONTEXT - inputdata) |
198 | 198 |
199 static void ag_rp_16(void) { | 199 static void ag_rp_16(void) { |
200 #line 105 "/disk/disk0/home/dholland/projects/ag/src/helpgen/readhelp.syn" | 200 #line 105 "../../src/helpgen/readhelp.syn" |
201 startblock(); | 201 startblock(); |
202 #line 203 "readhelp.c" | 202 #line 203 "readhelp.c" |
203 } | 203 } |
204 | 204 |
205 #define ag_rp_17() (endblock()) | 205 #define ag_rp_17() (endblock()) |