Commit f5d3117d authored by Richard Levitte's avatar Richard Levitte
Browse files

Refresh seldom used C generating scripts to current C standard



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent eb334f73
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -76,17 +76,19 @@ $arr[ord("?")] |= $PSTRING_CHAR;
# Now generate the C code

print <<EOF;
/* Auto generated with chartype.pl script.
 * Mask of various character properties
/*
 * Auto generated with chartype.pl script. Mask of various character
 * properties
 */

static unsigned short char_type[] = {
static const unsigned short char_type[] = {
EOF

print "   ";
for($i = 0; $i < 128; $i++) {
	print("\n   ") if($i && (($i % 16) == 0));
	printf("%2d", $arr[$i]);
	printf(" %d", $arr[$i]);
	print(",") if ($i != 127);
}
print("\n};\n\n");
print("\n};\n");
+60 −58
Original line number Diff line number Diff line
@@ -110,8 +110,10 @@ print <<"EOF";
 * [including the GNU Public Licence.]
 */

/* THIS FILE WAS AUTOMAGICALLY GENERATED!
   Please modify and use keysets.pl to regenerate it. */
/*
 * THIS FILE WAS AUTOMAGICALLY GENERATED! Please modify and use keysets.pl to
 * regenerate it.
 */

#define CONF_NUMBER             $NUMBER
#define CONF_UPPER              $UPPER
@@ -168,18 +170,18 @@ print "static unsigned short CONF_type_default[256]={";

for ($i=0; $i<256; $i++)
	{
	print "\n\t" if ($i % 8) == 0;
	print "\n   " if ($i % 8) == 0;
	printf " 0x%04X,",$V_def[$i];
	}

print "\n\t};\n\n";
print "\n};\n\n";

print "static unsigned short CONF_type_win32[256] = {";

for ($i=0; $i<256; $i++)
	{
	print "\n\t" if ($i % 8) == 0;
	print "\n   " if ($i % 8) == 0;
	printf " 0x%04X,",$V_w32[$i];
	}

print "\n\t};\n\n";
print "\n};\n";