aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-01-09 13:53:19 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-01-09 13:53:19 +0200
commitca94270a5e30add9b364d32220fb38d457ebd3f2 (patch)
tree7b2a3c0682acd22bab29ae9cf4180853756b04b4
parent3df291f812208a8ce07a2878784a0a73e4587193 (diff)
downloadgrecs-ca94270a5e30add9b364d32220fb38d457ebd3f2.tar.gz
grecs-ca94270a5e30add9b364d32220fb38d457ebd3f2.tar.bz2
Bugfix
* src/meta1-lex.l: Fix erroneous #ifndef
-rw-r--r--src/meta1-lex.l2
-rw-r--r--src/tree.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/meta1-lex.l b/src/meta1-lex.l
index 1b686bb..75603d3 100644
--- a/src/meta1-lex.l
+++ b/src/meta1-lex.l
@@ -18,13 +18,13 @@
You should have received a copy of the GNU General Public License along
with Grecs. If not, see <http://www.gnu.org/licenses/>. */
/* This file implements a lexical analyzer for MeTA1 main configuration file.
*/
-#ifndef HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "grecs.h"
#include "grecs-locus.h"
#include "meta1-gram.h"
#include <ctype.h>
diff --git a/src/tree.c b/src/tree.c
index 2136e7b..4f3189c 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -240,13 +240,12 @@ freeproc(enum grecs_tree_recurse_op op, struct grecs_node *node, void *data)
int
grecs_tree_free(struct grecs_node *node)
{
if (!node)
return 0;
- /* FIXME: Check if that's a node_type_root */
if (node->type != grecs_node_root) {
errno = EINVAL;
return 1;
}
grecs_tree_recurse(node, freeproc, NULL);
return 0;

Return to:

Send suggestions and report system problems to the System administrator.