mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
pp_directives_len can be uint8_t
Save a few hundred bytes...
This commit is contained in:
parent
cda816306d
commit
18ed99daea
2 changed files with 2 additions and 2 deletions
2
pptok.pl
2
pptok.pl
|
|
@ -162,7 +162,7 @@ if ($what eq 'c') {
|
|||
}
|
||||
print OUT "};\n";
|
||||
|
||||
printf OUT "const int pp_directives_len[%d] = {\n", scalar(@pptok);
|
||||
printf OUT "const uint8_t pp_directives_len[%d] = {\n", scalar(@pptok);
|
||||
foreach $d (@pptok) {
|
||||
printf OUT " %d,\n", defined($d) ? length($d)+1 : 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
#include "pptok.h"
|
||||
|
||||
extern const char * const pp_directives[];
|
||||
extern const int pp_directives_len[];
|
||||
extern const uint8_t pp_directives_len[];
|
||||
|
||||
/* Pointer to a macro chain */
|
||||
typedef const char macros_t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue