Mercurial > hg-old > index.cgi
changeset 16:4f14eae64d38
Made header less likely to conflict with other #defines
author | lost |
---|---|
date | Thu, 23 Oct 2008 03:39:29 +0000 |
parents | 1f598d89b9b0 |
children | df0c4a46af8f |
files | src/lwval.h |
diffstat | 1 files changed, 18 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lwval.h Thu Oct 23 03:37:48 2008 +0000 +++ b/src/lwval.h Thu Oct 23 03:39:29 2008 +0000 @@ -85,27 +85,29 @@ }; #ifndef __lwval_c_seen__ -#define EE extern +#define __lwval_extern__ extern #else -#define EE +#define __lwval_extern__ #endif -EE LWVAL *lwval_construct_int(int value); -EE LWVAL *lwval_construct_err(int errno); -EE LWVAL *lwval_construct_nan(void); -EE LWVAL *lwval_construct_expr(LWVAL *v1, LWVAL *v2, int op); -EE LWVAL *lwval_construct_undef(void); -EE void lwval_clear(LWVAL *value); -EE void lwval_destroy(LWVAL *value); -EE void lwval_dup(LWVAL *v1, LWVAL *v2); +__lwval_extern__ LWVAL *lwval_construct_int(int value); +__lwval_extern__ LWVAL *lwval_construct_err(int errno); +__lwval_extern__ LWVAL *lwval_construct_nan(void); +__lwval_extern__ LWVAL *lwval_construct_expr(LWVAL *v1, LWVAL *v2, int op); +__lwval_extern__ LWVAL *lwval_construct_undef(void); +__lwval_extern__ void lwval_clear(LWVAL *value); +__lwval_extern__ void lwval_destroy(LWVAL *value); +__lwval_extern__ void lwval_dup(LWVAL *v1, LWVAL *v2); // operators - operate on v1 and v2 in order, result goes into // v1; return v1 -EE LWVAL *lwval_add(LWVAL *v1, LWVAL *v2); -EE LWVAL *lwval_sub(LWVAL *v1, LWVAL *v2); -EE LWVAL *lwval_mul(LWVAL *v1, LWVAL *v2); -EE LWVAL *lwval_div(LWVAL *v1, LWVAL *v2); -EE LWVAL *lwval_mod(LWVAL *v1, LWVAL *v2); -EE LWVAL *lwval_neg(LWVAL *v1); +__lwval_extern__ LWVAL *lwval_add(LWVAL *v1, LWVAL *v2); +__lwval_extern__ LWVAL *lwval_sub(LWVAL *v1, LWVAL *v2); +__lwval_extern__ LWVAL *lwval_mul(LWVAL *v1, LWVAL *v2); +__lwval_extern__ LWVAL *lwval_div(LWVAL *v1, LWVAL *v2); +__lwval_extern__ LWVAL *lwval_mod(LWVAL *v1, LWVAL *v2); +__lwval_extern__ LWVAL *lwval_neg(LWVAL *v1); + +#undef __lwval_extern__ #endif //__lwval_h_seen__