home *** CD-ROM | disk | FTP | other *** search
- ; UNXINIT.L - Copyright (c) 1985 by David Morein.
- ; This is the initialization file for unxlisp,
- ; is read by unxlisp.exe upon boot-up, and
- ; contains the definitions of all of the built-in
- ; csubrs and cnsubrs.
- (global '=) ; create /= symbol
- (mcdq sys) ; create system command directory
- (mcdq cmd) ; which is /sys/cmd
- ;
- ; define user csubrs & cnsubrs:
- (putd 'BLICS '(csubr . 0x0))
- (global 'BLICS)
- (putd 'ALLOC '(csubr . 0xF2F06B3))
- (global 'ALLOC)
- (putd 'AND '(cnsubr . 0x1327000E))
- (global 'AND)
- (putd 'APPEND '(csubr . 0x12600002))
- (global 'APPEND)
- (putd 'APPLY '(csubr . 0x1327007E))
- (global 'APPLY)
- (putd 'ATOM '(csubr . 0x12910006))
- (global 'ATOM)
- (putd 'BAKTRCE '(csubr . 0x29600B5))
- (global 'BAKTRCE)
- (putd 'BAK_N '(csubr . 0x296000F))
- (global 'BAK_N)
- (putd 'BLOCK '(cnsubr . 0xB4200B9))
- (global 'BLOCK)
- (putd 'BOUNDP '(csubr . 0x12910036))
- (global 'BOUNDP)
- (putd 'BREAK '(csubr . 0xF60BA2))
- (global 'BREAK)
- (putd 'CAAAR '(csubr . 0x11B10222))
- (global 'CAAAR)
- (putd 'CAADR '(csubr . 0x11B1027F))
- (global 'CAADR)
- (putd 'CAAR '(csubr . 0x11B100B8))
- (global 'CAAR)
- (putd 'CADAR '(csubr . 0x11B102DC))
- (global 'CADAR)
- (putd 'CADDDR '(csubr . 0x11B10507))
- (global 'CADDDR)
- (putd 'CADDR '(csubr . 0x11B10336))
- (global 'CADDR)
- (putd 'CADR '(csubr . 0x11B1016B))
- (global 'CADR)
- (putd 'CAR '(csubr . 0x11B10004))
- (global 'CAR)
- (putd 'CATCH '(cnsubr . 0x4320076))
- (global 'CATCH)
- (putd 'CD '(csubr . 0x12070004))
- (global 'CD)
- (putd 'CDAAR '(csubr . 0x11B10393))
- (global 'CDAAR)
- (putd 'CDADR '(csubr . 0x11B103F0))
- (global 'CDADR)
- (putd 'CDAR '(csubr . 0x11B10111))
- (global 'CDAR)
- (putd 'CDDAR '(csubr . 0x11B1044D))
- (global 'CDDAR)
- (putd 'CDDDR '(csubr . 0x11B104AA))
- (global 'CDDDR)
- (putd 'CDDR '(csubr . 0x11B101C8))
- (global 'CDDR)
- (putd 'CDR '(csubr . 0x11B1005E))
- (global 'CDR)
- (putd 'CLOSE '(csubr . 0xFF50A98))
- (global 'CLOSE)
- (putd 'COND '(cnsubr . 0xF60412))
- (global 'COND)
- (putd 'CONS '(csubr . 0x1260013D))
- (global 'CONS)
- (putd 'CONSP '(csubr . 0x12910070))
- (global 'CONSP)
- (putd 'COPY-LIST '(csubr . 0x132701D9))
- (global 'COPY-LIST)
- (putd 'COPY-TREE '(csubr . 0x132701F6))
- (global 'COPY-TREE)
- (putd 'DECLARE '(cnsubr . 0xB420179))
- (global 'DECLARE)
- (putd 'DEF$ '(cnsubr . 0x13270213))
- (global 'DEF$)
- (putd 'DELETE '(csubr . 0x1260010B))
- (global 'DELETE)
- (putd 'DIRP '(csubr . 0x129100A8))
- (global 'DIRP)
- (putd 'DIV '(csubr . 0x13270241))
- (global 'DIV)
- (putd '% '(csubr . 0x1BF0C3F))
- (global '%)
- (putd 'EQ '(csubr . 0x129100C9))
- (global 'EQ)
- (putd 'EQL '(csubr . 0x12910104))
- (global 'EQL)
- (putd 'EQUAL '(csubr . 0x12910136))
- (global 'EQUAL)
- (putd 'EVAL '(csubr . 0x13270326))
- (global 'EVAL)
- (putd 'EVLIST '(csubr . 0x132702C7))
- (global 'EVLIST)
- (putd 'EXIT '(csubr . 0x132702E4))
- (global 'EXIT)
- (putd 'EXPLODE '(csubr . 0x12C70009))
- (global 'EXPLODE)
- (putd 'FBOUNDP '(csubr . 0x12910053))
- (global 'FBOUNDP)
- (putd 'FIXTOST '(csubr . 0x10BE032E))
- (global 'FIXTOST)
- (putd 'FLATSIZE '(csubr . 0x12600197))
- (global 'FLATSIZE)
- (putd 'FLOATP '(csubr . 0x12910198))
- (global 'FLOATP)
- (putd 'FUNCALL '(cnsubr . 0x13270343))
- (global 'FUNCALL)
- (putd 'GC '(csubr . 0x5A50834))
- (global 'GC)
- (putd 'GENSTRING '(csubr . 0x12C701C1))
- (global 'GENSTRING)
- (putd 'GET '(csubr . 0xA160007))
- (global 'GET)
- (putd 'GETD '(csubr . 0x132703A0))
- (global 'GETD)
- (putd 'SYMBOL-FUNCTION '(csubr . 0x132703A0))
- (global 'SYMBOL-FUNCTION)
- (putd 'GETMODE '(csubr . 0x120704BF))
- (global 'GETMODE)
- (putd 'GO '(cnsubr . 0x4320241))
- (global 'GO)
- (putd '> '(csubr . 0x1BF063A))
- (global '>)
- (putd '>= '(csubr . 0x1BF0655))
- (global '>=)
- (putd 'IF '(cnsubr . 0x13270429))
- (global 'IF)
- (putd 'IMPLODE-TO-STRING '(csubr . 0x12C700EF))
- (global 'IMPLODE-TO-STRING)
- (putd 'INITAMP '(csubr . 0x629072B))
- (global 'INITAMP)
- (putd 'INITKWD '(csubr . 0x629018F))
- (global 'INITKWD)
- (putd 'INITSPL '(csubr . 0x6290B8C))
- (global 'INITSPL)
- (putd 'INITTYP '(csubr . 0x62907D3))
- (global 'INITTYP)
- (putd 'INTEGERP '(csubr . 0x12910168))
- (global 'INTEGERP)
- (putd 'INTERNC '(csubr . 0x12C702C2))
- (global 'INTERNC)
- (putd 'LAST '(csubr . 0x126001BD))
- (global 'LAST)
- (putd 'LENGTH '(csubr . 0x1260022B))
- (global 'LENGTH)
- (putd 'LET '(cnsubr . 0xB420190))
- (global 'LET)
- (putd 'LET* '(cnsubr . 0xB4201AA))
- (global 'LET*)
- (putd 'LIST '(csubr . 0x1260020E))
- (global 'LIST)
- (putd 'LISTP '(csubr . 0x129101F8))
- (global 'LISTP)
- (putd 'LN '(csubr . 0x12070102))
- (global 'LN)
- (putd 'LOAD '(csubr . 0x132704C6))
- (global 'LOAD)
- (putd 'LOADV '(csubr . 0x132704E6))
- (global 'LOADV)
- (putd 'LOOP1 '(cnsubr . 0xB42017E))
- (global 'LOOP1)
- (putd 'LQ '(cnsubr . 0x13270507))
- (global 'LQ)
- (putd '< '(csubr . 0x1BF0604))
- (global '<)
- (putd '<= '(csubr . 0x1BF061F))
- (global '<=)
- (putd 'MACXPND '(csubr . 0xF60A51))
- (global 'MACXPND)
- (putd 'MAKE-SYMBOL '(csubr . 0x12C702E9))
- (global 'MAKE-SYMBOL)
- (putd 'MAPC '(csubr . 0x7A800CB))
- (global 'MAPC)
- (putd 'MAPCAN '(csubr . 0x7A8006A))
- (global 'MAPCAN)
- (putd 'MAPCAR '(csubr . 0x7A80007))
- (global 'MAPCAR)
- (putd 'MAPCON '(csubr . 0x7A8009A))
- (global 'MAPCON)
- (putd 'MAPL '(csubr . 0x7A8010D))
- (global 'MAPL)
- (putd 'MAPLIST '(csubr . 0x7A80038))
- (global 'MAPLIST)
- (putd 'MCD '(csubr . 0x12070193))
- (global 'MCD)
- (putd 'MD '(csubr . 0x120701B0))
- (global 'MD)
- (putd 'MDQ '(cnsubr . 0x120701EB))
- (global 'MDQ)
- (putd 'MEMBER '(csubr . 0x12600258))
- (global 'MEMBER)
- (putd 'MEMBQ '(csubr . 0x1260028A))
- (global 'MEMBQ)
- (putd 'MEMMAP '(csubr . 0x7FD0C7F))
- (global 'MEMMAP)
- (putd 'MOD '(csubr . 0x1327075A))
- (global 'MOD)
- (putd 'MULTIPLE-VALUE-BIND '(cnsubr . 0xF6068F))
- (global 'MULTIPLE-VALUE-BIND)
- (putd 'MULTIPLE-VALUE-PROG1 '(cnsubr . 0xF606F2))
- (global 'MULTIPLE-VALUE-PROG1)
- (putd 'MULTIPLE-VALUE-SETQ '(cnsubr . 0xF6077F))
- (global 'MULTIPLE-VALUE-SETQ)
- (putd 'MULTIPLE-VALUE-CALL '(cnsubr . 0xF6058B))
- (global 'MULTIPLE-VALUE-CALL)
- (putd 'MULTIPLE-VALUE-LIST '(cnsubr . 0xF60516))
- (global 'MULTIPLE-VALUE-LIST)
- (putd 'NCONC '(csubr . 0x126002BC))
- (global 'NCONC)
- (putd 'NEQ '(csubr . 0x1291027F))
- (global 'NEQ)
- (putd 'NULL '(csubr . 0x129102AF))
- (global 'NULL)
- (putd 'NUMBERP '(csubr . 0x129102DE))
- (global 'NUMBERP)
- (putd '= '(csubr . 0x1BF05CF))
- (global '=)
- (putd '/= '(csubr . 0x1BF05E9))
- (global '/=)
- (putd 'OPEN '(csubr . 0xFF502FA))
- (global 'OPEN)
- (putd 'OR '(cnsubr . 0x132707F1))
- (global 'OR)
- (putd 'PARENT '(csubr . 0x1207005C))
- (global 'PARENT)
- (putd 'PATHLST '(csubr . 0x12070080))
- (global 'PATHLST)
- (putd 'PATHNME '(csubr . 0x120700C1))
- (global 'PATHNME)
- (putd 'PATHSTR '(csubr . 0x12070021))
- (global 'PATHSTR)
- (putd 'PLIST '(csubr . 0xA160581))
- (global 'PLIST)
- (putd 'SYMBOL-PLIST '(csubr . 0xA160581))
- (global 'SYMBOL-PLIST)
- (putd 'POPPROP '(csubr . 0xA160038))
- (global 'POPPROP)
- (putd 'PRIN1 '(csubr . 0xA7901ED))
- (global 'PRIN1)
- (putd 'PRINC '(csubr . 0xA79021B))
- (global 'PRINC)
- (putd 'PRINT '(csubr . 0xA7901BA))
- (global 'PRINT)
- (putd 'PRNTFLP '(csubr . 0xA7904CF))
- (global 'PRNTFLP)
- (putd 'PROG1 '(cnsubr . 0xB420027))
- (global 'PROG1)
- (putd 'PROGN '(cnsubr . 0xB42000F))
- (global 'PROGN)
- (putd 'PUSHPROP '(csubr . 0xA16026D))
- (global 'PUSHPROP)
- (putd 'PTOSTR '(csubr . 0xA79000B))
- (global 'PTOSTR)
- (putd 'PUTPROP '(csubr . 0xA160069))
- (global 'PUTPROP)
- (putd 'READ '(csubr . 0x13270963))
- (global 'READ)
- (putd 'REMOB '(csubr . 0x12070208))
- (global 'REMOB)
- (putd 'REMOBQ '(cnsubr . 0x12070208))
- (global 'REMOBQ)
- (putd 'RM '(csubr . 0x12070208))
- (global 'RM)
- (putd 'RMQ '(cnsubr . 0x12070208))
- (global 'RMQ)
- (putd 'REMPROP '(csubr . 0xA1600B6))
- (global 'REMPROP)
- (putd 'RESTORE '(csubr . 0x13270ADB))
- (global 'RESTORE)
- (putd 'RETURN '(csubr . 0x432033C))
- (global 'RETURN)
- (putd 'REVERSE '(csubr . 0x13270982))
- (global 'REVERSE)
- (putd 'RFRMSTR '(csubr . 0xB910082))
- (global 'RFRMSTR)
- (putd 'RPLACA '(csubr . 0x1327086B))
- (global 'RPLACA)
- (putd 'RPLACD '(csubr . 0x132708E7))
- (global 'RPLACD)
- (putd 'SAVE '(csubr . 0x1327099F))
- (global 'SAVE)
- (putd 'SET '(csubr . 0x13270A33))
- (global 'SET)
- (putd 'SETMODE '(csubr . 0x1207050C))
- (global 'SETMODE)
- (putd 'SETPLIST '(csubr . 0xA1605C7))
- (global 'SETPLIST)
- (putd 'SETQ '(cnsubr . 0x13270A65))
- (global 'SETQ)
- (putd 'SHELL '(csubr . 0x13270B56))
- (global 'SHELL)
- (putd 'SRMDIR '(csubr . 0x12070371))
- (global 'SRMDIR)
- (putd 'STATUS '(csubr . 0xED20009))
- (global 'STATUS)
- (putd 'STRCAT '(csubr . 0x12C70306))
- (global 'STRCAT)
- (putd 'STRCMP '(csubr . 0x12C703EC))
- (global 'STRCMP)
- (putd 'STREQ '(csubr . 0x12C703B4))
- (global 'STREQ)
- (putd 'STRINGP '(csubr . 0x129101C8))
- (global 'STRINGP)
- (putd 'STRLEN '(csubr . 0x12C70482))
- (global 'STRLEN)
- (putd 'STRXTRC '(csubr . 0x12C70540))
- (global 'STRXTRC)
- (putd 'SYMBOLP '(csubr . 0x129102FB))
- (global 'SYMBOLP)
- (putd 'SYMBOL-NAME '(csubr . 0x12C704D3))
- (global 'SYMBOL-NAME)
- (putd 'SYSTRCE '(csubr . 0xF601C7))
- (global 'SYSTRCE)
- (putd 'TAGBODY '(cnsubr . 0xB42026D))
- (global 'TAGBODY)
- (putd 'TERPRI '(csubr . 0x1327085C))
- (global 'TERPRI)
- (putd 'THROW '(cnsubr . 0x432009A))
- (global 'THROW)
- (putd '* '(csubr . 0x1BF0079))
- (global '*)
- (putd 'TRUE-LISTP '(csubr . 0x12910252))
- (global 'TRUE-LISTP)
- (putd 'TYPE-OF '(csubr . 0x11A60003))
- (global 'TYPE-OF)
- (putd 'UNPRINC '(csubr . 0xA790152))
- (global 'UNPRINC)
- (putd 'UNPRINT '(csubr . 0xA7900F5))
- (global 'UNPRINT)
- (putd 'VALUES-LIST '(csubr . 0xF604FA))
- (global 'VALUES-LIST)
- (putd 'VALUES '(csubr . 0xF60880))
- (global 'VALUES)
- (putd 'VARP '(csubr . 0x1291032B))
- (global 'VARP)
- (putd 'ZEROP '(csubr . 0x1291034C))
- (global 'ZEROP)
- (initspl) ;initialize special symbols
- (cd $$) ;get back to /sys
- (/sys/cmd/mdq const) ;create /sys/const
- (/sys/cmd/status 400 '(/sys/cmd /sys/const)); set rsp
- (cdq /sys/const) ;get back into /sys/const
- (global 'conwidth 'conheight 'top_level_hook 'pp_hook 'smash_hook)
- (global 'break_hook 'control_c_hook 'eval_hook 'full_path_flag)
- (global 'dir_prefix_flag 'error_hook 'gc_verbosity 'float_format )
- (global 'comma_hook 'comma_at_hook 'error_label 'current_dir)
- (global 'break_level 'x_position 'y_position 'reader_search_path)
- (global 'back_quote_hook 'control_c_label 'pcount_flag)
- (global 'multiple-values-limit)
- (setq conwidth 80) ;set console width to 80 chars
- (setq conheight 25) ;set console height to 25 lines
- (setq multiple-values-limit 40) ;
- (setq top_level_hook 0) ;top level vector
- (setq pp_hook 1) ;pp_hook vector
- (setq smash_hook 2) ;smash vector
- (setq break_hook 3) ;break hook vector
- (setq eval_hook 4) ;eval hook vector
- (setq full_path_flag 5) ;full path vector
- (setq dir_prefix_flag 6) ;dir prefix vector
- (setq error_hook 7) ;error hook vector
- (setq gc_verbosity 8) ;gc verbosity vector
- (setq control_c_hook 9) ;^C vector
- (setq back_quote_hook 10) ;backquote vector
- (setq comma_hook 11) ;comma vector
- (setq comma_at_hook 12) ;comma at vector
- (setq error_label 13) ;error label vector
- (setq pcount_flag 14) ;paren counting flag
- (setq current_dir 100) ;current dir vector
- (setq break_level 200) ;break level vector
- (setq x_position 201) ;x-position of cursor
- (setq y_position 202) ;y-position of cursor
- (setq reader_search_path 400) ;rsp vector
- (setq float_format 500) ;floating format vector
- (/sys/cmd/mdq lambda-list-keywords) ;make ampersand directory
- (cdq lambda-list-keywords) ;change to it
- (initamp) ;initialize ampersand symbols
- (cdq /) ;get back to root
- (mdq keyword) ;make keyword directory
- (cdq keyword) ;change to it
- (initkwd) ;initialize keyword symbols
- (status reader_search_path
- '(/sys/const/lambda-list-keywords /sys/cmd /sys/const)); set rsp
- (cdq /sys/const) ;change to const directory.
- (setq type-size (inittyp)) ;initialize type property
- (cdq /) ;return to root
- (cdq /sys/cmd) ;get back to /sys
- (putd 'not (getd 'null)) ;not & null are synonyms
- (global 'not 'def)
- (putd 'def '(nlambda (x y)
- (progn
- (putd x y)
- x)))
- (load "bakquote.l") ;load backquote macros
- (load "misc.l") ;load miscellaneous functions
- (load "dirlib.l") ;load directory functions
- (load "error.l") ;load error handler
- (load "setf.l") ;load SETF macros
- (load "fmtio.l") ;load formatted i/o
- (load "debug.l") ;load debugger
- (cdq /) ;get back to root
- (mcdq usr) ;create /usr directory
- (mcdq login) ;create /usr/login directory
- (fin)
-