parser-c 0.3.0

Macros for parser-c.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SCANFILE=../../../examples/ScanFile
PROG_C_1=static_extern.c other.c
PROG_CS=scopes.c
ERROR_CS=error_extern_init.c error_extern_no_linkage_1.c error_extern_no_linkage_2.c error_inner_scope_duple_def.c

export TRACE_EVENTS=1

all: test
test:
	for f in $(PROG_C_1); do $(SCANFILE) $$f; done
	for f in $(PROG_CS); do $(SCANFILE) $$f; done
	for f in $(ERROR_CS); do ( $(SCANFILE) $$f; sh ../expect_error $$? "Expecting error when analysing $$f"); done	
test-gcc:
	gcc -o prog $(PROG_C_1)
	gcc -c $(PROG_CS)
	for f in $(ERROR_CS); do (gcc -c $$f 2>.log ; sh ../expect_error $$? `cat .log`); done
clean: