Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unnecessary cast. | Kaz Kylheku | 2009-12-09 | 1 | -1/+1 |
| | |||||
* | * parser.l (YYINPUT): Fix signed/unsigned comparison. | Kaz Kylheku | 2009-12-09 | 2 | -2/+7 |
| | |||||
* | * hash.c (sethash): New function. | Kaz Kylheku | 2009-12-09 | 5 | -0/+25 |
| | | | | | | | | * hash.h (sethash): Declared. * lib.c (cobj_handle): New function. * lib.h (cobj_handle): Declared. | ||||
* | All COBJ operations have default implementations now; | Kaz Kylheku | 2009-12-08 | 7 | -43/+95 |
| | | | | | | no null pointer check over struct cobj_ops operations. New typechecking function for COBJ objects. | ||||
* | More void * to mem_t * conversion. | Kaz Kylheku | 2009-12-05 | 4 | -10/+22 |
| | |||||
* | Eliminate the void * disease. Generic pointers are of mem_t * | Kaz Kylheku | 2009-12-04 | 7 | -31/+57 |
| | | | | | from now on, which is compatible with unsigned char *. No implicit conversion to or from this type, in C or C++. | ||||
* | * gc.c (heap_min_bound, heap_max_bound): New static globals. | Kaz Kylheku | 2009-12-03 | 2 | -0/+21 |
| | | | | | | | (more): Update heap_min_bound and heap_max_bound. (in_heap): Do early rejection tests on the pointer. If it's not aligned, or it's completely outside of the bounding box of the heap area, short circuit to false. | ||||
* | Version 027.txr-027 | Kaz Kylheku | 2009-12-03 | 4 | -3/+20 |
| | |||||
* | Merge. | Kaz Kylheku | 2009-12-03 | 2 | -2/+8 |
|\ | |||||
| * | * parser.l (YY_NO_UNPUT): Removed superfluous #define. This is not | Kaz Kylheku | 2009-12-03 | 2 | -2/+8 |
| | | | | | | | | | | | | | | needed because suppressing generation of unput is requested via the %option. In scanners generated by the legacy version of flex, 2.5.4, still widely in use. this redundancy leads to a multiple #define YY_NO_UNPUT and a compiler warning. | ||||
* | | * Makefile (CFLAGS): Better test for g++, when removing | Kaz Kylheku | 2009-12-03 | 2 | -1/+8 |
|/ | | | | | | warning options not appropriate for g++. Sometimes g++ may be called something that dosn't end in g++, like g++4. | ||||
* | Fix for failing test suite on MIPS machine, due to | Kaz Kylheku | 2009-12-03 | 2 | -2/+14 |
| | | | | gc failing to mark a local variable in txr_main. | ||||
* | * Makefile (tests): Don't depend on the executable. Otherwise, | Kaz Kylheku | 2009-12-02 | 2 | -7/+20 |
| | | | | | | | | | during make install-tests, if it doesn't exist in the install directory, a gcc compile command gets deposited into the run.sh generated script. (install-tests): Fixes to make this work when using a separate build directory. Split the cpio -p job into a cpio -i piping into cpio -o. | ||||
* | * Makefile (install-tests): New target. Provides a way to make the | Kaz Kylheku | 2009-12-02 | 2 | -0/+18 |
| | | | | | test cases part of the installation, and a generated script to run the commands on the installation host. | ||||
* | Fix annoyances with dependency generation, such as picking up local | Kaz Kylheku | 2009-12-02 | 4 | -14/+24 |
| | | | | files that are not in the project. | ||||
* | * Makefile (CFLAGS): If the compiler matches the pattern %g++, | Kaz Kylheku | 2009-11-28 | 2 | -0/+10 |
| | | | | | then remove some C-front-end-specific warnings from CFLAGS, which the g++ front end will complain about. | ||||
* | * Makefile (CFLAGS): add -Dlint to CFLAGS when compiling y.tab.o. | Kaz Kylheku | 2009-11-28 | 2 | -0/+11 |
| | | | | | | This suppresses some warnings from a byacc-generated parser, and gets rid of a useless static sccsid array. May help with Bison-generated parser also. | ||||
* | * parser.l: Use flex options to suppress generation of the | Kaz Kylheku | 2009-11-28 | 2 | -0/+8 |
| | | | | | unused functons yyunput and yyinput, thus getting rid of some compiler diagnostics. | ||||
* | Code cleanup. All private functions static. Private stuff | Kaz Kylheku | 2009-11-28 | 14 | -231/+261 |
| | | | | in regex module not exposed in header. Etc. | ||||
* | * configure: Workaround in banner code for coreutils printf %.*s bug. | Kaz Kylheku | 2009-11-28 | 2 | -1/+5 |
| | |||||
* | Switching to DESTDIR convention for install. | Kaz Kylheku | 2009-11-27 | 3 | -13/+40 |
| | | | | | Make install step does some things more correctly now, without relying on the install program. | ||||
* | Version 026.txr-026 | Kaz Kylheku | 2009-11-26 | 4 | -3/+27 |
| | |||||
* | Add comments to generated files. | Kaz Kylheku | 2009-11-26 | 1 | -1/+15 |
| | |||||
* | Expand yacc command without quotes. | Kaz Kylheku | 2009-11-26 | 1 | -1/+1 |
| | |||||
* | Check for user's specified yacc program. | Kaz Kylheku | 2009-11-26 | 1 | -0/+4 |
| | |||||
* | Not all systems have a yacc alias for the yacc program. | Kaz Kylheku | 2009-11-26 | 3 | -8/+89 |
| | | | | | txr is known to work with two yacc implementations: GNU Bison and Berkeley yacc. Let's add some auto-detection for yacc. | ||||
* | * gc.c (mark_mem_region): Bugfix: do not mess with the valgrind | Kaz Kylheku | 2009-11-26 | 2 | -2/+9 |
| | | | | accessibility of the heap object if valgrind debugging is not enabled. | ||||
* | * parser.y (grammar): Fixes for bison 2.4.1. Remove superfluous action | Kaz Kylheku | 2009-11-26 | 2 | -2/+6 |
| | | | | in chrlit. Include <stdlib.h> for abort. | ||||
* | Refinements to Valgrind support. | Kaz Kylheku | 2009-11-25 | 2 | -2/+40 |
| | |||||
* | More Valgrind support. New option --vg-debug which turns on | Kaz Kylheku | 2009-11-25 | 4 | -11/+78 |
| | | | | | Valgrind protection of free blocks. This works independently of --gc-debug. | ||||
* | Fix a build breakage that may happen on some platforms. | Kaz Kylheku | 2009-11-25 | 2 | -0/+14 |
| | | | | | | | | | The parser.y file includes "utf8.h", which uses the the type wint_t. It also includes "lib.h" which uses "wchar_t". But it fails to include any headers which define these types. The generated y.tab.c picks up wchar_t by the Bison-inserted inclusion of <stdlib.h>, so that's how we got that. But wint_t does not come from any of the headers---if they are standard-conforming. | ||||
* | Clean up properly. | Kaz Kylheku | 2009-11-25 | 1 | -2/+2 |
| | |||||
* | More valgrind integration. Vector objects keep displaced pointers | Kaz Kylheku | 2009-11-25 | 3 | -0/+22 |
| | | | | | | | | to vector data; they point to element 0 which is actually the third element of the vector. If an object is only referenced by interior pointers, Valgrind reports it as possibly leaked. This change conditionally adds a pointer to the true start of the vector, if Valgrind support is enabled. | ||||
* | First stab at Valgrind integration. First goal: eliminate false | Kaz Kylheku | 2009-11-25 | 3 | -11/+71 |
| | | | | positives when gc is accessing uninitialized parts of the stack. | ||||
* | Fix uninitialized memory locations. | Kaz Kylheku | 2009-11-24 | 3 | -1/+16 |
| | |||||
* | Switching to keyword symbols for :args and :nothrow. | Kaz Kylheku | 2009-11-24 | 6 | -29/+50 |
| | |||||
* | Whitespace. | Kaz Kylheku | 2009-11-24 | 2 | -3/+3 |
| | |||||
* | utf8.c (utf8_from_uc): Fix bug introduced several commits ago (portingtxr-025 | Kaz Kylheku | 2009-11-24 | 2 | -0/+8 |
| | | | | to C++). Caught by regression test suite. Found using git bisect. | ||||
* | Version 025 | Kaz Kylheku | 2009-11-24 | 4 | -3/+57 |
| | |||||
* | Auto-detect what specifiers to use for inline functions. | Kaz Kylheku | 2009-11-24 | 4 | -22/+90 |
| | | | | | Allow compiler command to be set independently of full path for easier compiler switching. | ||||
* | Changes to make the code portable to C++ compilers, which | Kaz Kylheku | 2009-11-24 | 8 | -42/+81 |
| | | | | can be taken advantage of for better diagnostics. | ||||
* | Fixed broken yyerrorf. It was still taking char *, and passing | Kaz Kylheku | 2009-11-24 | 4 | -34/+57 |
| | | | | | that as an object to vformat, resulting in #<garbage: ...> output. | ||||
* | Renaming global variables that denote symbols, such that they | Kaz Kylheku | 2009-11-24 | 11 | -275/+345 |
| | | | | have a _s suffix. | ||||
* | * configure (platform_flags, remove_flags): New config variables. | Kaz Kylheku | 2009-11-23 | 3 | -3/+25 |
| | | | | * Makefile (CFLAGS): Take into account new flags. | ||||
* | Follow up on 64 bit compilation warnings. | Kaz Kylheku | 2009-11-23 | 3 | -3/+14 |
| | |||||
* | WTF | Kaz Kylheku | 2009-11-23 | 1 | -1/+1 |
| | |||||
* | * Makefile (conftest.o): revert change that took CFLAGS from | Kaz Kylheku | 2009-11-23 | 2 | -1/+6 |
| | | | | this target. | ||||
* | * configure: Don't rely on higher precision arithmetic from the build | Kaz Kylheku | 2009-11-23 | 2 | -3/+10 |
| | | | | | | machine's shell. POSIX requires shell arithmetic to be only signed long. We can't compute the INT_PTR_MAX constant in the shell, but rather generate a constant C expression to compute it. | ||||
* | Reporting of compile errors during configuration for easier | Kaz Kylheku | 2009-11-23 | 3 | -14/+38 |
| | | | | configure debugging. | ||||
* | * configure: Bugfix in parsing configuration variables | Kaz Kylheku | 2009-11-23 | 3 | -6/+13 |
| | | | | | | | | which contain the = character. * Makefile (conftest.o): Pass full CFLAGS to configuration test builds. If some flags don't work with the compiler, this should be caught. |