summaryrefslogtreecommitdiffstats
path: root/txr.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Version 021 preparation.txr-021Kaz Kylheku2009-11-151-2/+2
| | | | Bumped version numbers, and cleaned up trailing whitespace from some files.
* Allow -c scripts to not have a trailing newline.Kaz Kylheku2009-11-131-0/+3
| | | | | | | | | | | | | Test suite exercises -c now. txr.c (txr_main): If the script specified with -c is not terminated by a newline, just add a newline. On the shell command line, it's a nuisance to have to add the extra line before closing the quote. It's also awkward in scripting, because the shell (or at least Bash 3.0) does not produce a final terminating newline in command substitution syntax like -c "$(cat file)". The last newline in the file is trimmed, and has to be explicitly added in the script itself, which is wrong in the case when the file is empty.
* Previous commit broke UTF-8 lexing, by changing the get_charKaz Kylheku2009-11-131-1/+1
| | | | | | | | semantics on the input stream to wide character input. Also, reading a query the command line (-c) must read bytes from a UTF-8 encoding of the string. We introduce a new get_byte function which can extract bytes from streams which provide it.
* Continuing wchar_t conversion. Making sure all stdio callsKaz Kylheku2009-11-121-61/+62
| | | | | use wide character functions so that there is no illicit mixing. (But the goal is to replace this usage with txr streams).
* Whitespace.Kaz Kylheku2009-11-121-0/+1
|
* * txr.c (main): call setlocale to set the LC_CTYPE to en_US.UTF-8,Kaz Kylheku2009-11-111-0/+2
| | | | | so that the C library streams do the encoding. Once the program is weaned from C library wide character stream I/O, this can go away.
* Big conversion to wide characters and UTF-8 support.Kaz Kylheku2009-11-111-33/+34
| | | | | | | | | This is incomplete. There are too many dependencies on wide character support from the C stream I/O library, and implicit use of some encoding which may not be UTF-8. The regex code does not handle wide characters properly. Character type is still int in some places, rather than wchar_t. Test suite passes though.
* Throw exception on stream error during close, or I/O operations. ThisKaz Kylheku2009-11-061-2/+2
| | | | | | is needed for pipes that terminate abnormally or return failed termination. Pipe and stdio streams have an extra description field so they are printed in a readable way.
* Version 020.txr-020Kaz Kylheku2009-11-011-1/+1
|
* Bug ID 27895: Calls to protect have an argument list terminatedKaz Kylheku2009-11-011-2/+2
| | | | by the integer constant 0 rather than a proper null pointer constant.
* Bug ID 27899: Garbage collection problem: method of locating stackKaz Kylheku2009-11-011-4/+10
| | | | | bottom is unreliable due to the unpredictable allocation order of local variables.
* Version 019txr-019Kaz Kylheku2009-11-031-1/+1
| | | | | | Regexps can be bound to variables. New freeform directive.
* Start of implementation for freestyle matching.Kaz Kylheku2009-11-021-11/+9
| | | | | | | | | | | Lazy strings implemented, incompletely. Changed string function to implicitly strdup; non-strdup version changed to string_own. Fixed wrong uses of strdup rather than chk_strdup. Functions added to regex module to provide regex matching as a state machine to which characters are fed.
* Starting txr git.graftedtxr-018Kaz Kylheku2009-10-301-1/+1
|
* txr-017 2009-10-17txr-017Kaz Kylheku2017-07-311-9/+30
| | | | Note: Version 016 ChangeLog message incorrect.
* txr-016 2009-10-16txr-016Kaz Kylheku2017-07-311-10/+13
|
* txr-015 2009-10-15txr-015Kaz Kylheku2017-07-311-0/+336