Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 10 Mar 2013 10:37:31 UTC Commit: eba24600223cb91ae28ee4caaa00bc4891a74ae9 https://github.com/geany/geany-plugins/commit/eba24600223cb91ae28ee4caaa00bc...
Log Message: ----------- Rename DEBUG macro to LEG_DEBUG in leg utility
When DEBUG is defined, leg stops with a non-zero exit code after debug output which breaks the build. So rename the macro to not get leg's debug code activated by the common DEBUG macro but still keep the functionality with LEG_DEBUG.
Modified Paths: -------------- markdown/peg-markdown/peg-0.1.9/tree.c
Modified: markdown/peg-markdown/peg-0.1.9/tree.c 14 files changed, 7 insertions(+), 7 deletions(-) =================================================================== @@ -1,6 +1,6 @@ /* Copyright (c) 2007 by Ian Piumarta * All rights reserved. - * + * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the 'Software'), * to deal in the Software without restriction, including without limitation @@ -10,9 +10,9 @@ * permission notice appear in all copies of the Software. Acknowledgement * of the use of this Software in supporting documentation would be * appreciated but is not required. - * + * * THE SOFTWARE IS PROVIDED 'AS IS'. USE ENTIRELY AT YOUR OWN RISK. - * + * * Last edited: 2007-05-15 10:32:09 by piumarta on emilia */
@@ -77,7 +77,7 @@ Node *beginRule(Node *rule) void Rule_setExpression(Node *node, Node *expression) { assert(node); -#ifdef DEBUG +#ifdef LEG_DEBUG Node_print(node); fprintf(stderr, " [%d]<- ", node->type); Node_print(expression); fprintf(stderr, "\n"); #endif assert(Rule == node->type); @@ -252,7 +252,7 @@ Node *makePlus(Node *e) static Node **stackPointer= stack;
-#ifdef DEBUG +#ifdef LEG_DEBUG static void dumpStack(void) { Node **p; @@ -269,7 +269,7 @@ Node *push(Node *node) { assert(node); assert(stackPointer < stack + 1023); -#ifdef DEBUG +#ifdef LEG_DEBUG dumpStack(); fprintf(stderr, " PUSH "); Node_print(node); fprintf(stderr, "\n"); #endif return *++stackPointer= node; @@ -284,7 +284,7 @@ Node *top(void) Node *pop(void) { assert(stackPointer > stack); -#ifdef DEBUG +#ifdef LEG_DEBUG dumpStack(); fprintf(stderr, " POP\n"); #endif return *stackPointer--;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).