summaryrefslogtreecommitdiffstats
path: root/src/draw.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement semantic checks for type and variable declarationsTing-Wei Lan2015-12-061-0/+3
|
* Drop all non-namespaced symbolsTing-Wei Lan2015-12-031-0/+13
1. All data types and macros in headers, global variables and functions that have external linkage are namespaced. The only two files that allow non-namespaced symbols are main.c and common.h. common.h should not be included by any other headers. 2. Coding style is fixed when possible. 3. Drop unused variables or struct members. 4. 'name' macro is renamed to 'prog_name' to prevent conflicts with ast.h. 5. %union includes a CON_Type (now CcmmcValueConst) instead of a pointer to it. This prevents an unnecessary malloc. 6. Fix buffer overflow in draw.c. draw.c should not modify the input AST while generating the graph.