gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-282


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-2829-g19905e0
Date: Wed, 8 Nov 2017 14:55:48 -0500 (EST)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, gawk-4.2-stable has been updated
       via  19905e061994bab83ffdce30dab36cea12e68fe4 (commit)
      from  260eb47384d0f212a8f1cc505d407b7022e8ee46 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=19905e061994bab83ffdce30dab36cea12e68fe4

commit 19905e061994bab83ffdce30dab36cea12e68fe4
Author: Arnold D. Robbins <address@hidden>
Date:   Wed Nov 8 21:55:28 2017 +0200

    Fix gawkapi.h for C++. Update doc.

diff --git a/ChangeLog b/ChangeLog
index cdf480f..70f5136 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-11-08         Arnold D. Robbins     <address@hidden>
+
+       * gawkapi.h (AWK_NUMBER_TYPE): Move this enum out to the
+       top level so that it works correctly with C++.
+
 2017-10-24         Arnold D. Robbins     <address@hidden>
 
        * NEWS: Updated with info about OS/2.
diff --git a/doc/ChangeLog b/doc/ChangeLog
index a5b0e7b..b15d838 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,8 @@
+2017-11-08         Arnold D. Robbins     <address@hidden>
+
+       * gawktexi.in (General Data Types): Move AWK_NUMBER_TYPE
+       enum out to top level, corresponding to code change.
+
 2017-10-19         Arnold D. Robbins     <address@hidden>
 
        * 4.2.0: Release tar ball made.
diff --git a/doc/gawk.info b/doc/gawk.info
index 243bd86..5e5736d 100644
--- a/doc/gawk.info
+++ b/doc/gawk.info
@@ -23845,13 +23845,19 @@ use them.
      Using these macros makes accessing the fields of the 'awk_value_t'
      more readable.
 
+'enum AWK_NUMBER_TYPE {'
+'    AWK_NUMBER_TYPE_DOUBLE,'
+'    AWK_NUMBER_TYPE_MPFR,'
+'    AWK_NUMBER_TYPE_MPZ'
+'};'
+     This 'enum' is used in the following structure for defining the
+     type of numeric value that is being worked with.  It is declared at
+     the top level of the file so that it works correctly for C++ as
+     well as for C.
+
 'typedef struct awk_number {'
 '    double d;'
-'    enum AWK_NUMBER_TYPE {'
-'        AWK_NUMBER_TYPE_DOUBLE,'
-'        AWK_NUMBER_TYPE_MPFR,'
-'        AWK_NUMBER_TYPE_MPZ'
-'    } type;'
+'    enum AWK_NUMBER_TYPE type;'
 '    void *ptr;'
 '} awk_number_t;'
      This represents a numeric value.  Internally, 'gawk' stores every
@@ -36318,143 +36324,143 @@ Ref: figure-call-new-function956146
 Node: Extension API Description958208
 Node: Extension API Functions Introduction959850
 Node: General Data Types965390
-Ref: General Data Types-Footnote-1973511
-Node: Memory Allocation Functions973810
-Ref: Memory Allocation Functions-Footnote-1978018
-Node: Constructor Functions978117
-Node: Registration Functions981703
-Node: Extension Functions982388
-Node: Exit Callback Functions987603
-Node: Extension Version String988853
-Node: Input Parsers989516
-Node: Output Wrappers1002237
-Node: Two-way processors1006749
-Node: Printing Messages1009014
-Ref: Printing Messages-Footnote-11010185
-Node: Updating ERRNO1010338
-Node: Requesting Values1011077
-Ref: table-value-types-returned1011814
-Node: Accessing Parameters1012750
-Node: Symbol Table Access1013985
-Node: Symbol table by name1014497
-Node: Symbol table by cookie1016286
-Ref: Symbol table by cookie-Footnote-11020471
-Node: Cached values1020535
-Ref: Cached values-Footnote-11024071
-Node: Array Manipulation1024224
-Ref: Array Manipulation-Footnote-11025315
-Node: Array Data Types1025352
-Ref: Array Data Types-Footnote-11028010
-Node: Array Functions1028102
-Node: Flattening Arrays1032600
-Node: Creating Arrays1039576
-Node: Redirection API1044345
-Node: Extension API Variables1047178
-Node: Extension Versioning1047889
-Ref: gawk-api-version1048318
-Node: Extension GMP/MPFR Versioning1050046
-Node: Extension API Informational Variables1051674
-Node: Extension API Boilerplate1052747
-Node: Changes from API V11056721
-Node: Finding Extensions1057381
-Node: Extension Example1057940
-Node: Internal File Description1058738
-Node: Internal File Ops1062818
-Ref: Internal File Ops-Footnote-11074218
-Node: Using Internal File Ops1074358
-Ref: Using Internal File Ops-Footnote-11076741
-Node: Extension Samples1077015
-Node: Extension Sample File Functions1078544
-Node: Extension Sample Fnmatch1086193
-Node: Extension Sample Fork1087680
-Node: Extension Sample Inplace1088898
-Node: Extension Sample Ord1092115
-Node: Extension Sample Readdir1092951
-Ref: table-readdir-file-types1093840
-Node: Extension Sample Revout1094645
-Node: Extension Sample Rev2way1095234
-Node: Extension Sample Read write array1095974
-Node: Extension Sample Readfile1097916
-Node: Extension Sample Time1099011
-Node: Extension Sample API Tests1100359
-Node: gawkextlib1100851
-Node: Extension summary1103307
-Node: Extension Exercises1107009
-Node: Language History1108507
-Node: V7/SVR3.11110163
-Node: SVR41112315
-Node: POSIX1113749
-Node: BTL1115129
-Node: POSIX/GNU1115858
-Node: Feature History1121636
-Node: Common Extensions1137495
-Node: Ranges and Locales1138778
-Ref: Ranges and Locales-Footnote-11143394
-Ref: Ranges and Locales-Footnote-21143421
-Ref: Ranges and Locales-Footnote-31143656
-Node: Contributors1143877
-Node: History summary1149822
-Node: Installation1151202
-Node: Gawk Distribution1152146
-Node: Getting1152630
-Node: Extracting1153593
-Node: Distribution contents1155231
-Node: Unix Installation1161711
-Node: Quick Installation1162393
-Node: Shell Startup Files1164807
-Node: Additional Configuration Options1165896
-Node: Configuration Philosophy1167885
-Node: Non-Unix Installation1170254
-Node: PC Installation1170714
-Node: PC Binary Installation1171552
-Node: PC Compiling1171987
-Node: PC Using1173104
-Node: Cygwin1176149
-Node: MSYS1176919
-Node: VMS Installation1177420
-Node: VMS Compilation1178211
-Ref: VMS Compilation-Footnote-11179440
-Node: VMS Dynamic Extensions1179498
-Node: VMS Installation Details1181183
-Node: VMS Running1183436
-Node: VMS GNV1187715
-Node: VMS Old Gawk1188450
-Node: Bugs1188921
-Node: Bug address1189584
-Node: Usenet1192376
-Node: Maintainers1193153
-Node: Other Versions1194414
-Node: Installation summary1201176
-Node: Notes1202378
-Node: Compatibility Mode1203243
-Node: Additions1204025
-Node: Accessing The Source1204950
-Node: Adding Code1206387
-Node: New Ports1212606
-Node: Derived Files1217094
-Ref: Derived Files-Footnote-11222740
-Ref: Derived Files-Footnote-21222775
-Ref: Derived Files-Footnote-31223373
-Node: Future Extensions1223487
-Node: Implementation Limitations1224145
-Node: Extension Design1225328
-Node: Old Extension Problems1226482
-Ref: Old Extension Problems-Footnote-11228000
-Node: Extension New Mechanism Goals1228057
-Ref: Extension New Mechanism Goals-Footnote-11231421
-Node: Extension Other Design Decisions1231610
-Node: Extension Future Growth1233723
-Node: Old Extension Mechanism1234559
-Node: Notes summary1236322
-Node: Basic Concepts1237504
-Node: Basic High Level1238185
-Ref: figure-general-flow1238467
-Ref: figure-process-flow1239152
-Ref: Basic High Level-Footnote-11242453
-Node: Basic Data Typing1242638
-Node: Glossary1245966
-Node: Copying1277802
-Node: GNU Free Documentation License1315341
-Node: Index1340459
+Ref: General Data Types-Footnote-1973751
+Node: Memory Allocation Functions974050
+Ref: Memory Allocation Functions-Footnote-1978258
+Node: Constructor Functions978357
+Node: Registration Functions981943
+Node: Extension Functions982628
+Node: Exit Callback Functions987843
+Node: Extension Version String989093
+Node: Input Parsers989756
+Node: Output Wrappers1002477
+Node: Two-way processors1006989
+Node: Printing Messages1009254
+Ref: Printing Messages-Footnote-11010425
+Node: Updating ERRNO1010578
+Node: Requesting Values1011317
+Ref: table-value-types-returned1012054
+Node: Accessing Parameters1012990
+Node: Symbol Table Access1014225
+Node: Symbol table by name1014737
+Node: Symbol table by cookie1016526
+Ref: Symbol table by cookie-Footnote-11020711
+Node: Cached values1020775
+Ref: Cached values-Footnote-11024311
+Node: Array Manipulation1024464
+Ref: Array Manipulation-Footnote-11025555
+Node: Array Data Types1025592
+Ref: Array Data Types-Footnote-11028250
+Node: Array Functions1028342
+Node: Flattening Arrays1032840
+Node: Creating Arrays1039816
+Node: Redirection API1044585
+Node: Extension API Variables1047418
+Node: Extension Versioning1048129
+Ref: gawk-api-version1048558
+Node: Extension GMP/MPFR Versioning1050286
+Node: Extension API Informational Variables1051914
+Node: Extension API Boilerplate1052987
+Node: Changes from API V11056961
+Node: Finding Extensions1057621
+Node: Extension Example1058180
+Node: Internal File Description1058978
+Node: Internal File Ops1063058
+Ref: Internal File Ops-Footnote-11074458
+Node: Using Internal File Ops1074598
+Ref: Using Internal File Ops-Footnote-11076981
+Node: Extension Samples1077255
+Node: Extension Sample File Functions1078784
+Node: Extension Sample Fnmatch1086433
+Node: Extension Sample Fork1087920
+Node: Extension Sample Inplace1089138
+Node: Extension Sample Ord1092355
+Node: Extension Sample Readdir1093191
+Ref: table-readdir-file-types1094080
+Node: Extension Sample Revout1094885
+Node: Extension Sample Rev2way1095474
+Node: Extension Sample Read write array1096214
+Node: Extension Sample Readfile1098156
+Node: Extension Sample Time1099251
+Node: Extension Sample API Tests1100599
+Node: gawkextlib1101091
+Node: Extension summary1103547
+Node: Extension Exercises1107249
+Node: Language History1108747
+Node: V7/SVR3.11110403
+Node: SVR41112555
+Node: POSIX1113989
+Node: BTL1115369
+Node: POSIX/GNU1116098
+Node: Feature History1121876
+Node: Common Extensions1137735
+Node: Ranges and Locales1139018
+Ref: Ranges and Locales-Footnote-11143634
+Ref: Ranges and Locales-Footnote-21143661
+Ref: Ranges and Locales-Footnote-31143896
+Node: Contributors1144117
+Node: History summary1150062
+Node: Installation1151442
+Node: Gawk Distribution1152386
+Node: Getting1152870
+Node: Extracting1153833
+Node: Distribution contents1155471
+Node: Unix Installation1161951
+Node: Quick Installation1162633
+Node: Shell Startup Files1165047
+Node: Additional Configuration Options1166136
+Node: Configuration Philosophy1168125
+Node: Non-Unix Installation1170494
+Node: PC Installation1170954
+Node: PC Binary Installation1171792
+Node: PC Compiling1172227
+Node: PC Using1173344
+Node: Cygwin1176389
+Node: MSYS1177159
+Node: VMS Installation1177660
+Node: VMS Compilation1178451
+Ref: VMS Compilation-Footnote-11179680
+Node: VMS Dynamic Extensions1179738
+Node: VMS Installation Details1181423
+Node: VMS Running1183676
+Node: VMS GNV1187955
+Node: VMS Old Gawk1188690
+Node: Bugs1189161
+Node: Bug address1189824
+Node: Usenet1192616
+Node: Maintainers1193393
+Node: Other Versions1194654
+Node: Installation summary1201416
+Node: Notes1202618
+Node: Compatibility Mode1203483
+Node: Additions1204265
+Node: Accessing The Source1205190
+Node: Adding Code1206627
+Node: New Ports1212846
+Node: Derived Files1217334
+Ref: Derived Files-Footnote-11222980
+Ref: Derived Files-Footnote-21223015
+Ref: Derived Files-Footnote-31223613
+Node: Future Extensions1223727
+Node: Implementation Limitations1224385
+Node: Extension Design1225568
+Node: Old Extension Problems1226722
+Ref: Old Extension Problems-Footnote-11228240
+Node: Extension New Mechanism Goals1228297
+Ref: Extension New Mechanism Goals-Footnote-11231661
+Node: Extension Other Design Decisions1231850
+Node: Extension Future Growth1233963
+Node: Old Extension Mechanism1234799
+Node: Notes summary1236562
+Node: Basic Concepts1237744
+Node: Basic High Level1238425
+Ref: figure-general-flow1238707
+Ref: figure-process-flow1239392
+Ref: Basic High Level-Footnote-11242693
+Node: Basic Data Typing1242878
+Node: Glossary1246206
+Node: Copying1278042
+Node: GNU Free Documentation License1315581
+Node: Index1340699
 
 End Tag Table
diff --git a/doc/gawk.texi b/doc/gawk.texi
index d1aac71..4c1a0a9 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -32888,13 +32888,18 @@ The @code{val_type} member indicates what kind of 
value the
 Using these macros makes accessing the fields of the @code{awk_value_t} more
 readable.
 
address@hidden enum AWK_NUMBER_TYPE @{
address@hidden @ @ @ @ AWK_NUMBER_TYPE_DOUBLE,
address@hidden @ @ @ @ AWK_NUMBER_TYPE_MPFR,
address@hidden @ @ @ @ AWK_NUMBER_TYPE_MPZ
address@hidden @};
+This @code{enum} is used in the following structure for defining the
+type of numeric value that is being worked with.  It is declared at the
+top level of the file so that it works correctly for C++ as well as for C.
+
 @item typedef struct awk_number @{
 @itemx @ @ @ @ double d;
address@hidden @ @ @ @ enum AWK_NUMBER_TYPE @{
address@hidden @ @ @ @ @ @ @ @ AWK_NUMBER_TYPE_DOUBLE,
address@hidden @ @ @ @ @ @ @ @ AWK_NUMBER_TYPE_MPFR,
address@hidden @ @ @ @ @ @ @ @ AWK_NUMBER_TYPE_MPZ
address@hidden @ @ @ @ @} type;
address@hidden @ @ @ @ enum AWK_NUMBER_TYPE type;
 @itemx @ @ @ @ void *ptr;
 @itemx @} awk_number_t;
 This represents a numeric value.  Internally, @command{gawk} stores
@@ -32909,7 +32914,6 @@ in data received from @command{gawk}. In addition, by 
examining the
 member is either a GMP integer (type @code{mpz_ptr}), or an MPFR
 floating-point value (type @code{mpfr_ptr_t}), and cast it appropriately.
 
-
 @item typedef void *awk_scalar_t;
 Scalars can be represented as an opaque type. These values are obtained
 from @command{gawk} and then passed back into it. This is discussed
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index 0d38921..861f7a6 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -31902,13 +31902,18 @@ The @code{val_type} member indicates what kind of 
value the
 Using these macros makes accessing the fields of the @code{awk_value_t} more
 readable.
 
address@hidden enum AWK_NUMBER_TYPE @{
address@hidden @ @ @ @ AWK_NUMBER_TYPE_DOUBLE,
address@hidden @ @ @ @ AWK_NUMBER_TYPE_MPFR,
address@hidden @ @ @ @ AWK_NUMBER_TYPE_MPZ
address@hidden @};
+This @code{enum} is used in the following structure for defining the
+type of numeric value that is being worked with.  It is declared at the
+top level of the file so that it works correctly for C++ as well as for C.
+
 @item typedef struct awk_number @{
 @itemx @ @ @ @ double d;
address@hidden @ @ @ @ enum AWK_NUMBER_TYPE @{
address@hidden @ @ @ @ @ @ @ @ AWK_NUMBER_TYPE_DOUBLE,
address@hidden @ @ @ @ @ @ @ @ AWK_NUMBER_TYPE_MPFR,
address@hidden @ @ @ @ @ @ @ @ AWK_NUMBER_TYPE_MPZ
address@hidden @ @ @ @ @} type;
address@hidden @ @ @ @ enum AWK_NUMBER_TYPE type;
 @itemx @ @ @ @ void *ptr;
 @itemx @} awk_number_t;
 This represents a numeric value.  Internally, @command{gawk} stores
@@ -31923,7 +31928,6 @@ in data received from @command{gawk}. In addition, by 
examining the
 member is either a GMP integer (type @code{mpz_ptr}), or an MPFR
 floating-point value (type @code{mpfr_ptr_t}), and cast it appropriately.
 
-
 @item typedef void *awk_scalar_t;
 Scalars can be represented as an opaque type. These values are obtained
 from @command{gawk} and then passed back into it. This is discussed
diff --git a/gawkapi.h b/gawkapi.h
index 93ec5c1..7f57457 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -323,13 +323,15 @@ typedef struct awk_string {
        size_t len;     /* length thereof, in chars */
 } awk_string_t;
 
+enum AWK_NUMBER_TYPE {
+       AWK_NUMBER_TYPE_DOUBLE,
+       AWK_NUMBER_TYPE_MPFR,
+       AWK_NUMBER_TYPE_MPZ
+};
+
 typedef struct awk_number {
        double d;       /* always populated in data received from gawk */
-       enum AWK_NUMBER_TYPE {
-               AWK_NUMBER_TYPE_DOUBLE,
-               AWK_NUMBER_TYPE_MPFR,
-               AWK_NUMBER_TYPE_MPZ
-       } type;
+       enum AWK_NUMBER_TYPE type;
        void *ptr;      /* either NULL or mpfr_ptr or mpz_ptr */
 } awk_number_t;
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog       |   5 +
 doc/ChangeLog   |   5 +
 doc/gawk.info   | 292 +++++++++++++++++++++++++++++---------------------------
 doc/gawk.texi   |  16 ++--
 doc/gawktexi.in |  16 ++--
 gawkapi.h       |  12 ++-
 6 files changed, 186 insertions(+), 160 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]