From 10216cc37ad6dd9086aeacca813d3551b7c209ef Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 3 Jun 2013 19:50:22 +0300 Subject: Minor cleanups for init_socket function. --- awk.h | 1 + 1 file changed, 1 insertion(+) (limited to 'awk.h') diff --git a/awk.h b/awk.h index 989f451d..b9d3a1b0 100644 --- a/awk.h +++ b/awk.h @@ -1508,6 +1508,7 @@ extern int ispath(const char *file); extern int isdirpunct(int c); /* io.c */ +extern void init_sockets(void); extern void init_io(void); extern void register_input_parser(awk_input_parser_t *input_parser); extern void register_output_wrapper(awk_output_wrapper_t *wrapper); -- cgit v1.2.3 From 0981cc089ea88f146a6c949146e73f88c1b295e9 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 24 Jul 2013 21:53:30 +0300 Subject: Fix compiling on MinGW. --- awk.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'awk.h') diff --git a/awk.h b/awk.h index b9d3a1b0..e01726d9 100644 --- a/awk.h +++ b/awk.h @@ -206,6 +206,12 @@ typedef void *stackoverflow_context_t; #define stackoverflow_install_handler(catchstackoverflow, extra_stack, STACK_SIZE) 0 #endif +/* + * This is for fake directory file descriptors on systems that don't + * allow to open() a directory. + */ +#define FAKE_FD_VALUE 42 + /* use this as lintwarn("...") this is a hack but it gives us the right semantics */ #define lintwarn (*(set_loc(__FILE__, __LINE__),lintfunc)) -- cgit v1.2.3 From 7d19cbd54ad60474aded4b9fe587c7f53a14d488 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 19 Aug 2013 20:47:49 +0300 Subject: Changes to ENVIRON reflect into the environment. --- awk.h | 1 + 1 file changed, 1 insertion(+) (limited to 'awk.h') diff --git a/awk.h b/awk.h index e01726d9..50631982 100644 --- a/awk.h +++ b/awk.h @@ -1363,6 +1363,7 @@ extern NODE *do_aoption(int nargs); extern NODE *do_asort(int nargs); extern NODE *do_asorti(int nargs); extern unsigned long (*hash)(const char *s, size_t len, unsigned long hsize, size_t *code); +extern void init_env_array(NODE *env_node); /* awkgram.c */ extern NODE *variable(int location, char *name, NODETYPE type); extern int parse_program(INSTRUCTION **pcode); -- cgit v1.2.3 From 844e16cea1ffe0e02b5b727fd8960271d1842020 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 20 Aug 2013 21:18:51 +0300 Subject: Move FAKE_FD_VALUE to shared header. --- awk.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'awk.h') diff --git a/awk.h b/awk.h index e01726d9..bb2f2054 100644 --- a/awk.h +++ b/awk.h @@ -206,11 +206,9 @@ typedef void *stackoverflow_context_t; #define stackoverflow_install_handler(catchstackoverflow, extra_stack, STACK_SIZE) 0 #endif -/* - * This is for fake directory file descriptors on systems that don't - * allow to open() a directory. - */ -#define FAKE_FD_VALUE 42 +#if defined(__EMX__) || defined(__MINGW32__) +#include "nonposix.h" +#endif /* defined(__EMX__) || defined(__MINGW32__) */ /* use this as lintwarn("...") this is a hack but it gives us the right semantics */ -- cgit v1.2.3 From 2fcffaeee37416708fab505209a55ddd32846463 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 13 Sep 2013 15:37:25 +0300 Subject: Fix problem when extending NF. See test/nfloop. --- awk.h | 1 + 1 file changed, 1 insertion(+) (limited to 'awk.h') diff --git a/awk.h b/awk.h index bb2f2054..f57e62e9 100644 --- a/awk.h +++ b/awk.h @@ -434,6 +434,7 @@ typedef struct exp_node { # define MPFN 0x0800 /* arbitrary-precision floating-point number */ # define MPZN 0x1000 /* arbitrary-precision integer */ # define NO_EXT_SET 0x2000 /* extension cannot set a value for this variable */ +# define NULL_FIELD 0x4000 /* this is the null field */ /* type = Node_var_array */ # define ARRAYMAXED 0x4000 /* array is at max size */ -- cgit v1.2.3 From 426afac5ee1c835f53eb78fa98df52ce52959c22 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 10 Oct 2013 09:18:50 +0300 Subject: Bug fix to flag values. --- awk.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'awk.h') diff --git a/awk.h b/awk.h index f57e62e9..e2744e53 100644 --- a/awk.h +++ b/awk.h @@ -437,10 +437,10 @@ typedef struct exp_node { # define NULL_FIELD 0x4000 /* this is the null field */ /* type = Node_var_array */ -# define ARRAYMAXED 0x4000 /* array is at max size */ -# define HALFHAT 0x8000 /* half-capacity Hashed Array Tree; +# define ARRAYMAXED 0x8000 /* array is at max size */ +# define HALFHAT 0x10000 /* half-capacity Hashed Array Tree; * See cint_array.c */ -# define XARRAY 0x10000 +# define XARRAY 0x20000 } NODE; #define vname sub.nodep.name -- cgit v1.2.3 From 25520aab6144927a20d501c0396e9597f36fc871 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 24 Oct 2013 22:03:09 +0300 Subject: Improve handling of writes to dead pipes. --- awk.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'awk.h') diff --git a/awk.h b/awk.h index e2744e53..6c6e8405 100644 --- a/awk.h +++ b/awk.h @@ -213,6 +213,8 @@ typedef void *stackoverflow_context_t; /* use this as lintwarn("...") this is a hack but it gives us the right semantics */ #define lintwarn (*(set_loc(__FILE__, __LINE__),lintfunc)) +/* same thing for warning */ +#define warning (*(set_loc(__FILE__, __LINE__),r_warning)) #ifdef HAVE_MPFR #include @@ -1577,7 +1579,7 @@ extern void final_exit(int status) ATTRIBUTE_NORETURN; extern void err(bool isfatal, const char *s, const char *emsg, va_list argp) ATTRIBUTE_PRINTF(3, 0); extern void msg (const char *mesg, ...) ATTRIBUTE_PRINTF_1; extern void error (const char *mesg, ...) ATTRIBUTE_PRINTF_1; -extern void warning (const char *mesg, ...) ATTRIBUTE_PRINTF_1; +extern void r_warning (const char *mesg, ...) ATTRIBUTE_PRINTF_1; extern void set_loc (const char *file, int line); extern void r_fatal (const char *mesg, ...) ATTRIBUTE_PRINTF_1; #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2) -- cgit v1.2.3 From 71e06c39df20400fbc04d7a3eba04700c27928f8 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 10 Dec 2013 21:04:14 +0200 Subject: Remove unneeded Floor and Ceil wrapper functions. --- awk.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'awk.h') diff --git a/awk.h b/awk.h index 6c6e8405..469d6b63 100644 --- a/awk.h +++ b/awk.h @@ -1661,13 +1661,6 @@ extern NODE **function_list(bool sort); extern void print_vars(NODE **table, Func_print print_func, FILE *fp); /* floatcomp.c */ -#ifdef VMS /* VMS linker weirdness? */ -#define Ceil gawk_ceil -#define Floor gawk_floor -#endif - -extern AWKNUM Floor(AWKNUM n); -extern AWKNUM Ceil(AWKNUM n); #ifdef HAVE_UINTMAX_T extern uintmax_t adjust_uint(uintmax_t n); #else -- cgit v1.2.3 From c3d842c8bbf7b90113ba49b3a2cfa8436cda4a87 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 16 Dec 2013 22:47:48 +0200 Subject: Remove AC_FUNC_VPRINTF macro and header tests. --- awk.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'awk.h') diff --git a/awk.h b/awk.h index 469d6b63..1414358c 100644 --- a/awk.h +++ b/awk.h @@ -180,10 +180,6 @@ typedef int off_t; #define O_BINARY 0 #endif -#ifndef HAVE_VPRINTF -#error "you lose: you need a system with vfprintf" -#endif /* HAVE_VPRINTF */ - #ifndef HAVE_SETLOCALE #define setlocale(locale, val) /* nothing */ #endif /* HAVE_SETLOCALE */ -- cgit v1.2.3