All --
I've just committed the changes I posted a few days back that prepare
for putting NVs in the const_table. Stay tuned for more, but here's
the bullets for this commit:
* bytecode.[hc] removed. packfile.[hc] are the interface to the
packfile/bytecode file from C. May be renamed in the future.
* packfile.[hc] changed to use 'struct PackFile *', etc. instead
of 'PackFile *', just like the interpreter, etc.
* Constants are accessed via the interpreter's 'code' member
(struct PackFile * code). Macros PCONST(i) and PNCONST are
provided to access constants by index and the number of
constants, respectively (assumes a variable 'interpreter' of
the appropriate type is in scope).
* Byte Code is accessed via the interpreter's 'code' member.
* Changed PackFile_Constant to point to a STRING instead of having
members for the string_make() arguments. Also has a 'type' IV
in preparation for allowing multiple types of constants in
const_table.
* Removed hardcoded example program from test_main.c. We have
plenty of test programs elsewhere.
* test_prog now uses a PackFile to deal with the program before
sending it on to the interpreter.
* Added missing 'end' ops to some tests in t/op/integer.t and
t/op/stacks.t.
Regards,
-- Gregor
_____________________________________________________________________
/ perl -e 'srand(-2091643526); print chr rand 90 for (0..4)' \
Gregor N. Purdy [EMAIL PROTECTED]
Focus Research, Inc. http://www.focusresearch.com/
8080 Beckett Center Drive #203 513-860-3570 vox
West Chester, OH 45069 513-860-3579 fax
\_____________________________________________________________________/