Skip to content
Snippets Groups Projects
Commit ad19c178 authored by rswindell's avatar rswindell
Browse files

Help index is written as a short.

Displays help index entries as it writes them to the index (for debugging).
parent d18a0b06
Branches
Tags
No related merge requests found
...@@ -29,7 +29,8 @@ int main(void) ...@@ -29,7 +29,8 @@ int main(void)
,"scfgxtrn.c" ,"scfgxtrn.c"
,NULL }; ,NULL };
char str[256],tmp[256]; char str[256],tmp[256];
int i,j,k,line,ixb; int i,j,k,ixb;
unsigned short line;
long l; long l;
FILE *stream,*out; FILE *stream,*out;
...@@ -52,6 +53,7 @@ int main(void) ...@@ -52,6 +53,7 @@ int main(void)
break; break;
line++; line++;
if(strstr(str,"SETHELP(WHERE);")) { if(strstr(str,"SETHELP(WHERE);")) {
printf("%s:%u\n",files[i],line);
l=ftell(out); l=ftell(out);
write(ixb,files[i],12); write(ixb,files[i],12);
write(ixb,&line,2); write(ixb,&line,2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment