develooper Front page | perl.perl6.internals | Postings from September 2001

[COMMIT] Preparation for putting NVs in const_table.

From:
Gregor N. Purdy
Date:
September 26, 2001 11:18
Subject:
[COMMIT] Preparation for putting NVs in const_table.
Message ID:
1001528291.24460.37.camel@sarek.oh.focusresearch.com
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                          gregor@focusresearch.com
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About