]> git.draconx.ca Git - cdecl99.git/log
cdecl99.git
12 years agoFix VPATH builds from git.
Nick Bowler [Sat, 25 Jun 2011 00:26:25 +0000 (20:26 -0400)]
Fix VPATH builds from git.

In such builds, C source files (that are normally distributed) get
generated, which means they end up in the build tree.  Building them
subsequently fails because headers (in the source tree) are not found.

12 years agoSplit out qualifier explanations from explain_post_specs.
Nick Bowler [Fri, 24 Jun 2011 13:42:53 +0000 (09:42 -0400)]
Split out qualifier explanations from explain_post_specs.

They'll be needed on their own for pointer explanations.

12 years agoFix the distribution.
Nick Bowler [Fri, 24 Jun 2011 00:50:02 +0000 (20:50 -0400)]
Fix the distribution.

Now make distcheck passes.

12 years agoInitial support for explaining declarations.
Nick Bowler [Fri, 24 Jun 2011 00:24:50 +0000 (20:24 -0400)]
Initial support for explaining declarations.

This should support everything that the parser currently does.

12 years agoAdd a function to turn a typemap into a string.
Nick Bowler [Fri, 24 Jun 2011 00:24:32 +0000 (20:24 -0400)]
Add a function to turn a typemap into a string.

12 years agoAllow (and ignore) underscores in the list of type names.
Nick Bowler [Thu, 23 Jun 2011 00:30:53 +0000 (20:30 -0400)]
Allow (and ignore) underscores in the list of type names.

This allows the "true" keywords to be used in the list.

12 years agoKill typemap_is_valid.
Nick Bowler [Thu, 23 Jun 2011 00:30:52 +0000 (20:30 -0400)]
Kill typemap_is_valid.

Just do the check when building the map in the first place.  This
enables more useful error messages, too: the case where there are no
type specifiers at all is certainly worth diagnosing separately from
other kinds of nonsense.

12 years agoAdd initial command parser.
Nick Bowler [Thu, 23 Jun 2011 00:30:50 +0000 (20:30 -0400)]
Add initial command parser.

12 years agoImplement the interactive cdecl99 loop.
Nick Bowler [Thu, 23 Jun 2011 00:30:41 +0000 (20:30 -0400)]
Implement the interactive cdecl99 loop.

Bring in gnulib for getopt_long and readline support.

12 years agoMake cdecl_free more robust by handling a NULL argument.
Nick Bowler [Thu, 23 Jun 2011 00:30:17 +0000 (20:30 -0400)]
Make cdecl_free more robust by handling a NULL argument.

While we're at it, split the function into two so that the parser
doesn't have to call the exported version.

12 years agoMove typemap stuff into a separate file.
Nick Bowler [Tue, 21 Jun 2011 22:29:30 +0000 (18:29 -0400)]
Move typemap stuff into a separate file.

These functions will be generally useful.  They are not part of the
public API, so we use the cdecl__ prefix for internal functions.

While we're at it, make the code easier to understand by automatically
generating the huge switch statement and eliminating the silly macros.

12 years agoRename libcdecl.c to parse-decl.c
Nick Bowler [Tue, 21 Jun 2011 22:29:12 +0000 (18:29 -0400)]
Rename libcdecl.c to parse-decl.c

Paving the way for having more than one source file.

12 years agoDon't use missing for flex.
Nick Bowler [Tue, 21 Jun 2011 22:29:02 +0000 (18:29 -0400)]
Don't use missing for flex.

Oops, that was a leftover from early testing.

12 years agoFix Makefile dependencies.
Nick Bowler [Tue, 21 Jun 2011 22:28:32 +0000 (18:28 -0400)]
Fix Makefile dependencies.

Dependencies of foo.$(OBJEXT) are not honoured when building a libtool
library; instead we need to use foo.lo.

12 years agoAdd m4/.gitignore.
Nick Bowler [Tue, 21 Jun 2011 22:28:18 +0000 (18:28 -0400)]
Add m4/.gitignore.

This ensures that the m4 directory exists in the git checkout.

12 years agoDon't touch unchanged flex/bison headers.
Nick Bowler [Tue, 21 Jun 2011 01:35:13 +0000 (21:35 -0400)]
Don't touch unchanged flex/bison headers.

This prevents some spurious rebuilds.

12 years agoAdd an initial declaration parser.
Nick Bowler [Tue, 21 Jun 2011 01:34:45 +0000 (21:34 -0400)]
Add an initial declaration parser.

12 years agoInitial commit
Nick Bowler [Sun, 19 Jun 2011 17:21:17 +0000 (13:21 -0400)]
Initial commit