Commit Graph

6 Commits

Author SHA1 Message Date
72e2ca0e8e Give all functions a formal prototype.
This makes the code C89 compliant, and removes all warnings on macOS.
2024-03-15 15:24:02 +00:00
124b7550ab Move definition on Parameters earlier in global.h
We typedef int * to Parmeters in global.h, but not at the same time as
the other typedefs.  This causes problems when we add a function
declaration for write_scrap().

This also highlights a random `1` being passed as the parameter in one
call to write_scrap().  This is obviously wrong, but the purpose of this
fix is to remove warnings - not do a deep dive into what the code is
doing.
2024-03-15 08:51:38 +00:00
cbcfc68afa Correct prototype of write_tex().
In a reverse of write_html(), write_tex() is declared with three
parameters, but only called with two.

Removing the third parameter is fine as it is unused.
2024-03-15 08:40:54 +00:00
a44adf4baf Correct calls to write_html()
write_html() is declared as taking two parameters, but the call to it
passes three.

We fix this by dropping the third parameter, which was labelled 'DUMMY'
anyway.
2024-03-15 08:33:40 +00:00
1dcf5ae370 Output #line directives as part of nuweb tangling.
This makes error location easier.
2024-03-15 08:31:10 +00:00
6ba17b6389 Initial import of nuweb-1.62
This is just the following tarball expanded:

https://sourceforge.net/projects/nuweb/files/nuweb-1.62.tar.gz/download
2024-03-15 08:04:56 +00:00