5 (if (find-package "EXT")
8 (push :main-files-loaded
*features
*)
13 (defun compile-maxima ()
14 (make::make
:maxima
:compile t
)
15 (if (find-package "REGEXP")
17 (compile-file "clisp-regex")
18 (compile-file "cl-info") ))
23 (if (find-package "REGEXP")
28 (saveinitmem "maxima-clisp.mem"
29 :init-function
#'user
::run
)
34 (import '(system::getenv system
::socket-connect
) "MAXIMA")
37 (defun getpid ( &aux tem
)
39 (cond ((fboundp 'sys
::program-id
)
41 ; ;under windows above does not work.
42 ((consp (setq tem
(errset (system::getenv
"PID"))))
43 (read-from-string (car tem
)))
44 (t (format t
"using fake value for pid") -
1))
48 (or (fboundp 'commands1.orig
)
49 (setf (fdefinition 'commands1.orig
) (fdefinition 'sys
::commands1
)))
51 ;;add the quit maxima for the clisp debugger.
52 (defun sys::commands1
()
54 Quit to top :q Quit to MAXIMA top level"
55 (cons ":q" #'(lambda () (throw 'macsyma-quit nil
)))
61 (defun $system
(&rest x
) (system::run-shell-command
(apply '$sconcat x
)))
66 ;(make::make :maxima :compile t)
67 ;(load "init_max1.lisp")
69 ;(make::make :maxima )
70 ;(savemem "maxima.clisp")