tion
aboutsummaryrefslogtreecommitdiff
path: root/ch1/1-03_temp-table-header.c (unfollow)
class='logsubject'>Fix Exercise 1-12's solution
AgeCommit message (Collapse)AuthorFilesLines
2015-12-05Solve Exercise 6-6: A simple `#define` processorzlg2-2/+200
This exercise is probably the most challenging "function puzzle" thus far. Modifying getword(), using various states, and the hashtable all create an example of how small building blocks can work together to make something. The implementation is very simple and nowhere near completely supporting '#define', but that's not the point. To properly support it, you'd need to build an entire preprocessor/parser, and that's far beyond the scope of both the exercise and book.
zlg1-2/+4
Printing a newline for each whitespace character was the wrong behavior.
2013-02-07Solve Exercises 1-1 to 1-12zlg12-0/+307
It was bugging me and the exercises are simple, so I pumped'em out.
2013-02-06Fix style issue and correct 1-24zlg1-4/+4
Escape sequences were being compared with the 'or' operator instead of the 'and' operator. If I had left it alone, every escape sequence would've borked it.
2013-02-06Solve Exercise 1-24: C syntax checkerzlg1-110/+122
I'm glad to be done with chapter 1. It feels like I'm starting to gain momentum. I'm certainly looking forward to using higher level constructs like switch(), which I think is available in Chapter 2. So far so good!