From 499af282987474f90afbe26630addeefcab5b9a6 Mon Sep 17 00:00:00 2001 From: cvs Date: Fri, 25 Feb 2000 16:21:41 +0000 Subject: [PATCH] 1.) Modified macro system as to use only Sicsunknown for resolving unknown Tcl commands. Removed the broken obTcl object system and replaced it by the object.tcl system from sntl. Redid the scan command with this. The end of this is that SICS is now independent of the tcl version and works with tcl 8.0 thus giving a factor of up to 10 in script execution speed. 2.) Added driving an angle through a translation table (object lin2ang) --- Makefile | 7 +- base.tcl | 791 ------------------------------------------ danu.dat | 2 +- inherit.tcl | 297 ---------------- lin2ang.c | 273 +++++++++++++++ lin2ang.h | 23 ++ lin2ang.w | 57 +++ macro.c | 39 ++- object.tcl | 305 ++++++++++++++++ obtcl.tcl | 540 ---------------------------- ofac.c | 3 + sicsstatus.tcl | 68 ++-- tcl/base.tcl | 791 ------------------------------------------ tcl/base8.tcl | 791 ------------------------------------------ tcl/cscan.tcl | 126 ------- tcl/inherit.tcl | 297 ---------------- tcl/inherit8.tcl | 297 ---------------- tcl/init.tcl | 616 -------------------------------- tcl/init8.c | 293 ---------------- tcl/init8.tcl | 617 -------------------------------- tcl/initcl.c | 292 ---------------- tcl/obtcl.tcl | 540 ---------------------------- tcl/obtcl8.tcl | 540 ---------------------------- tcl/obtcl_mkindex | 9 - tcl/scancom.tcl | 490 ++++++++++++++++++++++++++ tcl/tcl8/base8.tcl | 791 ------------------------------------------ tcl/tcl8/inherit8.tcl | 297 ---------------- tcl/tcl8/init8.tcl | 617 -------------------------------- tcl/tcl8/obtcl8.tcl | 540 ---------------------------- tcl/tcl8/test.tst | 112 ------ tcl/tcl8/topsicom.tcl | 771 ---------------------------------------- tcl/tcl8/utils.tcl | 398 --------------------- tcl/tclIndex | 116 ------- tcl/topsicom.tcl | 394 --------------------- tcl/utils.tcl | 398 --------------------- test.tcl | 21 +- utils.tcl | 398 --------------------- 37 files changed, 1221 insertions(+), 11736 deletions(-) delete mode 100644 base.tcl delete mode 100644 inherit.tcl create mode 100644 lin2ang.c create mode 100644 lin2ang.h create mode 100644 lin2ang.w create mode 100755 object.tcl delete mode 100644 obtcl.tcl delete mode 100644 tcl/base.tcl delete mode 100644 tcl/base8.tcl delete mode 100644 tcl/cscan.tcl delete mode 100644 tcl/inherit.tcl delete mode 100644 tcl/inherit8.tcl delete mode 100644 tcl/init.tcl delete mode 100644 tcl/init8.c delete mode 100644 tcl/init8.tcl delete mode 100644 tcl/initcl.c delete mode 100644 tcl/obtcl.tcl delete mode 100644 tcl/obtcl8.tcl delete mode 100755 tcl/obtcl_mkindex create mode 100644 tcl/scancom.tcl delete mode 100644 tcl/tcl8/base8.tcl delete mode 100644 tcl/tcl8/inherit8.tcl delete mode 100644 tcl/tcl8/init8.tcl delete mode 100644 tcl/tcl8/obtcl8.tcl delete mode 100644 tcl/tcl8/test.tst delete mode 100644 tcl/tcl8/topsicom.tcl delete mode 100644 tcl/tcl8/utils.tcl delete mode 100644 tcl/tclIndex delete mode 100644 tcl/topsicom.tcl delete mode 100644 tcl/utils.tcl delete mode 100644 utils.tcl diff --git a/Makefile b/Makefile index 55d23c64..51552d0f 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,6 @@ BINTARGET=$(HOME)/bin/sics #FORTIFYOBJ = fortify.o strdup.o FORTIFYOBJ = -TCLOBJ=initcl.o -#TCLOBJ=init8.o - #----- comment and uncomment according if a difrac version is required #DIFOBJ= #DIFIL= @@ -28,7 +25,7 @@ SOBJ = network.o ifile.o conman.o SCinter.o splitter.o passwd.o \ sicsexit.o costa.o task.o $(FORTIFYOBJ)\ macro.o ofac.o obpar.o obdes.o drive.o status.o intserv.o \ devexec.o mumo.o mumoconf.o selector.o selvar.o fupa.o lld.o \ - lld_blob.o buffer.o strrepl.o ruli.o $(TCLOBJ) \ + lld_blob.o buffer.o strrepl.o ruli.o lin2ang.o \ script.o o2t.o alias.o napi.o nxdata.o stringdict.o sdynar.o\ histmem.o histdriv.o histsim.o sinqhmdriv.o interface.o callback.o \ event.o emon.o evcontroller.o evdriver.o simev.o perfmon.o \ @@ -55,7 +52,7 @@ CC=cc EXTRA= CFLAGS = -I$(HDFROOT)/include -Ihardsup -std1 -g -warnprotos -c #CFLAGS = -I$(HDFROOT)/include -DFORTIFY -Ihardsup -g -std1 -warnprotos -c -LIBS = -L$(HDFROOT)/lib -Lhardsup -lhlib -ltcl7.6 -lfor -lmfhdf -ldf \ +LIBS = -L$(HDFROOT)/lib -Lhardsup -lhlib -ltcl8.0 -lfor -lmfhdf -ldf \ $(HDFROOT)/lib/libjpeg.a -lz -lm -ll -lc #------- for cygnus diff --git a/base.tcl b/base.tcl deleted file mode 100644 index 2f39a1e7..00000000 --- a/base.tcl +++ /dev/null @@ -1,791 +0,0 @@ -crunch_skip begin -DOC "class Base" { - NAME - Base - The basic class inherited by all obTcl objects - - SYNOPSIS - Base new - - Creates an object of the simplest possible class. - - DESCRIPTION - All classes inherits the Base class automatically. The Base class - provides methods that are essential for manipulating obTcl-objects, - such as `info' and `destroy'. - - METHODS - Base provides the following generic methods to all objects: - - new - EXPERIMENTAL! Arranges to create a new object of - the class of the invoking object. - - instance - EXPERIMENTAL! Arranges to create a new object of - the class of the invoking object. This method - differs from `new' by NOT automatically invoking - the `init' method of the new object. - One possible usage: Create a replacement for the - normal class object -a replacement which has no - hard-coded methods (this will need careful design - though). - - init - Does nothing. The init method is automatically - invoked whenever an object is created with `new'. - - destroy - Frees all instance variables of the object, and - the object itself. - - class - Returns the class of the object. - - set name ?value? - - Sets the instance variable `name' to value. - If no value is specified, the current value is - returned. Mainly used for debugging purposes. - - info - Returns information about the object. See INFO - below. - - eval