From bb02aa18e76ed4236526572b3093ce38b64f2fbc Mon Sep 17 00:00:00 2001 From: Joe Rozner Date: Thu, 21 Nov 2013 22:09:25 -0800 Subject: [PATCH] Add warning message Specify warning for internal only headers that are now installed for use by extensions. --- src/backends/contextfree.h | 5 +++++ src/backends/regex.h | 5 +++++ src/internal.h | 5 +++++ src/parsers/parser_internal.h | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/src/backends/contextfree.h b/src/backends/contextfree.h index b387e55..ab04ab5 100644 --- a/src/backends/contextfree.h +++ b/src/backends/contextfree.h @@ -1,3 +1,8 @@ +/* + * NOTE: This is an internal header and installed for use by extensions. The + * API is not guaranteed stable. +*/ + // This is an internal header; it provides macros to make desugaring cleaner. #include #include "../internal.h" diff --git a/src/backends/regex.h b/src/backends/regex.h index a84904d..4ea85a8 100644 --- a/src/backends/regex.h +++ b/src/backends/regex.h @@ -1,3 +1,8 @@ +/* + * NOTE: This is an internal header and installed for use by extensions. The + * API is not guaranteed stable. +*/ + // Internal defs #ifndef HAMMER_BACKEND_REGEX__H #define HAMMER_BACKEND_REGEX__H diff --git a/src/internal.h b/src/internal.h index c402da5..89cb380 100644 --- a/src/internal.h +++ b/src/internal.h @@ -15,6 +15,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +/* + * NOTE: This is an internal header and installed for use by extensions. The + * API is not guaranteed stable. +*/ + #ifndef HAMMER_INTERNAL__H #define HAMMER_INTERNAL__H #include diff --git a/src/parsers/parser_internal.h b/src/parsers/parser_internal.h index aeb202b..ec97dd1 100644 --- a/src/parsers/parser_internal.h +++ b/src/parsers/parser_internal.h @@ -1,3 +1,8 @@ +/* + * NOTE: This is an internal header and installed for use by extensions. The + * API is not guaranteed stable. +*/ + #ifndef HAMMER_PARSE_INTERNAL__H #define HAMMER_PARSE_INTERNAL__H #include "../hammer.h"