Ticket #53 (closed enhancement: fixed)

Opened 16 months ago

Last modified 16 months ago

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

  1. awkpp might be used by other people, this means no more maintenance
  2. cpp's include directive works differently than awkpp's, will need to switch to import
  3. temporary files will remain when program dies under certain conditions
  4. additional dependency on outside world applications, and yet another reduction in awk usage

Benefits

  1. No more awkpp.
  2. Actual macros
  3. No more out of memory awk errors
  4. Less long running processes, awkpp currently pipes to another awk process and cpp will save it's output in a temporary file instead.
  5. cpp is very fast

Additional

  1. awkpp was kind of a silly, redundant idea to begin with.

Change History

Changed 16 months ago by scott

  • status changed from new to closed
  • resolution set to fixed

Fixed in [53]

Note: See TracTickets for help on using tickets.