summaryrefslogtreecommitdiff
path: root/rpmio/macro.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-10-20 11:54:13 +0000
committerjbj <devnull@localhost>1998-10-20 11:54:13 +0000
commit5fc8cb62a550c25c2d688b1c85fee56203ad1d66 (patch)
tree92eeee2b69fbe21802300989695554c1dad0836b /rpmio/macro.c
parent6fa0d192717289118eb934d23ea087006b0c4a1a (diff)
downloadrpm-5fc8cb62a550c25c2d688b1c85fee56203ad1d66.tar.gz
rpm-5fc8cb62a550c25c2d688b1c85fee56203ad1d66.tar.bz2
rpm-5fc8cb62a550c25c2d688b1c85fee56203ad1d66.zip
First attempt at "make check".
CVS patchset: 2465 CVS date: 1998/10/20 11:54:13
Diffstat (limited to 'rpmio/macro.c')
-rw-r--r--rpmio/macro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c
index aa4aa4cbf..c8441eb61 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -32,7 +32,8 @@ typedef struct MacroBuf {
static int expandMacro(MacroBuf *mb);
-int max_macro_depth = 2;
+#define MAX_MACRO_DEPTH 5
+int max_macro_depth = MAX_MACRO_DEPTH;
#ifdef DEBUG_MACROS
int print_macro_trace = 0;
@@ -1132,7 +1133,7 @@ initMacros(MacroContext *mc, const char *macrofile)
if (first) {
mc->macroTable = NULL;
expandMacroTable(mc);
- max_macro_depth = 2; /* XXX Assume good ol' macro expansion */
+ max_macro_depth = MAX_MACRO_DEPTH; /* XXX Assume good ol' macro expansion */
first = 0;
}