pp_directives_len can be uint8_t

Save a few hundred bytes...
This commit is contained in:
H. Peter Anvin 2008-06-21 18:18:41 -07:00
parent cda816306d
commit 18ed99daea
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;