diff options
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 |