Ticket #53 (closed enhancement: fixed)
Switch to C Preprocessor
| Reported by: | scott | Owned by: | scott |
|---|---|---|---|
| Priority: | trivial | Milestone: | awkpaste |
| Component: | awkbot | Version: | |
| Keywords: | Cc: |
Description
AWKBot's awkpp is ineffective, inefficient, and difficult to fix. Therefor I'm going to suggest to myself that I migrate awkbot to use the GNU C Preprocessor instead. The suggested means for doing this is to create a startup sh script, which runs cpp with the appropriate flags - generating the source to temporary files. The temporary files will then be executed.
Risks
- awkpp might be used by other people, this means no more maintenance
- cpp's include directive works differently than awkpp's, will need to switch to import
- temporary files will remain when program dies under certain conditions
- additional dependency on outside world applications, and yet another reduction in awk usage
Benefits
- No more awkpp.
- Actual macros
- No more out of memory awk errors
- Less long running processes, awkpp currently pipes to another awk process and cpp will save it's output in a temporary file instead.
- cpp is very fast
Additional
- awkpp was kind of a silly, redundant idea to begin with.
Change History
Note: See
TracTickets for help on using
tickets.