aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile3
-rw-r--r--include/stem.h2
3 files changed, 5 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index b9c9055..992f404 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@ tmp/
/latex/**
stem
compile_commands.json
+compile_flags.txt
diff --git a/Makefile b/Makefile
index 9176f4d..9ee2833 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,9 @@ $(BUILDDIR)/%.o: $(SRCDIR)/%.$(SRCEXT) Makefile
@mkdir -p $(BUILDDIR)
@echo " $(CC) $(CFLAGS) $(INC) -c -o $@ $<"; $(CC) $(CFLAGS) $(INC) -c -o $@ $< -save-temps -O3
+compile_flags.txt: Makefile
+ printf "%s\n" $(CFLAGS) $(INC) >$@
+
clean:
@echo " Cleaning...";
@echo " $(RM) -r $(BUILDDIR) $(TARGET)"; $(RM) -r $(BUILDDIR) $(TARGET)
diff --git a/include/stem.h b/include/stem.h
index f4aff54..06f7351 100644
--- a/include/stem.h
+++ b/include/stem.h
@@ -55,7 +55,7 @@ typedef struct PARSER_STRUCT {
/*! @brief Index of current character */
int i;
/*! @brief The current character */
- char c;
+ int c;
} parser_t;
/*! @brief This structure is to be used in singly linked lists that hold