Skip to content

Commit

Permalink
Regenerate ncgen from genparser (#642) (#643)
Browse files Browse the repository at this point in the history
* Regenerate ncgen from genparser (#642)

* Add autotools generated files with misspelled words to codespell skip
list.

---------

Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
  • Loading branch information
lrknox and derobins committed Feb 28, 2024
1 parent e8444c1 commit e9e41d7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
- uses: actions/checkout@v4.1.1
- uses: codespell-project/actions-codespell@master
with:
skip: ./config/sanitizer/sanitizers.cmake,./hdf/util/testfiles/*.raw,./hdf/util/testfiles/head.r8,./mfhdf/ncdump/*,./mfhdf/ncgen/*,./mfhdf/nctest/*,./mfhdf/README,./mfhdf/THANKS,./mfhdf/FAQ
skip: ./config/sanitizer/sanitizers.cmake,./hdf/util/testfiles/*.raw,./hdf/util/testfiles/head.r8,./mfhdf/ncdump/*,./mfhdf/ncgen/*,./mfhdf/nctest/*,./mfhdf/README,./mfhdf/THANKS,./mfhdf/FAQ,./configure,./bin/ltmain.sh,./bin/depcomp,./bin/config.guess,./bin/config.sub,./autom4te.cache,./m4/libtool.m4
ignore_words_list: acount,anid,ans,clude,isnt,inout,fo,msdos,nam,nd,pres,sav,shs,siz,varn,vlone
31 changes: 16 additions & 15 deletions mfhdf/ncgen/ncgenyy.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#line 1 "mfhdf/ncgen/ncgenyy.c"
#line 2 "mfhdf/ncgen/ncgenyy.c"

#line 3 "mfhdf/ncgen/ncgenyy.c"
#line 4 "mfhdf/ncgen/ncgenyy.c"

#define YY_INT_ALIGNED short int

Expand Down Expand Up @@ -644,12 +644,13 @@ char *yytext;
char errstr[100]; /* for short error messages */
void expand_escapes();

#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "ncgentab.h"
#line 652 "mfhdf/ncgen/ncgenyy.c"
#line 653 "mfhdf/ncgen/ncgenyy.c"
#line 654 "mfhdf/ncgen/ncgenyy.c"

#define INITIAL 0

Expand Down Expand Up @@ -860,7 +861,7 @@ YY_DECL
{
#line 22 "mfhdf/ncgen/ncgen.l"

#line 864 "mfhdf/ncgen/ncgenyy.c"
#line 865 "mfhdf/ncgen/ncgenyy.c"

while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
Expand Down Expand Up @@ -1099,7 +1100,7 @@ YY_RULE_SETUP
YY_BREAK
case 22:
YY_RULE_SETUP
#line 126 "mfhdf/ncgen/ncgen.l"
#line 122 "mfhdf/ncgen/ncgen.l"
{
long dd;
if (sscanf((char*)yytext, "%li", &dd) != 1) {
Expand All @@ -1113,31 +1114,31 @@ YY_RULE_SETUP
case 23:
/* rule 23 can match eol */
YY_RULE_SETUP
#line 135 "mfhdf/ncgen/ncgen.l"
#line 131 "mfhdf/ncgen/ncgen.l"
{
(void) sscanf((char*)&yytext[1],"%c",&byte_val);
return (BYTE_CONST);
}
YY_BREAK
case 24:
YY_RULE_SETUP
#line 139 "mfhdf/ncgen/ncgen.l"
#line 135 "mfhdf/ncgen/ncgen.l"
{
byte_val = strtol((char*)&yytext[2], (char **) 0, 8);
return (BYTE_CONST);
}
YY_BREAK
case 25:
YY_RULE_SETUP
#line 143 "mfhdf/ncgen/ncgen.l"
#line 139 "mfhdf/ncgen/ncgen.l"
{
byte_val = strtol((char*)&yytext[2], (char **) 0, 16);
return (BYTE_CONST);
}
YY_BREAK
case 26:
YY_RULE_SETUP
#line 147 "mfhdf/ncgen/ncgen.l"
#line 143 "mfhdf/ncgen/ncgen.l"
{
switch ((char)yytext[2]) {
case 'a': byte_val = '\007'; break; /* not everyone under-
Expand All @@ -1158,21 +1159,21 @@ YY_RULE_SETUP
YY_BREAK
case 27:
YY_RULE_SETUP
#line 165 "mfhdf/ncgen/ncgen.l"
#line 161 "mfhdf/ncgen/ncgen.l"
{/* whitespace */ ;
}
YY_BREAK
case 28:
YY_RULE_SETUP
#line 167 "mfhdf/ncgen/ncgen.l"
#line 163 "mfhdf/ncgen/ncgen.l"
return (yytext[0]) ;
YY_BREAK
case 29:
YY_RULE_SETUP
#line 168 "mfhdf/ncgen/ncgen.l"
#line 164 "mfhdf/ncgen/ncgen.l"
ECHO;
YY_BREAK
#line 1180 "mfhdf/ncgen/ncgenyy.c"
#line 1177 "mfhdf/ncgen/ncgenyy.c"
case YY_STATE_EOF(INITIAL):
yyterminate();

Expand Down Expand Up @@ -2177,4 +2178,4 @@ void yyfree (void * ptr )

#define YYTABLES_NAME "yytables"

#line 168 "mfhdf/ncgen/ncgen.l"
#line 164 "mfhdf/ncgen/ncgen.l"

0 comments on commit e9e41d7

Please sign in to comment.