diff options
author | John Malmberg <wb8tyw@qsl.net> | 2016-04-10 16:34:18 -0500 |
---|---|---|
committer | John Malmberg <wb8tyw@qsl.net> | 2016-04-10 16:34:18 -0500 |
commit | 51b4e6f84be3ba3d48ee7406633d136b588537e9 (patch) | |
tree | d04dfa14695abebdd5f61980ba785a606d837c20 | |
parent | 22b550f985e356d4036b5ff724a50249d3816025 (diff) | |
download | egawk-51b4e6f84be3ba3d48ee7406633d136b588537e9.tar.gz egawk-51b4e6f84be3ba3d48ee7406633d136b588537e9.tar.bz2 egawk-51b4e6f84be3ba3d48ee7406633d136b588537e9.zip |
Fix the build on VMS
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | regex_internal.c | 6 | ||||
-rw-r--r-- | vms/ChangeLog | 4 | ||||
-rw-r--r-- | vms/generate_config_vms_h_gawk.com | 3 |
4 files changed, 15 insertions, 4 deletions
@@ -1,3 +1,7 @@ +2016-04-10 John E. Malmberg <wb8tyw@qsl.net> + + * regex_internal.c: Use _GL_ATTRIBUTE_PURE macro + 2016-04-07 Arnold D. Robbins <arnold@skeeve.com> * awk.h (two_way_close_type): Move here from io.c. @@ -40,7 +44,7 @@ 2016-03-14 Arnold D. Robbins <arnold@skeeve.com> * io.c (socketopen): For SOCK_DGRAM, set read_len to sizeof - remote_addr. Makes UDP more or less work again. + remote_addr. Makes UDP more or less work again. Thanks to Juergen Kahrs for the fix. 2016-03-10 Arnold D. Robbins <arnold@skeeve.com> diff --git a/regex_internal.c b/regex_internal.c index 759c7c81..f6b2574f 100644 --- a/regex_internal.c +++ b/regex_internal.c @@ -840,7 +840,7 @@ re_string_reconstruct (re_string_t *pstr, int idx, int eflags) } static unsigned char -internal_function __attribute ((pure)) +internal_function _GL_ATTRIBUTE_PURE re_string_peek_byte_case (const re_string_t *pstr, int idx) { int ch, off; @@ -1372,7 +1372,7 @@ re_node_set_insert_last (re_node_set *set, int elem) return 1 if SET1 and SET2 are equivalent, return 0 otherwise. */ static int -internal_function __attribute ((pure)) +internal_function _GL_ATTRIBUTE_PURE re_node_set_compare (const re_node_set *set1, const re_node_set *set2) { int i; @@ -1387,7 +1387,7 @@ re_node_set_compare (const re_node_set *set1, const re_node_set *set2) /* Return (idx + 1) if SET contains the element ELEM, return 0 otherwise. */ static int -internal_function __attribute ((pure)) +internal_function _GL_ATTRIBUTE_PURE re_node_set_contains (const re_node_set *set, int elem) { unsigned int idx, right, mid; diff --git a/vms/ChangeLog b/vms/ChangeLog index 203dd9ae..6b8791df 100644 --- a/vms/ChangeLog +++ b/vms/ChangeLog @@ -1,3 +1,7 @@ +2016-04-10 John E. Malmberg <wb8tyw@qsl.net> + + * generate_config_vms_h_gawk.com: define __attribute() as macro. + 2016-02-02 John E. Malmberg <wb8tyw@qsl.net> * descrip.mms: Add gawk_debug target. diff --git a/vms/generate_config_vms_h_gawk.com b/vms/generate_config_vms_h_gawk.com index 805b764f..83a64636 100644 --- a/vms/generate_config_vms_h_gawk.com +++ b/vms/generate_config_vms_h_gawk.com @@ -291,6 +291,9 @@ $ write cvh "" $ write cvh "#define TIME_T_UNSIGNED 1" $ write cvh "#include ""custom.h""" $ write cvh "" +$ write cvh "#define __attribute(a)" +$ write cvh "" +$ $! $! Close out the file $! |