From 9db87b545def5d31a64608f2eb082d915ad5efa4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Fri, 28 Jun 2013 10:41:24 +0200 Subject: [PATCH 1/1] Added upstream version. --- CHANGES | 61 ++ Dir | 11 + INSTALL | 42 + InstallVLP.html | 70 ++ Makefile | 74 ++ configure | 11 + doc/ansi.html | 24 + doc/gui.html | 12 + doc/gui1.html | 92 ++ doc/gui2.html | 22 + doc/iiuwgraph.html | 29 + doc/index.html | 28 + doc/langg.html | 13 + doc/machine.html | 37 + doc/userg.html | 13 + edit/Makefile | 66 ++ edit/editor.cpp | 596 +++++++++++ edit/editor.h | 99 ++ edit/mfile | 55 + examp/BinA.log | Bin 0 -> 229 bytes examp/ale.log | Bin 0 -> 225 bytes examp/anon.log | Bin 0 -> 213 bytes examp/ansitest.log | Bin 0 -> 1512 bytes examp/arrnon.log | Bin 0 -> 247 bytes examp/asyg.log | Bin 0 -> 316 bytes examp/azero.log | Bin 0 -> 110 bytes examp/classes/ansi.inc | Bin 0 -> 675 bytes examp/classes/gui.inc | Bin 0 -> 3660 bytes examp/classes/machine.inc | Bin 0 -> 1940 bytes examp/drugi.log | Bin 0 -> 1311 bytes examp/first.log | Bin 0 -> 801 bytes examp/five.log | Bin 0 -> 1216 bytes examp/geometria.log | 780 +++++++++++++++ examp/graf.dta | Bin 0 -> 64 bytes examp/graf.txt | 119 +++ examp/graf1.dta | Bin 0 -> 84 bytes examp/graf2.dta | Bin 0 -> 68 bytes examp/graf96.log | 1995 +++++++++++++++++++++++++++++++++++++ examp/guitest.log | Bin 0 -> 5596 bytes examp/illdet.log | Bin 0 -> 225 bytes examp/illkill.log | Bin 0 -> 164 bytes examp/lift4.log | 892 +++++++++++++++++ examp/lift5.log | 900 +++++++++++++++++ examp/logo.bmp | Bin 0 -> 18158 bytes examp/mtest.log | 35 + examp/piszczyt.log | 431 ++++++++ examp/reftonone.log | Bin 0 -> 218 bytes examp/remote.log | Bin 0 -> 588 bytes examp/rozdzPun1.log | 840 ++++++++++++++++ examp/spooler.log | Bin 0 -> 441 bytes examp/taktto1.log | Bin 0 -> 2835 bytes examp/teststring.log | Bin 0 -> 400 bytes examp/trzeci.log | Bin 0 -> 1303 bytes graph/Makefile | 59 ++ graph/loggraph.cpp | 1176 ++++++++++++++++++++++ graph/mfile | 48 + graph/socu.h | 4 + head/comm.h | 248 +++++ head/genint1.h | 177 ++++ help/Makefile | 59 ++ help/help.cpp | 567 +++++++++++ help/mfile | 48 + inst/INSTALL | 10 + inst/LICENSE.GNU | 347 +++++++ inst/LICENSE.QT | 70 ++ inst/close.bmp | Bin 0 -> 182 bytes inst/gen | Bin 0 -> 33588 bytes inst/loglan | Bin 0 -> 246740 bytes inst/logo.bmp | Bin 0 -> 18158 bytes installQT.html | 47 + int/Makefile | 69 ++ int/cint.c | 689 +++++++++++++ int/compact.c | 763 ++++++++++++++ int/control.c | 421 ++++++++ int/depend.h | 173 ++++ int/eventque.h | 144 +++ int/execute.c | 611 ++++++++++++ int/fileio.c | 356 +++++++ int/genint.h | 47 + int/genint1.h | 169 ++++ int/handler.c | 225 +++++ int/int.h | 182 ++++ int/intdt.c | 96 ++ int/intproto.h | 206 ++++ int/memory.c | 225 +++++ int/nonstand.c | 456 +++++++++ int/nonstand.h | 105 ++ int/object.c | 195 ++++ int/procaddr.c | 212 ++++ int/process.c | 652 ++++++++++++ int/process.h | 131 +++ int/queue.c | 112 +++ int/queue.h | 40 + int/rpcall.c | 265 +++++ int/runsys.c | 297 ++++++ int/socu.h | 4 + int/standard.c | 459 +++++++++ int/typchk.c | 383 +++++++ int/util.c | 176 ++++ kernel/Makefile | 59 ++ kernel/kernel.cpp | 1306 ++++++++++++++++++++++++ kernel/mfile | 48 + kernel/socu.h | 4 + lgconfig/Makefile | 60 ++ lgconfig/lgconfig.cpp | 323 ++++++ lgconfig/mfile | 49 + mfile | 63 ++ net/Makefile | 60 ++ net/lognet.cpp | 1013 +++++++++++++++++++ net/mfile | 49 + net/soct.h | 6 + net/socu.h | 4 + preproc/Makefile | 59 ++ preproc/mfile | 48 + preproc/prep.cpp | 235 +++++ 115 files changed, 21456 insertions(+) create mode 100644 CHANGES create mode 100644 Dir create mode 100644 INSTALL create mode 100644 InstallVLP.html create mode 100644 Makefile create mode 100755 configure create mode 100644 doc/ansi.html create mode 100644 doc/gui.html create mode 100644 doc/gui1.html create mode 100644 doc/gui2.html create mode 100644 doc/iiuwgraph.html create mode 100644 doc/index.html create mode 100644 doc/langg.html create mode 100644 doc/machine.html create mode 100644 doc/userg.html create mode 100644 edit/Makefile create mode 100644 edit/editor.cpp create mode 100644 edit/editor.h create mode 100644 edit/mfile create mode 100644 examp/BinA.log create mode 100644 examp/ale.log create mode 100644 examp/anon.log create mode 100644 examp/ansitest.log create mode 100644 examp/arrnon.log create mode 100644 examp/asyg.log create mode 100644 examp/azero.log create mode 100644 examp/classes/ansi.inc create mode 100644 examp/classes/gui.inc create mode 100644 examp/classes/machine.inc create mode 100644 examp/drugi.log create mode 100644 examp/first.log create mode 100644 examp/five.log create mode 100644 examp/geometria.log create mode 100644 examp/graf.dta create mode 100644 examp/graf.txt create mode 100644 examp/graf1.dta create mode 100644 examp/graf2.dta create mode 100644 examp/graf96.log create mode 100644 examp/guitest.log create mode 100644 examp/illdet.log create mode 100644 examp/illkill.log create mode 100644 examp/lift4.log create mode 100644 examp/lift5.log create mode 100644 examp/logo.bmp create mode 100644 examp/mtest.log create mode 100644 examp/piszczyt.log create mode 100644 examp/reftonone.log create mode 100644 examp/remote.log create mode 100644 examp/rozdzPun1.log create mode 100644 examp/spooler.log create mode 100644 examp/taktto1.log create mode 100644 examp/teststring.log create mode 100644 examp/trzeci.log create mode 100644 graph/Makefile create mode 100644 graph/loggraph.cpp create mode 100644 graph/mfile create mode 100644 graph/socu.h create mode 100644 head/comm.h create mode 100644 head/genint1.h create mode 100644 help/Makefile create mode 100644 help/help.cpp create mode 100644 help/mfile create mode 100644 inst/INSTALL create mode 100644 inst/LICENSE.GNU create mode 100644 inst/LICENSE.QT create mode 100644 inst/close.bmp create mode 100755 inst/gen create mode 100755 inst/loglan create mode 100644 inst/logo.bmp create mode 100644 installQT.html create mode 100644 int/Makefile create mode 100644 int/cint.c create mode 100644 int/compact.c create mode 100644 int/control.c create mode 100644 int/depend.h create mode 100644 int/eventque.h create mode 100644 int/execute.c create mode 100644 int/fileio.c create mode 100644 int/genint.h create mode 100644 int/genint1.h create mode 100644 int/handler.c create mode 100644 int/int.h create mode 100644 int/intdt.c create mode 100644 int/intproto.h create mode 100644 int/memory.c create mode 100644 int/nonstand.c create mode 100644 int/nonstand.h create mode 100644 int/object.c create mode 100644 int/procaddr.c create mode 100644 int/process.c create mode 100644 int/process.h create mode 100644 int/queue.c create mode 100644 int/queue.h create mode 100644 int/rpcall.c create mode 100644 int/runsys.c create mode 100644 int/socu.h create mode 100644 int/standard.c create mode 100644 int/typchk.c create mode 100644 int/util.c create mode 100644 kernel/Makefile create mode 100644 kernel/kernel.cpp create mode 100644 kernel/mfile create mode 100644 kernel/socu.h create mode 100644 lgconfig/Makefile create mode 100644 lgconfig/lgconfig.cpp create mode 100644 lgconfig/mfile create mode 100644 mfile create mode 100644 net/Makefile create mode 100644 net/lognet.cpp create mode 100644 net/mfile create mode 100644 net/soct.h create mode 100644 net/socu.h create mode 100644 preproc/Makefile create mode 100644 preproc/mfile create mode 100644 preproc/prep.cpp diff --git a/CHANGES b/CHANGES new file mode 100644 index 0000000..33e4815 --- /dev/null +++ b/CHANGES @@ -0,0 +1,61 @@ +1997.11.26 + + loggraph: Dodany nowy komunikat GRAPH_MAGIC (magiczna grafika!!) + logint: HFONT8 wysyla GRAPH_MAGIC + logedit: zmiana czcionki w menu + +1997.11.27 + + loggraph:1) poprawione odczytywanie znaku z klawiatury, poprzednio + gubil znaki !!! + 2) poprawione readln + logedit: rozbudowany edytor- dodane "find", "copy", "paste","save as" + +1997.12.01 + + loggraph: 1) skrocona MESSAGE dla graph - G_MESSAGE + 2) poprawione inkey - wczesniej blokowalo! + +1997.12.03 + logedit: wypisuje pozycje kursora + logint: wypisywanie bledow na zasobie graficznym a nie na stderr + +1997.12.05 + logcomp: preprocesor dla kompilatora, mozna uzywac #include + logedit: poprawiony wskaznik pozycji kursora + +1997.12.12 + logker: zmienione dlugosci cmd dla funkcji 'system' (byly za male!) + logker: zrobione opcje "Connect" i "Info" + logedit: wyrzucona opcja 'Help' i dodana do logker + loghelp: mikro- przegladarka do HTML, + +1997.12.15 + inkey: zwraca kody klawiszy funkcyjnych + klasa "Machine": klasa funkcji zwracajacych informacje o Maszynie + Wirtualnej + dokumentacja: uzupelniona dokumentacja do klasy Machine, ANSI i inkey + +1998.01.07 + Zmieniona koncepcja modulu GRAPH, teraz kazdy interpreter ma swoj + wlasny modul GRAPH !!! + +1998.01.09 + Poczatek klasy GUI: Read/Write Int, Text, Real, Char + +1998.01.10 + Dodane: PutImgFile do klasy GUI kopiuje .BMP,.XPM .GIF + +1998.01.12 + Zrobiona klasa GUI + +1998.01.13 + Poprawione accept() w cint.c, bo Linux ma tu blad! + +1998.01.14 + Zmieniony sposob transmisji pliku z kodem, w zwiazku z tym + zmniejszenie dlugosci struktury MESSAGE + +1998.01.15 + Dolaczona opcja TCP_NODELAY do wszystkich gniazdek, chyba chodzi + szybciej! diff --git a/Dir b/Dir new file mode 100644 index 0000000..dd5c850 --- /dev/null +++ b/Dir @@ -0,0 +1,11 @@ +### Includes for QT library +QINC=/usr/lib/qt-1.45/include + +### QT library directory +QLIB=/usr/lib/qt-1.45/lib + +### moc compiler directory +MOCDIR=/usr/lib/qt-1.45/bin + +### Install directory +INSTALLDIR=/usr/local/vlp diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..51765f9 --- /dev/null +++ b/INSTALL @@ -0,0 +1,42 @@ +Pre-requisite: + Prior To compile and run Virtual LOGLAN Processor you should compile + the QT library.(You may consult the file "inst/LICENSE.QT" for more informations + about the QT. + Read the file + installQT.html + and follow the instructions contained there. + + + +First, you MUST edit the file "Dir" and set the proper directories: + +QINC - directory where the QT library includes are stored +QLIB - directory where you have your QT library (ver. 1.30) +MOCDIR - QT library has a special compiler named "moc", write + the directory where this compiler is stored + +INSTALLDIR - directory where the Virtual LOGLAN Processor will be + installed + +Next, run the following: + + ./configure + +to configure source files + + make + +to build VLP and + + make install + +to install Virtual LOGLAN Processor + +Now you must configure your "vlp.cfg" file which is stored in +the instalation directory. +WARNING! Variable "homedir" should point to the directory where +you have program "logker" installed. This MUST be a full path !!! + + + + diff --git a/InstallVLP.html b/InstallVLP.html new file mode 100644 index 0000000..feedcaf --- /dev/null +++ b/InstallVLP.html @@ -0,0 +1,70 @@ + + + + installation of VLP + + + + +

Installing VLP - Virtual Loglan Processor
+

+

Pre-requisite:

+ Prior to compile and run Virtual LOGLAN Processor you should install + the QT library qt-1.45.(You may consult the +file "inst/LICENSE.QT" for more informations about the QT.
+If your system does not contain the library qt-1.45 (nowadays most systems +contains a newer, yet incompatible version of qt library)
+Read the file
+     installQT.html
+ and follow the instructions contained there.
+    
+
+ +

Installation:

+
    +
  1. Create an empty directory e.g. 
    +    /usr/local/vlp.build
  2. +
  3. Put the file
    +   vlp26.tgz
    +in this directory.
  4. +
  5. Extract the files executing  e.g
    +    gunzip vlp26.tgz
    +    tar -xvf vlp26.tar
  6. +
  7.  First, you MUST edit the file "Dir" + and set the proper directories:
    +QINC - directory where the QT library includes are stored, usually, /usr/lib/qt-1.45/include
    + QLIB - directory where you have your QT library, usually, /usr/lib/qt-1.45/lib
    + MOCDIR - QT library has a special compiler named "moc", write +the directory where this compiler is stored, usually, /usr/lib/qt-1.45/bin
    + INSTALLDIR - directory where the Virtual LOGLAN Processor will be + installed e.g.
    +     /usr/local/vlp.
  8. +
  9.  Next, run the following:
    +      ./configure
    + to configure source files, 
  10. +
  11. execute
    +     make
    + to build VLP and 
  12. +
  13. execute
    +     make install
    + to install Virtual LOGLAN Processor.
  14. +
  15. Now you should configure your "vlp.cfg" file which is stored in the + instalation directory.  
    +Assure that the variable node_number has different value on each computer +you installed VLP.
    +This is required to identify the nodes of virtual distributed Loglan +multiprocessor. 
  16. +
  17. WARNING! Variable "homedir" should point to the directory where you + have program "logker" installed. This MUST be a full path !!!
    + something like
    +      /usr/local/vlp
  18. +
  19. If everything went smoothly and your VLP works correctly you may wish +to delete the directory
    +   /usr/local/vlp.build
    +
  20. + +
+
+ + + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c726cd1 --- /dev/null +++ b/Makefile @@ -0,0 +1,74 @@ +### Includes for QT library +QINC=/usr/lib/qt-1.45/include + +### QT library directory +QLIB=/usr/lib/qt-1.45/lib + +### moc compiler directory +MOCDIR=/usr/lib/qt-1.45/bin + +### Install directory +INSTALLDIR=/usr/local/vlp + + +all: + cd graph; $(MAKE) + cd net; $(MAKE) + cd kernel; $(MAKE) + cd int; $(MAKE) + cd edit; $(MAKE) + cd lgconfig; $(MAKE) + cd preproc; $(MAKE) + cd help; $(MAKE) + +clean: + cd graph; $(MAKE) clean + cd net; $(MAKE) clean + cd kernel; $(MAKE) clean + cd int; $(MAKE) clean + cd edit; $(MAKE) clean + cd lgconfig; $(MAKE) clean + cd preproc; $(MAKE) clean + cd help; $(MAKE) clean + +install: + rm -r -f $(INSTALLDIR) + mkdir $(INSTALLDIR) + mkdir $(INSTALLDIR)/doc + mkdir $(INSTALLDIR)/pics + mkdir $(INSTALLDIR)/modules + mkdir $(INSTALLDIR)/config + mkdir $(INSTALLDIR)/compile + mkdir $(INSTALLDIR)/doc/lang + mkdir $(INSTALLDIR)/examp + cp -r examp/* $(INSTALLDIR)/examp + cp inst/loglan $(INSTALLDIR)/compile + cp inst/gen $(INSTALLDIR)/compile + cp preproc/logcomp $(INSTALLDIR)/compile + cp inst/logo.bmp $(INSTALLDIR)/config + cp lgconfig/lgconfig $(INSTALLDIR)/config + cp -r doc/* $(INSTALLDIR)/doc + cp net/lognet $(INSTALLDIR)/modules + cp int/logint $(INSTALLDIR)/modules + cp graph/loggraph $(INSTALLDIR)/modules + cp edit/logedit $(INSTALLDIR)/modules + cp inst/close.bmp $(INSTALLDIR)/pics + cp kernel/logker $(INSTALLDIR) + cp help/loghelp $(INSTALLDIR)/modules + cp inst/LICENSE.GNU $(INSTALLDIR) + cp inst/LICENSE.QT $(INSTALLDIR) + echo node_number=1 > $(INSTALLDIR)/vlp.cfg + echo type=explicit >> $(INSTALLDIR)/vlp.cfg + echo homedir=$(INSTALLDIR) >> $(INSTALLDIR)/vlp.cfg + echo progdir=./ >> $(INSTALLDIR)/vlp.cfg + chmod a+rwx $(INSTALLDIR) + chmod a+rx $(INSTALLDIR)/doc + chmod a+rx $(INSTALLDIR)/pics + chmod a+rwx $(INSTALLDIR)/modules + chmod a+rx $(INSTALLDIR)/config + chmod a+rwx $(INSTALLDIR)/compile + chmod a+rx $(INSTALLDIR)/doc/lang + chmod a+rwx $(INSTALLDIR)/examp + chmod a+rx $(INSTALLDIR)/logker + chmod a+rx $(INSTALLDIR)/modules/* + chmod a+rx $(INSTALLDIR)/compile/* diff --git a/configure b/configure new file mode 100755 index 0000000..4dc55f9 --- /dev/null +++ b/configure @@ -0,0 +1,11 @@ +#!/bin/sh + +cat Dir graph/mfile > graph/Makefile +cat Dir net/mfile > net/Makefile + +cat Dir kernel/mfile > kernel/Makefile +cat Dir lgconfig/mfile > lgconfig/Makefile +cat Dir edit/mfile > edit/Makefile +cat Dir preproc/mfile > preproc/Makefile +cat Dir help/mfile > help/Makefile +cat Dir ./mfile > ./Makefile diff --git a/doc/ansi.html b/doc/ansi.html new file mode 100644 index 0000000..a68f0e8 --- /dev/null +++ b/doc/ansi.html @@ -0,0 +1,24 @@ + + + + +Class ANSI
+Class ANSI implements simple operations in the text mode. + +
+Return to Index + + diff --git a/doc/gui.html b/doc/gui.html new file mode 100644 index 0000000..b5b1da1 --- /dev/null +++ b/doc/gui.html @@ -0,0 +1,12 @@ + + + + class GUI - Graphic User Interface +
+ + + + diff --git a/doc/gui1.html b/doc/gui1.html new file mode 100644 index 0000000..095b343 --- /dev/null +++ b/doc/gui1.html @@ -0,0 +1,92 @@ + + + +GUI procedures and functions
+