1 |
/* Give this program DOC-mm.nn.oo as standard input and it outputs to |
/* Give this program DOC-mm.nn.oo as standard input and it outputs to |
2 |
standard output a file of texinfo input containing the doc strings. |
standard output a file of texinfo input containing the doc strings. |
3 |
|
|
4 |
Copyright (C) 1989, 1992, 1994, 1996, 1999, 2000, 2001 |
Copyright (C) 1989, 1992, 1994, 1996, 1999, 2000, 2001 |
5 |
Free Software Foundation Inc. |
Free Software Foundation Inc. |
6 |
|
|
121 |
{ |
{ |
122 |
"WAITING", "BEG_NAME", "NAME_GET", "BEG_DESC", "DESC_GET" |
"WAITING", "BEG_NAME", "NAME_GET", "BEG_DESC", "DESC_GET" |
123 |
}; |
}; |
124 |
|
|
125 |
int |
int |
126 |
main () |
main () |
127 |
{ |
{ |
133 |
|
|
134 |
DOCSTR *docs; /* chain of allocated DOCSTRS */ |
DOCSTR *docs; /* chain of allocated DOCSTRS */ |
135 |
char buf[512]; /* line buffer */ |
char buf[512]; /* line buffer */ |
136 |
|
|
137 |
while (1) /* process one char at a time */ |
while (1) /* process one char at a time */ |
138 |
{ |
{ |
139 |
/* this char from the DOCSTR file */ |
/* this char from the DOCSTR file */ |
181 |
bp = buf; |
bp = buf; |
182 |
state = DESC_GET; |
state = DESC_GET; |
183 |
} |
} |
184 |
|
|
185 |
/* process gets */ |
/* process gets */ |
186 |
|
|
187 |
if (state == NAME_GET || state == DESC_GET) |
if (state == NAME_GET || state == DESC_GET) |