diff options
author | Richard Levitte <levitte@openssl.org> | 2016-05-01 15:08:34 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-05-01 15:08:34 +0200 |
commit | e18cf66aaf44b4d476625b2416386b051007d495 (patch) | |
tree | dae6336093dc2a2101de9871d656a5e5ca4d8065 /crypto/asn1/charmap.pl | |
parent | Skip blank lines if old copyright comment was removed, and only then (diff) | |
download | openssl-e18cf66aaf44b4d476625b2416386b051007d495.tar.xz openssl-e18cf66aaf44b4d476625b2416386b051007d495.zip |
Adjust a last few generators to new license boilerplate and C code style
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/asn1/charmap.pl')
-rw-r--r-- | crypto/asn1/charmap.pl | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/crypto/asn1/charmap.pl b/crypto/asn1/charmap.pl index c36cf78a90..4ddbe0edca 100644 --- a/crypto/asn1/charmap.pl +++ b/crypto/asn1/charmap.pl @@ -70,17 +70,29 @@ $arr[ord("?")] |= $PSTRING_CHAR; # Now generate the C code print <<EOF; -/* Auto generated with chartype.pl script. +/* + * WARNING: do not edit! + * Generated by crypto/asn1/charmap.pl + * + * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. + * Licensed under the OpenSSL license (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +/* * Mask of various character properties */ static const unsigned char char_type[] = { EOF +print " "; for($i = 0; $i < 128; $i++) { - print("\n") if($i && (($i % 16) == 0)); - printf("%2d", $arr[$i]); + print("\n ") if($i && (($i % 16) == 0)); + printf(" %2d", $arr[$i]); print(",") if ($i != 127); } -print("\n};\n\n"); +print("\n};\n"); |