Skip to content

Commit

Permalink
Add :init to ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Apr 12, 2019
1 parent a54cf09 commit dd90d9f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/eus.init.l
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
( "readmacro" "object" "packsym" "common"
"constants"
"stream" "string" "loader" "pprint" "process"
"hashtab" "array" "mathtran" "eusdebug" "eusforeign"
"hashtab" "array" "mathtran" "eusdebug" "eusforeign" "extnum"
"par"
;; TOPLEVEL
"tty" "history" "toplevel"
Expand Down
1 change: 1 addition & 0 deletions lisp/Makefile.Alpha
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ $(LDIR)/string.l:
$(LDIR)/array.l:
$(LDIR)/hashtab.l:
$(LDIR)/eusforeign.l:
$(LDIR)/extnum.l:
$(LDIR)/mathtran.l:
$(LDIR)/toplevel.l:
$(LDIR)/tty.l:
Expand Down
5 changes: 4 additions & 1 deletion lisp/Makefile.SunOS4.sub
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ LOBJECTS= $(OBJDIR)/readmacro.o\
$(OBJDIR)/coordinates.o \
$(OBJDIR)/string.o $(OBJDIR)/array.o \
$(OBJDIR)/hashtab.o \
$(OBJDIR)/eusforeign.o $(OBJDIR)/mathtran.o \
$(OBJDIR)/eusforeign.o $(OBJDIR)/extnum.o \
$(OBJDIR)/mathtran.o \
$(OBJDIR)/toplevel.o \
$(OBJDIR)/tty.o $(OBJDIR)/history.o \
$(OBJDIR)/eushelp.o
Expand Down Expand Up @@ -370,6 +371,7 @@ eustag :
$(EUSDIR)/$(LDIR)/toplevel.l \
$(EUSDIR)/$(LDIR)/hashtab.l \
$(EUSDIR)/$(LDIR)/eusforeign.l \
$(EUSDIR)/$(LDIR)/extnum.l \
$(EUSDIR)/$(LDIR)/mathtran.l \
$(EUSDIR)/$(GEODIR)/geopack.l \
$(EUSDIR)/$(GEODIR)/geobody.l \
Expand Down Expand Up @@ -437,6 +439,7 @@ $(OBJDIR)/string.o: $(LDIR)/string.l
$(OBJDIR)/array.o: $(LDIR)/array.l
$(OBJDIR)/hashtab.o: $(LDIR)/hashtab.l
$(OBJDIR)/eusforeign.o: $(LDIR)/eusforeign.l
$(OBJDIR)/extnum.o: $(LDIR)/extnum.l
$(OBJDIR)/mathtran.o: $(LDIR)/mathtran.l
$(OBJDIR)/toplevel.o: $(LDIR)/toplevel.l
$(OBJDIR)/tty.o: $(LDIR)/tty.l
Expand Down
5 changes: 4 additions & 1 deletion lisp/Makefile.generic2
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ LOBJECTS= $(OBJDIR)/readmacro.o\
$(OBJDIR)/coordinates.o \
$(OBJDIR)/string.o $(OBJDIR)/array.o \
$(OBJDIR)/hashtab.o \
$(OBJDIR)/eusforeign.o $(OBJDIR)/mathtran.o \
$(OBJDIR)/eusforeign.o $(OBJDIR)/extnum.o \
$(OBJDIR)/mathtran.o \
$(OBJDIR)/toplevel.o \
$(OBJDIR)/tty.o $(OBJDIR)/history.o \
$(OBJDIR)/eushelp.o
Expand Down Expand Up @@ -384,6 +385,7 @@ eustag :
$(EUSDIR)/$(LDIR)/toplevel.l \
$(EUSDIR)/$(LDIR)/hashtab.l \
$(EUSDIR)/$(LDIR)/eusforeign.l \
$(EUSDIR)/$(LDIR)/extnum.l \
$(EUSDIR)/$(LDIR)/mathtran.l \
$(EUSDIR)/$(GEODIR)/geopack.l \
$(EUSDIR)/$(GEODIR)/geobody.l \
Expand Down Expand Up @@ -453,6 +455,7 @@ $(OBJDIR)/string.o: $(LDIR)/string.l
$(OBJDIR)/array.o: $(LDIR)/array.l
$(OBJDIR)/hashtab.o: $(LDIR)/hashtab.l
$(OBJDIR)/eusforeign.o: $(LDIR)/eusforeign.l
$(OBJDIR)/extnum.o: $(LDIR)/extnum.l
$(OBJDIR)/mathtran.o: $(LDIR)/mathtran.l
$(OBJDIR)/toplevel.o: $(LDIR)/toplevel.l
$(OBJDIR)/tty.o: $(LDIR)/tty.l
Expand Down
2 changes: 1 addition & 1 deletion lisp/l/compfiles.l
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(compile-file "process.l" :cc nil)
(compile-file "hashtab.l" :cc nil)
(compile-file "array.l" :cc nil)
(compile-file "mathtran.l" :cc nil)
(compile-file "extnum.l" :cc nil)
(compile-file "mathtran.l" :cc nil)
(compile-file "eusdebug.l" :cc nil)
(in-package "GEO")
Expand Down
1 change: 1 addition & 0 deletions lisp/l/eusstart.l
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@
(system::exec-module-init "mathtran" "l/mathtran.l")
(system::exec-module-init "eusdebug" "l/eusdebug.l")
(system::exec-module-init "eusforeign" "l/eusforeign.l")
(system::exec-module-init "extnum" "l/extnum.l")
(unless (find-package "GEOMETRY")
(make-package "GEOMETRY" :nicknames '("GEO"))
(in-package "GEOMETRY"))
Expand Down
6 changes: 4 additions & 2 deletions lisp/l/extnum.l
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
(defmethod ratio
(:prin1 (&optional (strm t))
(format strm "~d/~d" numerator denominator))
(:init (num denom)
(setq numerator num
denominator denom)
self)
)
3 changes: 2 additions & 1 deletion lisp/tool/compile_l.l
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
(comp::compile-file-if-src-newer "string.l" *objdir*)
(comp::compile-file-if-src-newer "array.l" *objdir*)
(comp::compile-file-if-src-newer "hashtab.l" *objdir*)
(comp::compile-file-if-src-newer "eusforeign.l" *objdir*)
(comp::compile-file-if-src-newer "eusforeign.l" *objdir*)
(comp::compile-file-if-src-newer "extnum.l" *objdir*)
(comp::compile-file-if-src-newer "mathtran.l" *objdir*)
(comp::compile-file-if-src-newer "toplevel.l" *objdir*)
(comp::compile-file-if-src-newer "tty.l" *objdir*)
Expand Down

0 comments on commit dd90d9f

Please sign in to comment.