diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-02-17 17:25:57 +0000 |
---|---|---|
committer | <> | 2015-03-17 16:26:24 +0000 |
commit | 780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch) | |
tree | 598f8b9fa431b228d29897e798de4ac0c1d3d970 /dist/gen_rec.awk | |
parent | 7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff) | |
download | berkeleydb-master.tar.gz |
Diffstat (limited to 'dist/gen_rec.awk')
-rw-r--r-- | dist/gen_rec.awk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dist/gen_rec.awk b/dist/gen_rec.awk index 129c978f..006ddf56 100644 --- a/dist/gen_rec.awk +++ b/dist/gen_rec.awk @@ -2,7 +2,7 @@ # # See the file LICENSE for redistribution information. # -# Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 1996, 2015 Oracle and/or its affiliates. All rights reserved. # # $Id$ # @@ -178,7 +178,9 @@ BEGIN { make_name(thisfunc, thisfunc, version); } -/^[ ]*(DB|ARG|DBOP|DBT|DATA|HDR|LOCKS|OP|PGDBT|PGDDBT|PGLIST|POINTER|TIME)/ { +# Some versions of awk do not understand splitting a pattern into several lines +# with '\', so this > 80 character pattern needs to remain a single line. +/^[ ]*(DB|ARG|DBOP|DBT|DATA|HDR|LOCKS|OP|PGDBT|PGDDBT|PGLIST|POINTER|TIME|LONGARG)/ { vars[nvars] = $2; types[nvars] = $3; modes[nvars] = $1; @@ -202,6 +204,8 @@ BEGIN { sizes[nvars] = sprintf("sizeof(u_int32_t)"); if ($3 != "u_int32_t") is_uint = 1; + } else if ($1 == "LONGARG") { + sizes[nvars] = sprintf("sizeof(u_int64_t)"); } else if ($1 == "POINTER") sizes[nvars] = sprintf("sizeof(*%s)", $2); else { # DBT, PGDBT, PGDDBT |