Lhogho
0.0.028
|
Go to the source code of this file.
Macros | |
#define | test_elem_and_destroy_if_error(elem, list) |
Check if element is error and if destroy the list. More... | |
#define | ARGUMENT *pdata |
#define | EACH_ARGUMENT pdata=(atom_t*)(&data+data); (int*)pdata>&data; pdata-- |
#define | SIGN(X) ((X == 0) ? 0 : (X < 0 ? -1 : 1)) |
#define | ZERO_PRECISION 1e-10 |
#define | MAX_NUMBER_WORD_LENGTH 64 |
#define | MAX_WORD_LENGTH 4096 |
#define | CHECK_PARAM(param) if( IS_ERROR(param) ) RETURN(USE(param)) |
#define | RUNTIME __attribute__((used,noinline,regparm(0),cdecl)) |
default attributes of runtime functions More... | |
#define | rt_makechk __attribute__((used,noinline,regparm(0),stdcall)) rt_makechk |
#define | rt_cmdchk __attribute__((used,noinline,regparm(0),stdcall)) rt_cmdchk |
#define | rt_exprchk __attribute__((used,noinline,regparm(0),stdcall)) rt_exprchk |
#define | rt_boolchk __attribute__((used,noinline,regparm(0),stdcall)) rt_boolchk |
#define | rt_funchk __attribute__((used,noinline,regparm(0),stdcall)) rt_funchk |
#define | rt_repchk __attribute__((used,noinline,regparm(0),stdcall)) rt_repchk |
#define | rt_forchk __attribute__((used,noinline,regparm(0),stdcall)) rt_forchk |
#define | rt_dump __attribute__((used,noinline,regparm(0),stdcall)) rt_dump |
#define | rt_predump __attribute__((used,noinline,regparm(0),stdcall)) rt_predump |
#define | rt_whlchk __attribute__((used,noinline,regparm(0),stdcall)) rt_whlchk |
#define | void void __attribute__ ((used,noinline,regparm(0),stdcall)) |
#define | void atom_t __attribute__ ((used,noinline,regparm(0),stdcall)) |
#define | void void __attribute__ ((used,noinline,regparm(0),stdcall)) |
#define | rt_use_var __attribute__((used,noinline,regparm(0),stdcall)) rt_use_var |
#define | rt_check_inputs __attribute__((used,noinline,regparm(0),stdcall)) rt_check_inputs |
#define | rt_catchchk __attribute__((used,noinline,regparm(0),stdcall)) rt_catchchk |
#define | rt_runresult_fix __attribute__((used,noinline,regparm(0),stdcall)) rt_runresult_fix |
Functions | |
void | rt_set_var_value (int static_link, atom_t parent, atom_t var, atom_t value) |
sets var's value in the local stacks More... | |
void | init_runtime () |
initializes the Runtime module More... | |
void | finit_runtime () |
finalizes the Runtime module More... | |
int | find_file_by_filename (char *filename) |
search log by filename More... | |
int | find_file_by_handle (FILE *handle) |
search log by handlee More... | |
atom_t | rt_makechk (atom_t source, atom_t data) |
checks for valid result of a MAKE command More... | |
atom_t | rt_cmdchk (atom_t source, atom_t data) |
checks for valid result of a command More... | |
atom_t | rt_exprchk (atom_t source, atom_t data) |
checks for valid result of an expression More... | |
atom_t | rt_boolchk (atom_t source, atom_t data) |
checks for valid boolean value More... | |
atom_t | rt_funchk (atom_t source, atom_t data) |
checks for valid result of a function More... | |
atom_t | rt_repchk (atom_t source, atom_t data) |
checks for valid repetition count More... | |
atom_t | rt_forchk (atom_t source, atom_t *step_value, atom_t step, atom_t to, atom_t from) |
checks for valid repetition count More... | |
atom_t RUNTIME | rt_print (atom_t pdl, atom_t pwl, atom_t fpp, int data) |
implementation of primitive PRINT More... | |
atom_t RUNTIME | rt_plus (int count, atom_t data2, atom_t data1) |
implementation of primitive operator + More... | |
atom_t RUNTIME | rt_minus (int count, atom_t data2, atom_t data1) |
implementation of primitive operator - More... | |
atom_t RUNTIME | rt_mul (atom_t data2, atom_t data1) |
implementation of primitive operator * More... | |
atom_t RUNTIME | rt_div (atom_t data2, atom_t data1) |
implementation of primitive operator / More... | |
atom_t RUNTIME | rt_sum (int data) |
implementation of aritmetic primitive SUM More... | |
atom_t RUNTIME | rt_difference (atom_t data2, atom_t data1) |
implementation of aritmetic primitive DIFFERENCE More... | |
atom_t RUNTIME | rt_unminus (atom_t data) |
implementation of aritmetic unary primitive MINUS More... | |
atom_t RUNTIME | rt_product (int data) |
implementation of aritmetic primitive PRODUCT More... | |
atom_t RUNTIME | rt_remainder (atom_t data2, atom_t data1) |
implementation of aritmetic primitive REMAINDER More... | |
atom_t RUNTIME | rt_int (atom_t data) |
implementation of aritmetic unary primitive INT More... | |
atom_t RUNTIME | rt_round (atom_t data) |
implementation of aritmetic unary primitive ROUND More... | |
atom_t RUNTIME | rt_sqrt (atom_t data) |
implementation of aritmetic unary primitive SQRT More... | |
atom_t RUNTIME | rt_power (atom_t power, atom_t base) |
implementation of aritmetic primitive POWER More... | |
atom_t RUNTIME | rt_exp (atom_t power) |
implementation of aritmetic primitive EXP More... | |
atom_t RUNTIME | rt_log10 (atom_t data) |
implementation of aritmetic primitive LOG10 More... | |
atom_t RUNTIME | rt_ln (atom_t data) |
implementation of aritmetic primitive LN More... | |
atom_t RUNTIME | rt_abs (atom_t data) |
implementation of aritmetic primitive ABS More... | |
atom_t RUNTIME | rt_pi (void) |
implementation of aritmetic primitive PI More... | |
atom_t RUNTIME | rt_sin (atom_t data) |
implementation of aritmetic primitive SIN More... | |
atom_t RUNTIME | rt_radsin (atom_t data) |
implementation of aritmetic primitive RADSIN More... | |
atom_t RUNTIME | rt_cos (atom_t data) |
implementation of aritmetic primitive COS More... | |
atom_t RUNTIME | rt_radcos (atom_t data) |
implementation of aritmetic primitive RADCOS More... | |
atom_t RUNTIME | rt_arctan (int count, atom_t data2, atom_t data1) |
implementation of aritmetic primitive ARCTAN More... | |
atom_t RUNTIME | rt_radarctan (int count, atom_t data2, atom_t data1) |
implementation of aritmetic primitive RADARCTAN More... | |
atom_t RUNTIME | rt_make (int static_link, atom_t parent, atom_t value, atom_t name) |
implementation of primitive command MAKE More... | |
atom_t RUNTIME | rt_name (int static_link, atom_t parent, atom_t name, atom_t value) |
implementation of primitive command NAME More... | |
atom_t RUNTIME | rt_local (int static_link, atom_t parent, int data) |
dummy implementation of primitive command LOCAL More... | |
int | num_compare (float64_t x, float64_t y) |
compares two numbers. More... | |
int | word_compare (int cip, chars_t w1, int w1_len, chars_t w2, int w2_len) |
compares two words. More... | |
int | atom_equal (atom_t cip, atom_t data2, atom_t data1) |
compares two atoms. More... | |
int | list_equal (atom_t cip, atom_t data1, atom_t data2) |
compares two lists. More... | |
atom_t RUNTIME | rt_equal (atom_t cip, atom_t data2, atom_t data1) |
implementation compare operation EQUALP More... | |
atom_t RUNTIME | rt_nequal (atom_t cip, atom_t data2, atom_t data1) |
implementation compare operation NOTEQUALP More... | |
atom_t RUNTIME | rt_less (atom_t data2, atom_t data1) |
implementation compare operation LESSP More... | |
atom_t RUNTIME | rt_more (atom_t data2, atom_t data1) |
implementation compare operation GREATERP More... | |
atom_t RUNTIME | rt_lesseq (atom_t data2, atom_t data1) |
implementation compare operation LESSEQUALP More... | |
atom_t RUNTIME | rt_moreeq (atom_t data2, atom_t data1) |
implementation compare operation GREATEREQUALP More... | |
atom_t RUNTIME | rt_before (atom_t cip, atom_t data2, atom_t data1) |
implementation compare operation BEFOREP More... | |
atom_t RUNTIME | rt_output (atom_t data) |
dummy implementation of primitive command OUTPUT More... | |
atom_t RUNTIME | rt_maybeoutput (atom_t data) |
dummy implementation of primitive command MAYBEOUTPUT More... | |
atom_t RUNTIME | rt_stop () |
dummy implementation of primitive command STOP More... | |
atom_t | rt_dump (atom_t source) |
dump source command More... | |
atom_t | rt_predump (atom_t source) |
dump source command More... | |
atom_t RUNTIME | rt_and (int data) |
implementation of boolean primitive AND More... | |
atom_t RUNTIME | rt_or (int data) |
implementation of boolean primitive OR More... | |
atom_t RUNTIME | rt_not (atom_t data) |
implementation of boolean primitive NOT More... | |
atom_t RUNTIME | rt_ignore (atom_t data) |
implementation of primitive IGNORE More... | |
atom_t RUNTIME | rt_first (atom_t data) |
implementation of primitive FIRST More... | |
atom_t RUNTIME | rt_butfirst (atom_t data) |
implementation of primitive BUTFIRST More... | |
atom_t RUNTIME | rt_firsts (atom_t data) |
implementation of primitive FIRSTS More... | |
atom_t RUNTIME | rt_butfirsts (atom_t data) |
implementation of primitive BUTFIRSTS and BFS More... | |
atom_t RUNTIME | rt_last (atom_t data) |
implementation of primitive LAST More... | |
atom_t RUNTIME | rt_butlast (atom_t data) |
implementation of primitive BUTALST More... | |
atom_t RUNTIME | rt_item (atom_t data, atom_t index) |
implementation of primitive ITEM More... | |
atom_t RUNTIME | rt_if (int count) |
dummy implementation of primitive command IF More... | |
atom_t RUNTIME | rt_repeat (atom_t repcount, atom_t commands) |
dummy implementation of primitive command REPEAT More... | |
atom_t RUNTIME | rt_while (atom_t condition, atom_t commands) |
dummy implementation of primitive command WHILE More... | |
atom_t RUNTIME | rt_dowhile (atom_t commands, atom_t condition) |
atom_t RUNTIME | rt_until (atom_t condition, atom_t commands) |
dummy implementation of primitive command UNTIL More... | |
atom_t RUNTIME | rt_dountil (atom_t commands, atom_t condition) |
dummy implementation of primitive command UNTIL More... | |
atom_t | rt_whlchk (atom_t source, atom_t data) |
checks for valid while condition More... | |
void | rt_repeat_enter (int frame, int count) |
initializes a repeat loop More... | |
void | rt_repeat_exit (int frame) |
finalizes a repeat loop More... | |
atom_t RUNTIME | rt_repcount (int frame) |
implementation of primitive function REPCOUNT More... | |
atom_t RUNTIME | rt_forever (atom_t commands) |
dummy implementation of primitive command FOREVER More... | |
void | rt_forever_enter (int frame) |
initializes a forever loop More... | |
atom_t RUNTIME | rt_parse (atom_t data) |
implementation of PARSE More... | |
atom_t RUNTIME | rt_runparse (atom_t data) |
implementation of RUNPARSE More... | |
atom_t RUNTIME | rt_wordp (atom_t data) |
implementation of WORDP More... | |
atom_t RUNTIME | rt_listp (atom_t data) |
implementation of LISTP More... | |
atom_t RUNTIME | rt_numberp (atom_t data) |
implementation of NUMBERP More... | |
atom_t RUNTIME | rt_empty (atom_t data) |
implementation of EMPTYP More... | |
atom_t RUNTIME | rt_memberp (atom_t cip, atom_t data, atom_t elem) |
implementation of MEMBERP More... | |
atom_t RUNTIME | rt_word (int data) |
implementation of constructor primitive WORD More... | |
atom_t RUNTIME | rt_list (int data) |
implementation of constructor primitive LIST More... | |
atom_t RUNTIME | rt_sent (int data) |
implementation of constructor primitive SE More... | |
atom_t RUNTIME | rt_fput (atom_t data2, atom_t data1) |
implementation of constructor primitive FPUT More... | |
atom_t RUNTIME | rt_lput (atom_t data2, atom_t data1) |
implementation of constructor primitive LPUT More... | |
atom_t RUNTIME | rt_count (atom_t data) |
implementation of querie primitive COUNT More... | |
atom_t RUNTIME | rt_char (atom_t data) |
implementation of querie primitive CHAR More... | |
atom_t RUNTIME | rt_ascii (atom_t data) |
implementation of querie primitive ASCII More... | |
atom_t RUNTIME | rt_lower (atom_t data) |
implementation of querie primitive LOWERCASE More... | |
atom_t RUNTIME | rt_upper (atom_t data) |
implementation of querie primitive UPPERCASE More... | |
atom_t RUNTIME | rt_member (atom_t cip, atom_t data, atom_t elem) |
implementation of MEMBER More... | |
atom_t RUNTIME | rt_iseq (atom_t to, atom_t from) |
implementation of ISEQ More... | |
atom_t RUNTIME | rt_rseq (atom_t count, atom_t to, atom_t from) |
implementation of RSEQ More... | |
atom_t RUNTIME | rt_random (int count, atom_t data2, atom_t data1) |
implementation of aritmetic primitive RANDOM More... | |
atom_t RUNTIME | rt_rerandom (int count, atom_t seed) |
implementation of primitive RERANDOM More... | |
atom_t RUNTIME | rt_show (atom_t pdl, atom_t pwl, atom_t fpp, int data) |
implementation of primitive SHOW More... | |
atom_t RUNTIME | rt_type (atom_t pdl, atom_t pwl, atom_t fpp, int data) |
implementation of primitive TYPE More... | |
atom_t RUNTIME | rt_form (atom_t precision, atom_t width, atom_t num) |
implementation of primitive FORM More... | |
char_t RUNTIME | get_format (chars_t string) |
extracts format specifier More... | |
atom_t RUNTIME | rt_format (atom_t format, atom_t data) |
implementation of primitive FORMAT More... | |
atom_t RUNTIME | rt_formattime (atom_t format, atom_t data) |
implementation of primitive FORMATTIME More... | |
atom_t RUNTIME | rt_definedp (int static_link, atom_t parent, atom_t data) |
implementation of DEFINED? More... | |
atom_t RUNTIME | rt_primitivep (int static_link, atom_t parent, atom_t data) |
implementation of PRIMITIVE? More... | |
atom_t RUNTIME | rt_namep (int static_link, atom_t parent, atom_t data) |
implementation of NAME? More... | |
atom_t RUNTIME | rt_procedurep (int static_link, atom_t parent, atom_t data) |
implementation of PROCEDURE? More... | |
atom_t | rt_var_value (int static_link, atom_t parent, atom_t var) |
searches var's value in the local stacks More... | |
atom_t | rt_use_var (atom_t source, atom_t value) |
checks the value of a variable More... | |
atom_t RUNTIME | rt_thing (int static_link, atom_t parent, atom_t data) |
implementation of THING More... | |
atom_t RUNTIME | rt_reference (int static_link, atom_t parent, atom_t data) |
implementation of : More... | |
atom_t | rt_check_inputs (int stack_frame) |
check inputs params More... | |
atom_t RUNTIME | rt_bye (void) |
implementation of command BYE More... | |
atom_t RUNTIME | rt_wait (atom_t time) |
implementation of command WAIT More... | |
atom_t RUNTIME | rt_ashift (atom_t bits, atom_t num) |
implementation of primitive command ASHIFT More... | |
atom_t RUNTIME | rt_lshift (atom_t bits, atom_t num) |
implementation of primitive command LSHIFT More... | |
atom_t RUNTIME | rt_bitand (int data) |
implementation of primitive command BITAND More... | |
atom_t RUNTIME | rt_bitor (int data) |
implementation of primitive command BITOR More... | |
atom_t RUNTIME | rt_bitxor (int data) |
implementation of primitive command BITXOR More... | |
atom_t RUNTIME | rt_bitnot (atom_t data) |
implementation of primitive command BITNOT More... | |
atom_t RUNTIME | rt_pick (atom_t list) |
implementation of primitive command PICK More... | |
atom_t RUNTIME | rt_remdup (atom_t cip, atom_t data) |
implementation of primitive command REMDUP More... | |
atom_t RUNTIME | rt_remove (atom_t cip, atom_t data, atom_t elem) |
implementation of primitive command REMOVE More... | |
atom_t RUNTIME | rt_reverse (atom_t data) |
implementation of primitive command REVERSE More... | |
atom_t RUNTIME | rt_rawascii (atom_t data) |
implementation of querie primitive RAWASCII More... | |
atom_t RUNTIME | rt_gensym () |
implements primitive function GENSYM More... | |
atom_t RUNTIME | rt_substringp (atom_t cip, atom_t data2, atom_t data1) |
implements primitive predicate SUBSTRINGP More... | |
atom_t RUNTIME | rt_substring (atom_t cip, atom_t data2, atom_t data1) |
implements primitive SUBSTRING More... | |
atom_t RUNTIME | rt_combine (atom_t data2, atom_t data1) |
implementation of constructor primitive COMBINE More... | |
atom_t RUNTIME | rt_quoted (atom_t data) |
implementation of primitive function QUOTED More... | |
atom_t RUNTIME | rt_throw (int count, atom_t data1, atom_t data2) |
implementation of primitive THROW More... | |
atom_t RUNTIME | rt_catch (atom_t commands, atom_t tag) |
dummy implementation of primitive command CATCH More... | |
atom_t | rt_catchchk (int status, atom_t tag, atom_t data) |
checks for valid result of a catch More... | |
atom_t RUNTIME | rt_error () |
implementation of primitive function ERROR More... | |
atom_t RUNTIME | rt_tag () |
dummy implementation of primitive command TAG More... | |
atom_t RUNTIME | rt_goto (int static_link, atom_t parent, atom_t data, atom_t source) |
implementation of primitive command GOTO More... | |
atom_t RUNTIME | rt_iftrue (atom_t commands) |
dummy implementation of primitive command IFTRUE More... | |
atom_t RUNTIME | rt_iffalse (atom_t commands) |
dummy implementation of primitive command IFFALSE More... | |
atom_t RUNTIME | rt_test (atom_t condition, int frame) |
implementation of primitive command TEST More... | |
atom_t RUNTIME | rt_backslashedp (atom_t data) |
implementation of primitive BACKSLASHED? More... | |
atom_t RUNTIME | rt_text (int static_link, atom_t parent, atom_t data) |
implementation of TEXT More... | |
atom_t RUNTIME | rt_fulltext (int static_link, atom_t parent, atom_t data) |
implementation of FULLTEXT More... | |
atom_t RUNTIME | rt_run (int static_link, atom_t parent, atom_t data, int mode) |
implementation of RUN More... | |
atom_t RUNTIME | rt_runmacro (int static_link, atom_t parent, atom_t data, int mode) |
implementation of RUNMACRO More... | |
atom_t RUNTIME | rt_runresult (int static_link, atom_t parent, atom_t data) |
implementation of RUNRESULT More... | |
atom_t | rt_runresult_fix (atom_t data) |
fixes the result of RUNRESULT More... | |
atom_t RUNTIME | rt_define (int static_link, atom_t parent, atom_t value, atom_t name) |
implementation of primitive command DEFINE More... | |
atom_t RUNTIME | rt_for (atom_t body, atom_t limits, atom_t var) |
dummy implementation of primitive command FOR More... | |
atom_t RUNTIME | rt_libload (atom_t data) |
implementation of primitive LIBLOAD More... | |
atom_t RUNTIME | rt_libfree (atom_t data) |
implementation of primitive LIBFREE More... | |
atom_t RUNTIME | rt_blocksize (int static_link, atom_t parent, atom_t prototype) |
implementation of PACKSIZE More... | |
atom_t RUNTIME | rt_listtoblock (int static_link, atom_t parent, atom_t prototype, atom_t data) |
implementation of LISTTOBLOCK More... | |
atom_t RUNTIME | rt_blocktolist (int static_link, atom_t parent, atom_t prototype, atom_t data) |
implementation of PACK More... | |
atom_t RUNTIME | rt_dataaddr (atom_t data) |
implementation of DATAADDR More... | |
atom_t RUNTIME | rt_listintoblock (int static_link, atom_t parent, atom_t prototype, atom_t dest, atom_t data) |
implementation of PACKTO More... | |
atom_t RUNTIME | rt_funcaddr (int static_link, atom_t parent, atom_t data) |
implementation of FUNVADDR More... | |
atom_t RUNTIME | rt_external (int static_link, atom_t parent, atom_t handle, atom_t prototype, atom_t name) |
implementation of EXTERNAL More... | |
atom_t RUNTIME | rt_internal (int static_link, atom_t parent, atom_t prototype, atom_t name) |
implementation of INTERNAL More... | |
atom_t RUNTIME | rt_stackframe (int static_link, atom_t parent, atom_t offset, atom_t frame) |
implementation of _STACKFRAME More... | |
atom_t RUNTIME | rt_stackframeatom (int static_link, atom_t parent, atom_t offset, atom_t frame) |
implementation of _STACKFRAMEATOM More... | |
atom_t RUNTIME | rt_int3 () |
dummy implementation of debug command _INT3 More... | |
atom_t RUNTIME | rt_load (atom_t data) |
implementation of LOAD More... | |
atom_t RUNTIME | rt_commandline () |
implementation of COMMANDLINE More... | |
atom_t RUNTIME | rt_openfile_mode (atom_t filename, char *mode, int call_mode) |
used by OPEN* functions More... | |
atom_t RUNTIME | rt_openfile (atom_t mode, atom_t filename, int call_mode) |
implementation of OPENFILE More... | |
atom_t RUNTIME | get_file_index (atom_t file, int *index) |
get file index More... | |
atom_t RUNTIME | rt_closefile (atom_t file) |
implementation of CLOSEFILE More... | |
atom_t RUNTIME | rt_readblock (int static_link, atom_t parent, atom_t size) |
implementation of READBLOCK More... | |
atom_t RUNTIME | rt_readinblock (atom_t block, int call_mode) |
implementation of READINBLOCK More... | |
atom_t RUNTIME | rt_writeblock (atom_t data) |
implementation of WRITEBLOCK More... | |
atom_t RUNTIME | rt_readchar (void) |
implementation of primitive function readchar More... | |
atom_t RUNTIME | rt_readchars (atom_t data) |
implementation of primitive function readchars More... | |
atom_t RUNTIME | rt_readrawline (void) |
implementation of primitive function readrawline More... | |
atom_t RUNTIME | rt_readword (void) |
implementation of primitive function readword More... | |
atom_t RUNTIME | rt_readlist (void) |
implementation of primitive function readlist More... | |
atom_t RUNTIME | rt_getenv (atom_t data) |
implementation of GETENV More... | |
atom_t RUNTIME | rt_getenvs () |
implementation of GETENVS More... | |
atom_t RUNTIME | rt_eofp (void) |
implementation of primitive function eof? More... | |
atom_t RUNTIME | rt_currentfolder (void) |
implementation of primitive function currentfolder More... | |
atom_t RUNTIME | rt_makefolder (atom_t name) |
implementation of primitive function makefolder More... | |
atom_t RUNTIME | rt_erasefolder (atom_t name) |
implementation of primitive function erasefolder More... | |
atom_t RUNTIME | rt_changefolder (atom_t name) |
implementation of primitive function changefolder More... | |
atom_t RUNTIME | rt_folderp (atom_t name) |
implementation of primitive function folder? More... | |
atom_t RUNTIME | rt_renamefolder_or_file (atom_t toname, atom_t fromname, int folders) |
implementation of primitive function renamefolder More... | |
atom_t RUNTIME | rt_renamefolder (atom_t toname, atom_t fromname) |
implementation of primitive function renamefolder More... | |
atom_t RUNTIME | rt_renamefile (atom_t toname, atom_t fromname) |
implementation of primitive function renamefile More... | |
atom_t RUNTIME | rt_folders_or_files (atom_t name, int folders) |
scans a folder More... | |
atom_t RUNTIME | rt_folders (atom_t name) |
implementation of primitive function folders More... | |
atom_t RUNTIME | rt_files (atom_t name) |
implementation of primitive function files More... | |
atom_t RUNTIME | rt_erasefile (atom_t name) |
implementation of primitive function erasefile More... | |
atom_t RUNTIME | rt_filep (atom_t name) |
implementation of primitive function file? More... | |
atom_t RUNTIME | rt_filesize (atom_t name) |
implementation of primitive function filesize More... | |
atom_t RUNTIME | rt_filetimes (atom_t name) |
implementation of primitive function filetimes More... | |
atom_t RUNTIME | rt_openread (atom_t name, int call_mode) |
implementation of primitive function openread More... | |
atom_t RUNTIME | rt_openwrite (atom_t name, int call_mode) |
implementation of primitive function openwrite More... | |
atom_t RUNTIME | rt_openappend (atom_t name, int call_mode) |
implementation of primitive function openappend More... | |
atom_t RUNTIME | rt_openupdate (atom_t name, int call_mode) |
implementation of primitive function openupdate More... | |
atom_t RUNTIME | rt_setread (atom_t file) |
implementation of SETREAD More... | |
atom_t RUNTIME | rt_setwrite (atom_t file) |
implementation of SETWRITE More... | |
atom_t RUNTIME | rt_reader () |
implementation of READER More... | |
atom_t RUNTIME | rt_writer () |
implementation of WRITER More... | |
atom_t RUNTIME | rt_allopen () |
implementation of ALLOPEN More... | |
atom_t RUNTIME | rt_closeall () |
implementation of CLOSEALL More... | |
atom_t RUNTIME | rt_setreadpos (atom_t pos) |
implementation of SETREADPOS More... | |
atom_t RUNTIME | rt_readpos () |
implementation of READPOS More... | |
atom_t RUNTIME | rt_setwritepos (atom_t pos) |
implementation of SETWRITEPOS More... | |
atom_t RUNTIME | rt_writepos () |
implementation of WRITEPOS More... | |
atom_t RUNTIME | rt_timezone () |
implementation of TIMEZONE More... | |
atom_t RUNTIME | rt_nodribble () |
implementation of NODRIBBLE More... | |
atom_t RUNTIME | rt_dribble (atom_t file) |
implements prmitive DRIBBLE More... | |
Variables | |
char * | file_names [FOPEN_MAX] = { [0 ... (FOPEN_MAX-1)]=NULL } |
Array of names of opened files. More... | |
FILE * | file_handles [FOPEN_MAX] = { [0 ... (FOPEN_MAX-1)]=NULL } |
Array of handles of opened files. More... | |
#define test_elem_and_destroy_if_error | ( | elem, | |
list | |||
) |
#define EACH_ARGUMENT pdata=(atom_t*)(&data+data); (int*)pdata>&data; pdata-- |
#define RUNTIME __attribute__((used,noinline,regparm(0),cdecl)) |
#define rt_makechk __attribute__((used,noinline,regparm(0),stdcall)) rt_makechk |
#define rt_cmdchk __attribute__((used,noinline,regparm(0),stdcall)) rt_cmdchk |
#define rt_exprchk __attribute__((used,noinline,regparm(0),stdcall)) rt_exprchk |
#define rt_boolchk __attribute__((used,noinline,regparm(0),stdcall)) rt_boolchk |
#define rt_funchk __attribute__((used,noinline,regparm(0),stdcall)) rt_funchk |
#define rt_repchk __attribute__((used,noinline,regparm(0),stdcall)) rt_repchk |
#define rt_forchk __attribute__((used,noinline,regparm(0),stdcall)) rt_forchk |
#define rt_dump __attribute__((used,noinline,regparm(0),stdcall)) rt_dump |
#define rt_predump __attribute__((used,noinline,regparm(0),stdcall)) rt_predump |
#define rt_whlchk __attribute__((used,noinline,regparm(0),stdcall)) rt_whlchk |
#define void void __attribute__ ((used,noinline,regparm(0),stdcall)) |
#define void atom_t __attribute__ ((used,noinline,regparm(0),stdcall)) |
#define void void __attribute__ ((used,noinline,regparm(0),stdcall)) |
#define rt_use_var __attribute__((used,noinline,regparm(0),stdcall)) rt_use_var |
#define rt_check_inputs __attribute__((used,noinline,regparm(0),stdcall)) rt_check_inputs |
#define rt_catchchk __attribute__((used,noinline,regparm(0),stdcall)) rt_catchchk |
#define rt_runresult_fix __attribute__((used,noinline,regparm(0),stdcall)) rt_runresult_fix |
void init_runtime | ( | ) |
void finit_runtime | ( | ) |
int find_file_by_filename | ( | char * | filename) |
filename | name of a file |
Searches file_names for the string in filename and return its index in the array. If not found returns -1.
int find_file_by_handle | ( | FILE * | handle) |
handle | handle of a file |
Searches file_handles for a given handle and return its index in the array. If not found returns -1.
source | source of the command |
data | value to check |
Checks whether the result of a MAKE is valid. Returns error atom if the result is error or unbound. Otherwise returns unbound atom. The source
parameter points to the source where the make is called. It is used to locate the error position in case of errors.
Definition at line 345 of file runtime.c.
source | source of the command |
data | value to check |
Checks whether the result of a command is valid. Returns error atom if the result is error or not unbound. Otherwise returns unbound atom. The source
parameter points to the source where the command is called. It is used to locate the error position in case of errors.
Definition at line 402 of file runtime.c.
source | source of the expression |
data | value to check |
Checks whether the result of an expression is valid. Actually any result is valid. Thus this function is used only to add new error position or dump the source if -Zrt option is on.
data | value to check |
source | source of the function |
Checks whether the result of a function is valid. Returns error atom if the result is error or unbound. Otherwise returns the same atom. The source
parameter points to the source where the function is called. It is used to locate the error position in case of errors.
Definition at line 540 of file runtime.c.
data | value to check |
source | source of the expression |
Checks whether the number of repetition in a repeat
command is valid. Returns error atom if the result is error, unbound or invalid. Otherwise returns an integer atom containing the number of repetitions. The source
parameter points to the source where the expression is called. It is used to locate the error position in case of errors.
Definition at line 597 of file runtime.c.
from | initial value |
to | final value |
step | step value (could be UNBOUND) |
step_value | pointer to step value |
source | source of the expression |
Calculates the number of repetition in a for
command. Returns error atom if the result is error, unbound or invalid. Otherwise returns an integer atom containing the number of repetitions. The source
parameter points to the source where the expression is called. It is used to locate the error position in case of errors.
Definition at line 661 of file runtime.c.
pdl | value of PRINTDEPTHLIMIT |
pwl | value of PRINTWIDTHLIMIT |
fpp | value of FULLPRINTP |
data | number of inputs of PRINT |
Implements the primitive PRINT
. The only input contains the number of inputs which are pulled out from the stack.
atom_t rt_sum | ( | int | data) |
data | number of inputs of SUM |
Implements the primitive SUM
. The only input contains the number of inputs which are pulled out from the stack. Returns their sum
atom_t rt_product | ( | int | data) |
data | number of inputs of PRODUCT |
Implements the primitive PRODUCT
. The only input contains the number of inputs which are pulled out from the stack. Returns their product
data | argument in radians |
Outputs the sine of its input, which is taken in radians
data | argument in radians |
Outputs the cosine of its input, which is taken in radians
count | number of arguments (1 or 2) |
data1 | first argument |
data2 | second argument |
Outputs the arctangent, in degrees, of its input.
count | number of arguments (1 or 2) |
data1 | first argument |
data2 | second argument |
Outputs the arctangent, in radians, of its input.
static_link | static link from the current frame |
parent | current parent |
name | name of variable |
value | new value of variable |
Implements the primitive command MAKE
. This function is called when it is not possible to compile MAKE
. This happens when the name of the variable is an expression or is unknown. In such cases the search for the variable must be done in run-time.
Definition at line 1444 of file runtime.c.
cip | to ignote or not case in comparison |
w1 | first word |
w1_len | first word length |
w2 | second word |
w2_len | second word length |
Compares two numbers. If first is larger returns positive number, if first is smaller returns negative number, if both are equal returns 0
Definition at line 1586 of file runtime.c.
cip | value of CASEIGNOREDP |
data1 | first atom |
data2 | second atom |
Compares two atoms. if both are same types and have equal values returns positive number Returns 0 if atoms are diferent. Returns -1 if some error occurs
Definition at line 1666 of file runtime.c.
cip | value of CASEIGNOREDP |
data1 | first list |
data2 | second list |
Compares two lists. if both are equal returns not 0 number Returns 0 if lists are diferent.
cip | value of CASEIGNOREDP |
data1 | first word |
data2 | second word |
Implements compare operation BEFOREP Arguments must be words. Note that if the inputs are numbers, the result may not be the same as with LESSP; for example, BEFOREP 3 12 is false because 3 collates after 1.
Definition at line 1877 of file runtime.c.
atom_t rt_stop | ( | ) |
atom_t rt_and | ( | int | data) |
atom_t rt_or | ( | int | data) |
data | value to ignore |
Implementation of the primitive command IGNORE. The value in data is ignored and the returned value is the unbound atom
data | A list |
Inserts in result first letter of element if it is word or first element of element if it is list
data | word or list argument |
index | integer index of element to get |
If argument is word outputs the char at position index
if argument is list outputs the element at position index
Indexing starts at 1 in both cases
Definition at line 2395 of file runtime.c.
atom_t rt_if | ( | int | count) |
dummy implementation of primitive command DO.WHILE
condition | repetition condition |
commands | commands to repeat |
This is a dummy implementation, which is not used except for reserving a unique address for WHILE primitive.
commands | commands to repeat |
condition | repetition condition |
This is a dummy implementation, which is not used except for reserving a unique address for DO.WHILE primitive.
data | value to check |
source | source of the expression |
Checks whether the condition of a while
command is valid. Returns error atom is the result is error, or not boolean. Otherwise returns integer atoms containing 0 if the condition is false, and 1 otherwise. The source
parameter points to the source where the expression is called. It is used to locate the error position in case of errors.
Definition at line 2573 of file runtime.c.
void rt_repeat_enter | ( | int | frame, |
int | count | ||
) |
frame | base frame pointer |
count | number of requested repetitions |
This function creates a new repeat node and inserts it in the beginning of the repeat chain. The repeat-node contains the number of repetitions done so far (REPCOUNT) and left to do (REPLIMIT). The base pointer is used to access the repeat chain.
Definition at line 2617 of file runtime.c.
atom_t rt_repeat_exit | ( | int | frame) |
atom_t rt_repcount | ( | int | frame) |
void rt_forever_enter | ( | int | frame) |
frame | base frame pointer |
This function creates a new repeat node and inserts it in the beginning of the repeat chain. The repeat-node contains the number of repetitions done so far (REPCOUNT). The limit of repetitions (REPLIMIT) is set to 1, although this value is not used.
The base pointer is used to access the repeat chain.
Definition at line 2744 of file runtime.c.
cip | value of CASEIGNOREDP |
data | Data where will search |
elem | Element which will be searched |
true
if elem
is in data
or false
if is notImplements primitive predicate MEMBERP. If data
is list outputs true
if data
contains elem
as an element and false
if not If data
is a word outputs true
if elem
is char that is contained in the word data
Definition at line 2940 of file runtime.c.
atom_t rt_word | ( | int | data) |
data | number of inputs of WORD |
Implements the primitive WORD
. The only input contains the number of inputs which are pulled out from the stack. Returns new word whish is concatenation of all arguments. All arguments must be words.
Definition at line 3018 of file runtime.c.
atom_t rt_list | ( | int | data) |
data | number of inputs of LIST |
Implements the primitive LIST
. The only input contains the number of inputs which are pulled out from the stack. Returns new list with elements all arguments passed to the function.
atom_t rt_sent | ( | int | data) |
data | number of inputs of SE |
Implements the primitive SE
. The only input contains the number of inputs which are pulled out from the stack. Returns new list with elements all arguments passed to the function if they are not lists. If an argument is list its members are added to result
Definition at line 3135 of file runtime.c.
cip | value of CASEIGNOREDP |
data | Data where will search |
elem | Element which will be searched |
data
form first occurence of elem
to the endImplements primitive predicate MEMBER
. If data
is list outputs list containing all elements of data
after first occurence of elem
or empty list if elem
is not a member of data
If data
is a word outputs subword of data
starting from first occurence of elem
to the end or empty word if elem
is not a member of data
Definition at line 3547 of file runtime.c.
from | First element of the sequence |
to | Last element of the sequence |
count | Number of elements in the sequence |
count
elements between from
and to
Implements primitive predicate RSEQ
. Returns a list containing count
numbers between from
and to
. All numbers are equally spaced rational.
Definition at line 3675 of file runtime.c.
count | number of arguments (1 or 2) |
data1 | first argument |
data2 | second argument |
Implements the primitive RANDOM
If called with one arg outputs a nonnegative integer less than its input first
. If input is a list outputs randomly selected element from it If called with two arguments outputs a nonnegative random integer greater than or equal to data1
, and less than or equal to data2
Definition at line 3729 of file runtime.c.
count | number of arguments (0 or 1) |
seed | number to set random seed |
Implements the primitive RERANDOM
. Makes the results of RANDOM
reproducible.
pdl | value of PRINTDEPTHLIMIT |
pwl | value of PRINTWIDTHLIMIT |
fpp | value of FULLPRINTP |
data | number of inputs of SHOW |
Implements the primitive SHOW
. The only input contains the number of inputs which are pulled out from the stack. Prints input like PRINT
except that if an input is a list it is printed inside square brackets
Definition at line 3824 of file runtime.c.
pdl | value of PRINTDEPTHLIMIT |
pwl | value of PRINTWIDTHLIMIT |
fpp | value of FULLPRINTP |
data | number of inputs of TYPE |
Implements the primitive TYPE
. The only input contains the number of inputs which are pulled out from the stack. Prints input like PRINT
except that no new line is printed at the end and no spaces is printed between inputs.
num | number to be converted |
width | width in wich number will be printed |
precision | precision with wich number will be printed |
Implements the primitive FORM
. Outputs string representation of num
printed with precision
digits after decimal point and in at least width
chars If width
is more than number length some spaces are inserted in front of the string to fill width
chars
Definition at line 3910 of file runtime.c.
data | data to be formated |
format | formating string |
Implements the primitive FORMATTIME
. Outputs string representation of data
according to date/time format
formating string using strftime sintax.
Definition at line 4140 of file runtime.c.
data | data to test |
static_link | static link from the current frame |
parent | current parent |
true
if data
contains the name of a user-defined functionImplements primitive predicate DEFINED?. Returns true
if data
contains the name of a user-defined function or command.
data | data to test |
static_link | static link from the current frame |
parent | current parent |
true
if data
contains the name of a primitive functionImplements primitive predicate PRIMiTIVE?. Returns true
if data
contains the name of a primitive function or command.
data | data to test |
static_link | static link from the current frame |
parent | current parent |
true
if data
contains the name of a function or a commandImplements primitive predicate PROCEDURE?. Returns true
if data
contains the name of a function or a command.
var | the variable |
static_link | static link from the current frame |
parent | current parent |
This function looks for the value of a variable, somewhere in a stack frame. If the variable is global do not scan the stack.
static_link | static link from the current frame |
parent | current parent |
data | variable name |
Implements primitive THING. Returns the value of the variable which name is the value of data
. If there is no variable, then return error atom.
data | variable name |
static_link | static link from the current frame |
parent | current parent |
Implements the : syntax. Returns the value of the variable which name is following the colons. If there is no variable, then return error atom.
Definition at line 4450 of file runtime.c.
atom_t rt_check_inputs | ( | int | stack_frame) |
stack_frame | the current stack frame |
Checks all external parameters (inputs) whether any of them is error atom. If yes, then return this error. Otherwise, return unbound atom.
atom_t rt_bitand | ( | int | data) |
atom_t rt_bitor | ( | int | data) |
atom_t rt_bitxor | ( | int | data) |
cip | value of CASEIGNOREDP |
data | a list or word |
elem | an atom to be remowed from list or char to be removed from word |
Implement primitiwe function REMOVE
. Return a copy of data
where all occurrences of elem
are removed
Definition at line 4924 of file runtime.c.
atom_t rt_gensym | ( | ) |
Implements the primitive GENSYM
. Returns unique word each time it's called The words are like that G1
, G2
, G3
...
cip | value of CASEIGNOREDP |
data1 | String to be search |
data2 | String to search in |
Implements the primitive SUBSTRING
Returns the position of data1 in data2 if they are words (0 if not found), or generates an error is any of the inputs is not a word.
Definition at line 5266 of file runtime.c.
count | number of arguments (1 or 2) |
data1 | first parameter of THROW |
data2 | second parameter of THROW |
Implements the THROW primitive: THROW "TOPLEVEL THROW "SYSTEM THROW "ERROR (THROW "ERROR message) THROW tag (THROW tag value)
Definition at line 5409 of file runtime.c.
status | output status of data |
tag | catch's tag |
data | value to check |
Checks whether the result of a catch command. If the result is thrown by throw with the same tag, then mask the result and return the thrown data. Results are also masked if the catch tag is ERROR and the thrown calue is an error-meaning error atom.
In all other cases (thrown with another tag or error) return the same result.
Definition at line 5494 of file runtime.c.
atom_t rt_error | ( | ) |
Implementation of the primitive function ERROR
. Returns a list describing the last error (if any) and then clears the error.
atom_t rt_tag | ( | ) |
static_link | static link from the current frame |
parent | current parent |
data | name of variable |
source | source of GOTO |
Implementation of primitive GOTO
. Looks for the tag in the local variables. If not found then return an error atom. If found then return the VALUE of the tag-variable.
data | function name |
static_link | static link from the current frame |
parent | current parent |
Implements primitive TEXT
. Returns a list containing the commands of a given function. The list could be accepted by DEFINE
primitive.
Definition at line 5797 of file runtime.c.
data | function name |
static_link | static link from the current frame |
parent | current parent |
Implements primitive FULLTEXT
. Returns a word containing the function as source. If the source is not avaialble, then return the same result as TEXT.
data | data to run |
static_link | static link from the current frame |
parent | current parent |
mode | COMPILE_AS_FUNC or COMPILE_AS_PROC |
Implements primitive command/function RUN. Creates a local function with the given body, compiles it, and returns its var atom.
It is supposed that the caller of rt_run() should use the result to do the actual call of the newly compiled code.
If mode
is COMPILE_AS_PROC then the compiled code is a list of commands, otherwise it is a single expression.
Definition at line 5929 of file runtime.c.
data | data to run |
static_link | static link from the current frame |
parent | current parent |
mode | COMPILE_AS_FUNC or COMPILE_AS_PROC |
Implements primitive command/function RUNMACRO. Creates a local function with the given body, compiles it as a macro, and returns its var atom.
It is supposed that the caller of rt_runmacro() should use the result to do the actual call of the newly compiled code.
If mode
is COMPILE_AS_PROC then the compiled code is a list of commands, otherwise it is a single expression.
static_link | static link from the current frame |
parent | current parent |
prototype | pack prototype |
Implements primitive PACKSIZE. Returns the size of a pack in bytes. The pack is defined by a prototype list. If unknown type is reached then return error atom.
static_link | static link from the current frame |
parent | current parent |
data | data to pack |
prototype | pack prototype |
Implements primitive LISTTOBLOCK. Creates a memory atom big enough to hold all packed data.
static_link | static link from the current frame |
parent | current parent |
data | data to unpack |
prototype | pack prototype |
Implements primitive BLOCKTOLIST. It 'reads' packed data from memory atom and returns a list of unpacked data.
Definition at line 6506 of file runtime.c.
atom_t rt_listintoblock | ( | int | static_link, |
atom_t | parent, | ||
atom_t | prototype, | ||
atom_t | dest, | ||
atom_t | data | ||
) |
static_link | static link from the current frame |
parent | current parent |
dest | destination for packed data |
prototype | pack prototype |
data | data to pack |
Implements primitive PACKTO. Packs data into address specified by dest
which must be either a memory atom or an address (i.e. integer atom).
static_link | static link from the current frame |
parent | current parent |
data | function name |
Implements primitive FUNCADDR. Returns the address of the function which name is the value of data
. If there is no function, then return error atom.
static_link | static link from the current frame |
parent | current parent |
handle | handle of library |
prototype | external function prototype |
name | function to externalize |
Implements primitive EXTERNAL. Creates a trampoline code which prepares the stack by converting atoms into C data types.
atom_t ppp = prototype;
static_link | static link from the current frame |
parent | current parent |
prototype | internal function prototype |
name | function to internalize |
Implements primitive INTERNAL. Creates a trampoline code which prepares the stack by converting C data types into atoms.
static_link | static link from the current frame |
parent | current parent |
offset | offset in the stack frame |
frame | stack frame number |
Implements primitive _STACKFRAME. Goes to stack frame number FRAME (0 - current frame, 1 - parent frame, etc.) and returns the value at given OFFSET relative to the stack frame. OFFSET is given in term of words.
static_link | static link from the current frame |
parent | current parent |
offset | offset in the stack frame |
frame | stack frame number |
Implements primitive _STACKFRAMEATOM. Goes to stack frame number FRAME (0 - current frame, 1 - parent frame, etc.) and returns the value at given OFFSET relative to the stack frame. OFFSET is given in term of words. The value is assumed to be an atom.
atom_t rt_int3 | ( | ) |
This definition just reserves an address for rt_int3, so that compile_function() can easily detect it.
It is supposed that the caller of rt_run() should use the result to do the actual call of the newly compiled code.
If mode
is COMPILE_AS_PROC then the compiled code is a list of commands, otherwise it is a single expression.
data | name of file to load |
Implements primitive command LOAD. Creates a local function with the given body, compiles it, and
atom_t rt_commandline | ( | ) |
mode | open mode (read, write, ...) |
filename | name of binary file |
call_mode | COMPILE_AS_FUNC or COMPILE_AS_PROC |
Opens a file stream with given filename
and mode
. The filename is in an atom, while the mode is in a string.
Definition at line 6982 of file runtime.c.
mode | open mode (read, write, ...) |
filename | name of binary file |
call_mode | COMPILE_AS_FUNC or COMPILE_AS_PROC |
Implements primitive command OPENFILE. Opens a binary file with given filename
and mode
. Files opened with PACKOPEN should be processed with other PACK-aware functions and commands.
file | file handle or file name |
index | variable to store the index |
Searches for an opened file assuming that file
is a file handle. If it cannot be converted to a number, assumes it is a file name. Returns error atom (if getting the handle or the filename failed) or unbound atom if OK. In the latter case index
contains the index of the file. If index=-1, then the file is not opened so far.
If error atom is returns, it is already USEed, so the caller should not reUSE it.
Definition at line 7075 of file runtime.c.
static_link | static link from the current frame |
parent | current parent |
size | size of the block and number of bytes to read |
Implements primitive command READBLOCK. Reads block of bytes from a file opened with OPENFILE and set as reading file with SETREAD. The size of the data being read is measured in bytes. The read data is placed in a newly created memory block.
Returns an empty list if reading failed because of end of file, or if the reading is from the standard input.
Definition at line 7158 of file runtime.c.
block | block to read data to |
call_mode | COMPILE_AS_FUNC or COMPILE_AS_PROC |
Implements primitive command READINBLOCK. Reads block of bytes from a file opened with OPENFILE and set as reading file with SETREAD. The size of the data is taken from the memory block where the data is read.
Returns an empty list if reading failed because of end of file, or if the reading is from the standard input.
Definition at line 7232 of file runtime.c.
data | packed data to be written |
Implements primitive command WRITEBLOCK. Writes a block of bytes to a file opened with OPENFILE and set for writing with SETWRITE. The size of the data being written is taken from the memory block containing the packed data.
Returns an empty list if the output file is the standard output.
Definition at line 7286 of file runtime.c.
Implements the primitive function readchar
. Reads a single character from the read stream and outputs that character as a word.
atom_t rt_getenvs | ( | ) |
name | name of a folder to test |
Implements the primitive function folder
?. Returns "true if a folder with the given name
exists. Otherwise return "false
.
name | name/path of a file to test |
Implements the primitive function file
?. Returns "true if a file with the given name
or path exists. Otherwise return "false
.
name | name of a file |
Implements the primitive function filetimes
. Returns a list of three times (each represented as a number): [creation modification access] If the file does not exist or cannot be accessed then returns an empty list.
Definition at line 8093 of file runtime.c.
file | file to set as a reader |
Implements primitive command SETREAD. Sets a given file handle as a reader file (i.e. input stream). If file
is an empty list, then reset the input stream to the default one (usually stdin).
Definition at line 8217 of file runtime.c.
file | file to set as a writer |
Implements primitive command SETWRITE. Sets a given file handle as a writer file (i.e. output stream). If file
is an empty list, then reset the output stream to the default one (usually stdout).
Definition at line 8250 of file runtime.c.
atom_t rt_reader | ( | ) |
atom_t rt_writer | ( | ) |
atom_t rt_allopen | ( | ) |
atom_t rt_closeall | ( | ) |
pos | file position for the reader |
Implements primitive command SETREADPOS. Sets the reading position of the reader (i.e. input stream). Is pos>=0 the position is measured from the beginning of the file, otherwise - from the end.
Definition at line 8403 of file runtime.c.
atom_t rt_readpos | ( | ) |
pos | file position for the writer |
Implements primitive command SETWRITEPOS. Sets the writing position of the writer (i.e. output stream). Is pos>=0 the position is measured from the beginning of the file, otherwise - from the end.
atom_t rt_writepos | ( | ) |
atom_t rt_timezone | ( | ) |
atom_t rt_nodribble | ( | ) |
filename | name of dribble file |
Implements the primitive command DRIBBLE. Opens a dribble text file and returns unbound atom if opening is successful. If there is already a dribble file, first close it and then open a new dribble file.
Definition at line 8541 of file runtime.c.
char* file_names[FOPEN_MAX] = { [0 ... (FOPEN_MAX-1)]=NULL } |