Mercurial > audlegacy
changeset 3792:f31e93cd8f2f
Make some #defines private.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 19 Oct 2007 12:12:03 +0300 |
parents | 9121baaf0190 |
children | db6cb4048a74 |
files | src/audacious/tuple_compiler.c src/audacious/tuple_compiler.h |
diffstat | 2 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/tuple_compiler.c Fri Oct 19 02:37:01 2007 -0500 +++ b/src/audacious/tuple_compiler.c Fri Oct 19 12:12:03 2007 +0300 @@ -33,6 +33,10 @@ #include <stdarg.h> #include "tuple_compiler.h" +#define MAX_STR (256) +#define MIN_ALLOC_NODES (8) +#define MIN_ALLOC_BUF (64) + void tuple_error(const char *fmt, ...) {
--- a/src/audacious/tuple_compiler.h Fri Oct 19 02:37:01 2007 -0500 +++ b/src/audacious/tuple_compiler.h Fri Oct 19 12:12:03 2007 +0300 @@ -25,10 +25,7 @@ #include "tuple.h" -#define MAX_VAR (4) -#define MAX_STR (256) -#define MIN_ALLOC_NODES (8) -#define MIN_ALLOC_BUF (64) +#define TUP_MAX_VARS (4) enum { @@ -79,8 +76,8 @@ typedef struct _TupleEvalNode { gint opcode; /* operator, see OP_ enums */ - gint var[MAX_VAR]; /* tuple / global variable references (perhaps hashes, or just indexes to a list?) */ - gboolean global[MAX_VAR]; + gint var[TUP_MAX_VARS]; /* tuple / global variable references (perhaps hashes, or just indexes to a list?) */ + gboolean global[TUP_MAX_VARS]; gchar *text; /* raw text, if any (OP_RAW) */ gint function, expression; /* for OP_FUNCTION and OP_EXPRESSION */ struct _TupleEvalNode *children, *next, *prev; /* children of this struct, and pointer to next node. */