internal.c: Functions to access Icon internals

link cfunc
October 3, 1995; Gregg M. Townsend
Requires: Dynamic loading
This file is in the public domain.

These functions provide some access to the internal machinery of the
Icon interpreter.  Some knowledge of the interpreter is needed to use
these profitably; misuse can lead to memory violations.

dword(x)             return d-word of descriptor
vword(x)             return v-word of descriptor
descriptor(d,v)      construct descriptor from d-word and v-word
peek(addr,n)         return contents of memory as n-character string
                     (if n is omitted, return Icon integer at addr)
spy(addr,n)          return string pointer to memory, without copying

Source code | Program Library Page | Icon Home Page