gawk/gawk-api-version.patch

54 lines
1.7 KiB
Diff

From ae1139c068702ede2d35002bdd14199a2c9eb4d8 Mon Sep 17 00:00:00 2001
From: "Andrew J. Schorr" <aschorr@telemetry-investments.com>
Date: Mon, 8 Jul 2019 09:25:01 -0400
Subject: [PATCH] Bump gawk_api_major_version due to incompatible namespace
changes.
---
ChangeLog | 8 ++++++++
gawkapi.h | 5 ++++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 31bb6a5..9dda704 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-07-08 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * gawkapi.h (gawk_api_major_version): Bump from 2 to 3 because the
+ namespace changes altered the function signatures in gawk_api_t.
+ And add a comment at the top of the structure with a reminder that
+ the version number should be bumped whenever the struct is altered
+ in any way.
+
2019-06-26 Arnold D. Robbins <arnold@skeeve.com>
* symbol.c (install): Strip off any leading `awk::' before
diff --git a/gawkapi.h b/gawkapi.h
index 3db8990..9d9cf87 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -296,7 +296,7 @@ typedef struct awk_two_way_processor {
awk_const struct awk_two_way_processor *awk_const next; /* for use by gawk */
} awk_two_way_processor_t;
-#define gawk_api_major_version 2
+#define gawk_api_major_version 3
#define gawk_api_minor_version 0
/* Current version of the API. */
@@ -458,6 +458,9 @@ typedef void *awk_ext_id_t; /* opaque type for extension id */
/*
* The API into gawk. Lots of functions here. We hope that they are
* logically organized.
+ *
+ * !!! If you make any changes to this structure, please remember to bump !!!
+ * !!! gawk_api_major_version and/or gawk_api_minor_version. !!!
*/
typedef struct gawk_api {
/* First, data fields. */
--
1.8.3.1