ack/mach/mips
George Koehler 51e34acab1 Add a syntax to declare functions in a top table
Use the new syntax in the mips, pdp, powerpc tables to declare
functions before calling them.  These declarations prevent compiler
warnings about implicitly declaring functions.  They also provide
prototypes of the function parameters.

Also fix a warning in the powerpc table: use `bsearch(...) != NULL` to
avoid converting the pointer from bsearch() to an int.

The syntax for topgen is a block `{...}` among the parameters in the
top table.  It looks like the syntax of LLgen, but topgen doesn't
allow nested blocks, so declarations like `struct whatever {...};`
don't work.  The token OPEN_BRACKET that begins a declaration_block
doesn't conflict with the LETTER that begins a parameter_line or the
'%' that begins a separator.

Because a block writes a #line command to gen.h, a parameter line now
also writes a #line command to gen.h, so it doesn't get a wrong line
number from a previous block.
2019-10-30 18:36:55 -04:00
..
as Widen valu_t in the assembler to 64 bits. 2019-10-04 18:58:56 -04:00
libem Array descriptor ranges are inclusive; adjust aar and the tests to check for 2018-09-17 19:34:38 +01:00
libend Added library skeletons. 2018-09-05 00:07:07 +02:00
mcg Fix issue with logical operations and small signed constants which turned out 2019-02-13 20:56:10 +01:00
top Add a syntax to declare functions in a top table 2019-10-30 18:36:55 -04:00