Switch branches/tags
Nothing to show
Commits on Jan 27, 2016
Commits on Jun 16, 2015
  1. Merge pull request #12 from Skylark13/master

    smartt committed Jun 16, 2015
    A few small additions.
Commits on Feb 11, 2013
  1. - Made define, strip, include, if/ifdef, else and endif more rigorous…

    Skylark13 committed Feb 11, 2013
    … in whether they will eat a newline. Also made sure the handle_* functions will not add an extra newline.
    - Removed some extraneous escapes from regexes. @, _ and \t did not need to be escaped.
    - Made the name of the symbol used in if / ifdef obey symbol rules (no dot, dash or slash can exist in a symbol name)
    - Made include not require an @end marker.
    - Renamed handle_include to do_include, and handle_define to do_define, to make sure they will not be called by the re_weapped_macro magic which only calls methods that start with handle_*
    - Added a new command line argument --testall, and made --test accept a test number so we can run a test at a time.
    - Made the output of failed tests more precise (no extra newlines, it was misleading before).
    - Fixed an integer division mistake in test stats output.
    - Fixed all test expected output files to follow the newlines convention - define, if, ifdef, else, end, endif, strip and include all remove the line on which they occur (i.e. they are assumed to be the only thing on the line and extend to the end of the line).
Commits on Feb 3, 2013
  1. - Added -e|--exclude [DIR] (can be there multiple times like --def) t…

    Skylark13 committed Feb 3, 2013
    …o be able to exclude all files in a given directory (relative to srcdir). Useful when a directory contains large js libraries that take a long time to parse but have nothing to preprocess.
    - In a regex, a character class [...] matches any character between the brackets. So when macros were matched using for example [\@|#]define, it would match either @define, #define or |define (the pipe is not necessary). Also the escaping of the comment slashes in the re_wrapped_macro was unnecessary.
    - Added an error when the define is not defined when used in @if - it should not be silently ignored, unlike @ifdef which tests if it's defined, @if REQUIRES it to be defined to a value.
    - All tests still pass.
Commits on Feb 2, 2013
  1. - Added usage for -s|--srcdir and -d|--dstdir into --help output.

    Skylark13 committed Feb 2, 2013
    - Added a way to specify values of defines on the command line (i.e. --def DEBUG=1).
    - Added __file__ and __line__ like in the C preprocessor. Also added tests for these. Implementation for the __line__ macro is messy, please improve, my python is not quite as good as I'd like.
    - Renamed the variable save_expected_failures to save_failure_output to clarify its purpose.
    - Added stats of pass/fail when --test ends.
    - Save failure output or output EXPECTED and GOT only in the case of an actual failure, i.e. if (expecting a pass, got a fail) or (expecting a fail, got a pass).
Commits on Sep 11, 2012
Commits on Aug 25, 2011
  1. changes the default DEFINE variable value to '0' instead of '1', per …

    smartt committed Aug 25, 2011
    …suggestion by aliclark
  2. using balanced quotes in the define-if-ndef test. Thanks to aliclark …

    smartt committed Aug 25, 2011
    …for pointing this out
  3. converted to 4-space indent; Merged rlgomes suggestions for file-copy…

    smartt committed Aug 25, 2011
    …ing, PASS messages when expecting failure, and using makedirs
Commits on Aug 23, 2011
  1. new addition to credits

    smartt committed Aug 23, 2011
  2. Now Python 3 compatible

    smartt committed Aug 23, 2011
Commits on Aug 22, 2011
  1. Merge pull request #4 from rlgomes/master

    smartt committed Aug 22, 2011
    new directory handling options
Commits on Aug 20, 2011
  1. - added the --srcdir and --dstdir options to make it easy to apply

    rlgomes committed Aug 20, 2011
      the jsmacro preprocessing to all js files within a directory
Commits on Jul 29, 2011
Commits on Jul 19, 2011
  1. Merge pull request #3 from aliclark/return-status

    smartt committed Jul 19, 2011
    change normal exit status from 2 to 0
  2. Merge pull request #2 from aliclark/endif

    smartt committed Jul 19, 2011
    adding 'endif' as an alternative to 'end'
Commits on Jul 18, 2011
  1. change normal exit status from 2 to 0

    Ali Clark
    Ali Clark committed Jul 18, 2011
  2. adding 'endif' as an alternative to 'end'

    Ali Clark
    Ali Clark committed Jul 18, 2011
Commits on Mar 2, 2010
Commits on Mar 1, 2010
  1. minor rearranging

    smartt committed Mar 1, 2010
Commits on Feb 27, 2010
Commits on Feb 26, 2010
Commits on Feb 20, 2010
  1. minor markdown formatting fix

    smartt committed Feb 20, 2010