Commit Graph

37 Commits

Author SHA1 Message Date
sam 8797e16d7b Add support for primitive->string, compound->string and macro->string,
thanks to Derek Peschel <dpeschel@eskimo.com>. Patch slightly reworked.

git-svn-id: svn://svn.zoy.org/elk/trunk@277 55e467fa-43c5-0310-a8a2-de718669efc6
2009-12-19 13:08:32 +00:00
sam 776c2c2fcc Clean up build system and update copyright information.
git-svn-id: svn://svn.zoy.org/elk/trunk@274 55e467fa-43c5-0310-a8a2-de718669efc6
2009-12-19 12:28:26 +00:00
sam 550ad4e2a3 * include/object.h: use uintptr_t instead of intptr_t to avoid side
effects during divisions.


git-svn-id: svn://svn.zoy.org/elk/trunk@258 55e467fa-43c5-0310-a8a2-de718669efc6
2006-03-02 20:54:22 +00:00
sam da3485795e * Got rid of P_() and ELLIPSIS macros.
* Adapted all prototypes to no longer use P_().


git-svn-id: svn://svn.zoy.org/elk/trunk@252 55e467fa-43c5-0310-a8a2-de718669efc6
2004-08-09 20:05:25 +00:00
sam dc2d4e6819 * include/extern.h:
+ Export P_Pow to applications.


git-svn-id: svn://svn.zoy.org/elk/trunk@248 55e467fa-43c5-0310-a8a2-de718669efc6
2004-01-19 19:29:59 +00:00
sam c72bef9733 * Renamed ALIGN into ELK_ALIGN because OS X's <ppc/param.h> defines it.
git-svn-id: svn://svn.zoy.org/elk/trunk@197 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-26 15:02:53 +00:00
sam 1e16bd8dd3 * Added '\r' to the list of whitespace characters, as in the patch I found
on http://verno.ueda.info.waseda.ac.jp/network/patch-z .


git-svn-id: svn://svn.zoy.org/elk/trunk@195 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-26 12:17:33 +00:00
sam 8865c1ea8f * Replaced short with int16_t where necessary.
git-svn-id: svn://svn.zoy.org/elk/trunk@189 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-25 13:28:07 +00:00
sam b206e73e07 * BigNums now use uint16_t, not unsigned short.
git-svn-id: svn://svn.zoy.org/elk/trunk@186 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-24 17:42:55 +00:00
sam 6f847468df * extern_c should expand to extern in C, not to /* */, thanks to Mark Sapa.
git-svn-id: svn://svn.zoy.org/elk/trunk@181 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-24 09:14:51 +00:00
sam 957e491bba * Use DBL_MAX instead of HUGE_VAL for float precision when available.
git-svn-id: svn://svn.zoy.org/elk/trunk@179 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-23 12:16:22 +00:00
sam d2b7366679 * Added the "unspecified" type.
git-svn-id: svn://svn.zoy.org/elk/trunk@175 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-22 22:46:24 +00:00
sam 5f31f6ae27 * Proper DLL symbol exporting under Win32.
git-svn-id: svn://svn.zoy.org/elk/trunk@162 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-17 13:18:59 +00:00
sam 4cb155e3f6 * Fixed all signed/unsigned and undeclared function warnings.
git-svn-id: svn://svn.zoy.org/elk/trunk@158 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-15 12:53:36 +00:00
sam b12222213e * Removed references to NOMAIN.
* Replaced / with \ under Win32.
  * The Win32 version looks for .scm files in the scm subdirectory of the
    executable's current directory.


git-svn-id: svn://svn.zoy.org/elk/trunk@148 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-13 00:34:58 +00:00
sam c2282be5c7 * configure.ac:
+ Prefer the C99 inttypes.h rather than stdint.h.
    + Use AC_FUNC_ALLOCA instead of AC_CHECK_FUNCS(alloca).
  * include/object.h:
    + Removed a legacy #include <stdint.h>.


git-svn-id: svn://svn.zoy.org/elk/trunk@139 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-10 15:10:11 +00:00
sam 7a028b1c77 * Added more system checks.
* Now builds on Win32.


git-svn-id: svn://svn.zoy.org/elk/trunk@130 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-09 15:18:55 +00:00
sam 4f60aa8bd1 * Replaced ptrdiff_t with intptr_t.
git-svn-id: svn://svn.zoy.org/elk/trunk@109 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-06 15:30:43 +00:00
sam 35b62e4e29 * <malloc.h> is deprecated, replaced with <stdlib.h>.
git-svn-id: svn://svn.zoy.org/elk/trunk@107 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-06 14:46:24 +00:00
sam 666572f3e3 * Checked for libelf, and replaced hardcoded #define ELF with HAVE_LIBELF
tests.
  * #include "site.h" in kernel.h.


git-svn-id: svn://svn.zoy.org/elk/trunk@106 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-06 14:45:29 +00:00
sam 971eae3c27 * Removed the autoconf check for __attribute__((noreturn)) and used plain
C checks.


git-svn-id: svn://svn.zoy.org/elk/trunk@105 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-06 12:33:55 +00:00
sam 287e2c8805 * scheme.h and kernel.h no longer include config.h
* Hence included config.h in all C files.
  * Added site.h which will replace config.h for installed headers.


git-svn-id: svn://svn.zoy.org/elk/trunk@103 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-06 11:25:29 +00:00
sam 6000fb66f3 * Don't use __attribute__ if not using GNU C.
git-svn-id: svn://svn.zoy.org/elk/trunk@99 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-06 02:33:10 +00:00
sam 769b9f2fa6 * No TABS !!
git-svn-id: svn://svn.zoy.org/elk/trunk@66 55e467fa-43c5-0310-a8a2-de718669efc6
2003-09-02 08:12:11 +00:00
sam b13cf1d931 * Added $Id and copyright information to all .c and .h files in the kernel.
git-svn-id: svn://svn.zoy.org/elk/trunk@64 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-30 16:47:54 +00:00
sam b884d039b6 * Distribute headers in /usr/include/elk.
* Build the Unix plugin.


git-svn-id: svn://svn.zoy.org/elk/trunk@43 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-25 16:00:50 +00:00
sam fd9e7337f5 * Fixed all compilation warnings in the base code.
git-svn-id: svn://svn.zoy.org/elk/trunk@41 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-25 15:01:22 +00:00
sam c0f08629cc * Use ptrdiff_t for address arithmetics.
git-svn-id: svn://svn.zoy.org/elk/trunk@40 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-25 14:47:40 +00:00
sam 8a5258b0c8 * Added comments from the old config/ directory to configure.ac, and started
changing all the AC_DEFINEs into proper autoconf checks.


git-svn-id: svn://svn.zoy.org/elk/trunk@36 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-25 14:17:09 +00:00
sam a769db700e * Moved the configuration macros from include/build-config to configure.ac.
git-svn-id: svn://svn.zoy.org/elk/trunk@29 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-25 12:38:36 +00:00
sam 9c85718f62 * First autoconfiscation step.
+ libelk compiles.
    + elk compiles.


git-svn-id: svn://svn.zoy.org/elk/trunk@25 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-25 11:15:39 +00:00
sam fd4e14a4d1 elk (3.0-13) unstable; urgency=low
* Fixed gcc-3.3 compilation errors due to deprecated usage of <varargs.h>.
 -- Sam Hocevar (Debian packages) <sam+deb@zoy.org>  Fri, 30 May 2003 17:04:56 +0200


git-svn-id: svn://svn.zoy.org/elk/trunk@7 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-19 19:26:49 +00:00
sam bd236557b1 elk (3.0-11) unstable; urgency=low
* Fixed a compilation issue in src/load-dl.c:Load_Lib().
  * Fixed more pointer/integer type confusions, used ptrdiff_t where possible.
  * Fixed a register mangling issue in heap.c:Visit_GC_List() and
    heap.c:Visit_Wind() (Really fixes #59893).
 -- Samuel Hocevar <sam@zoy.org>  Fri,  4 Apr 2003 02:48:29 +0200


git-svn-id: svn://svn.zoy.org/elk/trunk@5 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-19 19:25:35 +00:00
sam 141bca2769 elk (3.0-10) unstable; urgency=low
* Updated debhelper build dependency to >>3.0.0.
  * Shared library handling:
    + Extended load.c:General_Load() to open shared libraries.
    + Makefiles now build shared libraries.
    + Stopped distributing .o files and replaced them with the .so shared
      libraries; built the Unix, X11, Xaw and Motif extensions.
    + The interpreter is no longer linked with -lgdbm, gdbm.so is instead.
  * Replaced standalone.o and module.o with their .a equivalents.
  * Made the 'debian/arch-config' sourcing errors non-fatal so that make
    distclean works in the src/ directory.
  * Changed SCM_DIR again, from /usr/share/elk/scm to /usr/share/elk, and
    ditto with OBJ_DIR, from /usr/lib/elk/obj to /usr/lib/elk.
  * Defaulted "garbage-collect-notify?" and "autoload-notify?" to #f.
 -- Samuel Hocevar <sam@zoy.org>  Tue,  1 Apr 2003 23:34:26 +0200


git-svn-id: svn://svn.zoy.org/elk/trunk@4 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-19 19:25:03 +00:00
sam d51c970c8d elk (3.0-9) unstable; urgency=low
* New maintainer.
  * Packaging updates:
    + Fixed spelling in the package description (Closes: #161056).
    + Updated standards version to 3.5.9.0.
    + Changed SCM_DIR from /usr/lib/elk/scm to /usr/share/elk/scm because
      scheme scripts are platform-independent.
  * Massive code cleanups:
    + Added -Wall to the build rules to make error spotting easier, and fixed
      all compilation warnings in the main program.
    + Replaced sys_errlist with strerror, bcopy with memcpy, bzero with memset.
    + Fixed many uninitialized variables.
  * Fixed some pointer/integer type confusions which caused elk to crash
    on alpha (Closes: #59893) and probably ia64.
  * Fixed a read overflow in heap-gen.c:AllocPage() that was corrupting the
    internal heap (Closes: #57621).
  * Fixed a missing memory area initialization in heap-gen.c:ExpandHeap() that
    was causing garbage collector crashes.
  * Fixed an integer sign issue in main.c:Max_Stack (Closes: #176190).
  * Made `quit' an alias for `exit' in toplevel.scm.
 -- Samuel Hocevar <sam@zoy.org>  Tue,  1 Apr 2003 11:33:23 +0200


git-svn-id: svn://svn.zoy.org/elk/trunk@3 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-19 19:24:23 +00:00
sam f37781fa62 * Imported the original 3.0-8.1 Debian diff.
git-svn-id: svn://svn.zoy.org/elk/trunk@2 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-19 19:22:48 +00:00
sam 3132f65611 * Imported original elk 3.0 tree.
git-svn-id: svn://svn.zoy.org/elk/trunk@1 55e467fa-43c5-0310-a8a2-de718669efc6
2003-08-19 19:19:38 +00:00