Changed LDB initialization scheme.
authorJosh Yelon <jyelon@uiuc.edu>
Mon, 22 Dec 1997 21:57:09 +0000 (21:57 +0000)
committerJosh Yelon <jyelon@uiuc.edu>
Mon, 22 Dec 1997 21:57:09 +0000 (21:57 +0000)
54 files changed:
src/arch/cm5/conv-mach.h
src/arch/exemplar/conv-mach.h
src/arch/ncube2/conv-mach.h
src/arch/net-aix-ppc/conv-mach.h
src/arch/net-hp-cc/conv-mach.h
src/arch/net-hp/conv-mach.h
src/arch/net-irix-64/conv-mach.h
src/arch/net-irix/conv-mach.h
src/arch/net-linux/conv-mach.h
src/arch/net-sol-cc/conv-mach.h
src/arch/net-sol-smp/conv-mach.h
src/arch/net-sol/conv-mach.h
src/arch/net-sun/conv-mach.h
src/arch/origin-pthreads/conv-mach.h
src/arch/origin2000/conv-mach.h
src/arch/paragon-osf/conv-mach.h
src/arch/paragon-sunmos/conv-mach.h
src/arch/sim-hp/conv-mach.h
src/arch/sim-irix-64/conv-mach.h
src/arch/sim-irix/conv-mach.h
src/arch/sim-linux/conv-mach.h
src/arch/sim-rs6k/conv-mach.h
src/arch/sim-sol/conv-mach.h
src/arch/sim-sun/conv-mach.h
src/arch/sp1/conv-mach.h
src/arch/sp3/conv-mach.h
src/arch/t3d-fm/conv-mach.h
src/arch/t3d/conv-mach.h
src/arch/t3e/conv-mach.h
src/arch/tcp-hp/conv-mach.h
src/arch/tcp-sol/conv-mach.h
src/arch/uth-hp-cc/conv-mach.h
src/arch/uth-hp/conv-mach.h
src/arch/uth-irix-64/conv-mach.h
src/arch/uth-irix/conv-mach.h
src/arch/uth-linux/conv-mach.h
src/arch/uth-rs6k/conv-mach.h
src/arch/uth-sol-cc/conv-mach.h
src/arch/uth-sol/conv-mach.h
src/arch/uth-sun/conv-mach.h
src/ck-core/init.c
src/ck-ldb/ldb.acwn.p
src/ck-ldb/ldb.comb.p
src/ck-ldb/ldb.masa.p
src/ck-ldb/ldb.mngr.p
src/ck-ldb/ldb.navg.p
src/ck-ldb/ldb.rand.p
src/ck-ldb/ldb.recv.p
src/ck-ldb/ldb.repl.p
src/ck-ldb/ldbcfns.c
src/conv-core/convcore.c
src/conv-core/threads.c
src/xlat/xl-lexsp.c
src/xlat/xl-lexsp.flex

index 809683d968429e6d584ab655533b763aaf339bed..50cc8c95d19c88261aa1ce02cdeec37f61228b54 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.35  1997-08-06 20:35:37  jyelon
+ * Revision 2.36  1997-12-22 21:57:40  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.35  1997/08/06 20:35:37  jyelon
  * Fixed bugs.
  *
  * Revision 2.34  1997/07/28 19:00:46  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 1c61e7cf93f7efc11774a28984f2f76a4a2c4614..8e983c5c58eb57d9846d56656a0a6521b127593b 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.34  1997-08-06 20:35:39  jyelon
+ * Revision 2.35  1997-12-22 21:57:42  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.34  1997/08/06 20:35:39  jyelon
  * Fixed bugs.
  *
  * Revision 2.33  1997/07/28 19:00:48  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index be03d4c3d34e8e345cb7e33e8b0cc94ff8859d24..c5bb6acea6dc85132efb7ad3daf4ed5c9dd04f78 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.34  1997-08-06 20:35:41  jyelon
+ * Revision 2.35  1997-12-22 21:57:43  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.34  1997/08/06 20:35:41  jyelon
  * Fixed bugs.
  *
  * Revision 2.33  1997/07/28 19:00:50  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 548735303f7288cb4bcdf495f8ef1fa2a6a0fe8a..22c357ed4fcab66c0256f3ec4d1355f0a5b6f567 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.35  1997-08-06 20:35:48  jyelon
+ * Revision 1.36  1997-12-22 21:57:54  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.35  1997/08/06 20:35:48  jyelon
  * Fixed bugs.
  *
  * Revision 1.34  1997/07/28 19:01:00  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                         16
 #define CMK_MSG_HEADER_BLANK_SPACE                        12
 
index 939b3be01063c3f6fd72354140352e120d4ba89f..6336973ae55289e50b5897242b45f215c3bd2645 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.25  1997-08-06 20:35:44  jyelon
+ * Revision 1.26  1997-12-22 21:57:48  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.25  1997/08/06 20:35:44  jyelon
  * Fixed bugs.
  *
  * Revision 1.24  1997/07/28 20:13:26  milind
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                         16
 #define CMK_MSG_HEADER_BLANK_SPACE                        12
 
index 203c32747a99c27e89277060d35e0386b07a1a4c..f20b6c500c2a5fd22a88ef2a39f8cf3baa59e2cb 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.39  1997-08-06 20:35:42  jyelon
+ * Revision 2.40  1997-12-22 21:57:45  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.39  1997/08/06 20:35:42  jyelon
  * Fixed bugs.
  *
  * Revision 2.38  1997/07/28 19:00:52  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                         16
 #define CMK_MSG_HEADER_BLANK_SPACE                        12
 
index 37329461a27f8770aa9162681cb735e64fb639b6..a8649c6a5abdfc49425d62527b4cd8e72258a973 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.5  1997-08-06 20:35:47  jyelon
+ * Revision 1.6  1997-12-22 21:57:51  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.5  1997/08/06 20:35:47  jyelon
  * Fixed bugs.
  *
  * Revision 1.4  1997/07/28 19:00:58  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                         16
 #define CMK_MSG_HEADER_BLANK_SPACE                        12
 
index 1345a6e8f6a857dd7dec86a189aa93711862269b..608f6a5f0128a8fbc6eedf7d629c4504c9f088b1 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.14  1997-08-06 20:35:45  jyelon
+ * Revision 1.15  1997-12-22 21:57:49  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.14  1997/08/06 20:35:45  jyelon
  * Fixed bugs.
  *
  * Revision 1.13  1997/07/28 19:00:56  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                         16
 #define CMK_MSG_HEADER_BLANK_SPACE                        12
 
index 00ea68ee405dbc7e1bbb07c501b37c2d65b093be..e00417ccaff3c00bb13cae08ea6d8d393bd5f74d 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.1  1997-08-06 14:57:34  milind
+ * Revision 1.2  1997-12-22 21:57:53  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.1  1997/08/06 14:57:34  milind
  * Added net-linux and sim-linux versions.
  * Fixed some bugs in Makefile.
  * Fixed a bug in machine.c in common.sim.
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             1
+
 #define CMK_MSG_HEADER_SIZE_BYTES                         16
 #define CMK_MSG_HEADER_BLANK_SPACE                        12
 
index 258b4ed470ce90f394f544eed47bc2d1e24f2ab2..d960e04323f0f6284180b45bad4db2bdee8ae9d4 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.15  1997-08-06 20:35:52  jyelon
+ * Revision 1.16  1997-12-22 21:57:58  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.15  1997/08/06 20:35:52  jyelon
  * Fixed bugs.
  *
  * Revision 1.14  1997/07/28 19:01:04  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                         16
 #define CMK_MSG_HEADER_BLANK_SPACE                        12
 
index 7585155b2c205de57bb26e93f85fc8aba2f2d600..3f3d6e37520f0a47540be9e2903dde775f6da189 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.12  1997-08-07 04:55:50  jyelon
+ * Revision 1.13  1997-12-22 21:58:00  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.12  1997/08/07 04:55:50  jyelon
  * Fixed all kinds of SMP bugs.
  *
  * Revision 1.11  1997/08/06 20:35:55  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                         16
 #define CMK_MSG_HEADER_BLANK_SPACE                        12
 
index bd245955a75c0054309106e2ffabbac0ccba72ad..3b23e6814c2bf2c7da62d541735f7c52776058c7 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.41  1997-08-06 20:35:50  jyelon
+ * Revision 2.42  1997-12-22 21:57:56  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.41  1997/08/06 20:35:50  jyelon
  * Fixed bugs.
  *
  * Revision 2.40  1997/08/01 02:43:36  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             1
+
 #define CMK_MSG_HEADER_SIZE_BYTES                         16
 #define CMK_MSG_HEADER_BLANK_SPACE                        12
 
index 7d87e8045a2990cd7b51e67c85d82c28905c00ed..a8a829315fabc42e091c13a6f51b7793810a133c 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.38  1997-08-06 20:35:56  jyelon
+ * Revision 2.39  1997-12-22 21:58:02  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.38  1997/08/06 20:35:56  jyelon
  * Fixed bugs.
  *
  * Revision 2.37  1997/07/28 19:01:07  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                         16
 #define CMK_MSG_HEADER_BLANK_SPACE                        12
 
index 6f81b21cc35b5e55deba51ff6a0f28c6c987bc36..9e882380cdeb7f4da69cb8d84c6c8172f70e6faa 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.1  1997-11-26 19:13:59  milind
+ * Revision 1.2  1997-12-22 21:58:04  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.1  1997/11/26 19:13:59  milind
  * Origin2000 Posix Threads Version
  *
  * Revision 1.5  1997/08/06 20:35:58  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index a5f96e93923c67166edff68b1929f33585239624..f593f08efeed74a41cea1c3c18a3b69822c9d5be 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.5  1997-08-06 20:35:58  jyelon
+ * Revision 1.6  1997-12-22 21:58:06  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.5  1997/08/06 20:35:58  jyelon
  * Fixed bugs.
  *
  * Revision 1.4  1997/07/28 19:01:08  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 32ae18475e2789d523ef775ee09692f238c21bb5..22e3ab7526ed53102648c93bcbbaf1628c2118e7 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.21  1997-08-06 20:36:00  jyelon
+ * Revision 1.22  1997-12-22 21:58:07  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.21  1997/08/06 20:36:00  jyelon
  * Fixed bugs.
  *
  * Revision 1.20  1997/07/28 19:01:10  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 5758be9e76df0e7155814c0f4c658afb9ae084e7..a9ef4e014d17671d22626f014ad94a63712ba437 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.21  1997-08-06 20:36:02  jyelon
+ * Revision 1.22  1997-12-22 21:58:09  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.21  1997/08/06 20:36:02  jyelon
  * Fixed bugs.
  *
  * Revision 1.20  1997/07/28 19:01:12  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index af7611cd20fa1919a83b873a9ae15e517baaea09..34cfcaa3e752d618966ff9ba04f8d7bbcf7cd13a 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.26  1997-08-06 20:36:04  jyelon
+ * Revision 1.27  1997-12-22 21:58:11  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.26  1997/08/06 20:36:04  jyelon
  * Fixed bugs.
  *
  * Revision 1.25  1997/07/28 19:01:13  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 765e4a3edf88a2503583eadbfcead41e3ef8a9a4..637fc99147bb113b5e5a2f9bd01862b63c476b1d 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.5  1997-08-06 20:36:07  jyelon
+ * Revision 1.6  1997-12-22 21:58:14  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.5  1997/08/06 20:36:07  jyelon
  * Fixed bugs.
  *
  * Revision 1.4  1997/07/28 19:01:16  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index de0c530fc8b3b811c0ffc17720e092bb2773b5b8..04a5dc7ebc1e286c08e4472b0e9a1734b95d1601 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.5  1997-08-06 20:36:05  jyelon
+ * Revision 1.6  1997-12-22 21:58:12  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.5  1997/08/06 20:36:05  jyelon
  * Fixed bugs.
  *
  * Revision 1.4  1997/07/28 19:01:15  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 874f8d7bd98fa925cfe59cedd6e35e67ef24c6f0..26c4522b4de65dccce6253b569954682d57dbc77 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.1  1997-08-06 14:57:37  milind
+ * Revision 1.2  1997-12-22 21:58:16  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.1  1997/08/06 14:57:37  milind
  * Added net-linux and sim-linux versions.
  * Fixed some bugs in Makefile.
  * Fixed a bug in machine.c in common.sim.
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             1
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 53bc7ac4d7c871a69573f86450735f9d9f5fe00c..38d371a716b2f0fcd1dbfb258855bb1dd03d62de 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.25  1997-08-06 20:36:08  jyelon
+ * Revision 1.26  1997-12-22 21:58:17  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.25  1997/08/06 20:36:08  jyelon
  * Fixed bugs.
  *
  * Revision 1.24  1997/07/28 19:01:18  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 81686c034a4a949ceec4323b399afe5925f89a7f..146d3b25a0705572b787b38005a7a2123d471326 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.25  1997-08-06 20:36:10  jyelon
+ * Revision 1.26  1997-12-22 21:58:19  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.25  1997/08/06 20:36:10  jyelon
  * Fixed bugs.
  *
  * Revision 1.24  1997/07/28 19:01:19  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             1
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index f272589f45aa4e7d978689623e8a08852b8df5c5..e6fe138a20f889bfba749b8c0d83a074df4ee881 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.25  1997-08-06 20:36:11  jyelon
+ * Revision 1.26  1997-12-22 21:58:21  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.25  1997/08/06 20:36:11  jyelon
  * Fixed bugs.
  *
  * Revision 1.24  1997/08/04 09:50:46  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 96d12485ec1334acf0108d45a95b19ea260fdfed..c678b990bb44024440119a8c3b67284afe0f589f 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.33  1997-08-06 20:36:13  jyelon
+ * Revision 2.34  1997-12-22 21:58:24  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.33  1997/08/06 20:36:13  jyelon
  * Fixed bugs.
  *
  * Revision 2.32  1997/07/28 19:01:24  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 3eb3256613e4821e4b805f4171fbc5bbf5818107..f41bf749888c491101bb9e2e1b0f31184559da23 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.4  1997-08-06 20:36:14  jyelon
+ * Revision 1.5  1997-12-22 21:58:25  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.4  1997/08/06 20:36:14  jyelon
  * Fixed bugs.
  *
  * Revision 1.3  1997/07/28 19:01:26  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 16a8ce693236f691ce3a29f3ae250e031a8c9c02..fc0a3d7bb35270cadec0a82e38a3e18f6b2fd8d0 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.1  1997-07-30 22:22:19  rbrunner
+ * Revision 1.2  1997-12-22 21:58:29  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.1  1997/07/30 22:22:19  rbrunner
  * Old t3d port, probably not working.
  *
  * Revision 1.21  1997/07/28 19:01:27  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          8
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index ac61796a881f76f917141cb734548de8a3429cc4..fa2ffac1548bc432eb316f264483a6e5de6bdcd6 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.23  1997-08-06 20:36:16  jyelon
+ * Revision 1.24  1997-12-22 21:58:27  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.23  1997/08/06 20:36:16  jyelon
  * Fixed bugs.
  *
  * Revision 1.22  1997/07/31 18:50:27  rbrunner
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          40
 #define CMK_MSG_HEADER_BLANK_SPACE                         32
 
index 83d35f7900d6bd9d5ca61b0a2fb5785a4a4aeb97..f9bdf1d227f8577a992837c036bd32393f5ab214 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.4  1997-08-06 20:36:17  jyelon
+ * Revision 1.5  1997-12-22 21:58:30  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.4  1997/08/06 20:36:17  jyelon
  * Fixed bugs.
  *
  * Revision 1.3  1997/07/28 19:01:29  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          40
 #define CMK_MSG_HEADER_BLANK_SPACE                         32
 
index fb5d8e10b9e9088505d998baa789d1e5ad199d36..5726b9bb2db31293ed30c5ae9592b784dc557eb2 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.40  1997-08-06 20:36:19  jyelon
+ * Revision 2.41  1997-12-22 21:58:33  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.40  1997/08/06 20:36:19  jyelon
  * Fixed bugs.
  *
  * Revision 2.39  1997/07/28 19:01:31  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          8
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 6f1b15f875e46542f9f93020a1d90f7612c4f5a0..6ba66f57a3bc1df6924ed86d6dbc43244021e565 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 2.39  1997-08-06 20:36:20  jyelon
+ * Revision 2.40  1997-12-22 21:58:35  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.39  1997/08/06 20:36:20  jyelon
  * Fixed bugs.
  *
  * Revision 2.38  1997/07/28 19:01:32  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             1
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          8
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 639f823d12123ffbb648a710f2d14ea2b1256049..0851a0ed87ffe015b8eb535b050da625d8de0062 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.16  1997-12-10 21:59:31  jyelon
+ * Revision 1.17  1997-12-22 21:58:38  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.16  1997/12/10 21:59:31  jyelon
  * Modified CmiDeliverSpecificMsg so that it works with uth version.
  *
  * Revision 1.15  1997/08/06 20:36:24  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index cf2393c4da5ad5002ced5317f23c6be8c15fadec..e835befa6273099194dda84ff47abb15d524fb12 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.29  1997-12-10 21:59:29  jyelon
+ * Revision 1.30  1997-12-22 21:58:36  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.29  1997/12/10 21:59:29  jyelon
  * Modified CmiDeliverSpecificMsg so that it works with uth version.
  *
  * Revision 1.28  1997/08/06 20:36:22  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 60b029c3924da6eb43444dfc849e94d5c0f4d382..41684551660a600eb914ec256213d7dfd8a0f347 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.5  1997-12-10 21:59:34  jyelon
+ * Revision 1.6  1997-12-22 21:58:41  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.5  1997/12/10 21:59:34  jyelon
  * Modified CmiDeliverSpecificMsg so that it works with uth version.
  *
  * Revision 1.4  1997/08/06 20:36:26  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index c0ef1c0b0b316e425637009b6db9e3fed551f2c1..7a8a3cf41d0c0a60042799d71d75f41c31311d33 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.10  1997-12-10 21:59:33  jyelon
+ * Revision 1.11  1997-12-22 21:58:40  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.10  1997/12/10 21:59:33  jyelon
  * Modified CmiDeliverSpecificMsg so that it works with uth version.
  *
  * Revision 1.9  1997/08/06 20:36:25  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index c3940a227eef8003e86ba3cd0a7f1aafe478eecd..178137ad01acc1bd070f7447feb05da24fb2eb87 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.3  1997-12-10 21:59:36  jyelon
+ * Revision 1.4  1997-12-22 21:58:43  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.3  1997/12/10 21:59:36  jyelon
  * Modified CmiDeliverSpecificMsg so that it works with uth version.
  *
  * Revision 1.2  1997/08/06 20:36:28  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             1
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 3a9b9178bf74bc5a2a428399cdd14df0356d157c..b411963dc8483464afd710dd2deebe9f77212f48 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.31  1997-12-10 21:59:37  jyelon
+ * Revision 1.32  1997-12-22 21:58:45  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.31  1997/12/10 21:59:37  jyelon
  * Modified CmiDeliverSpecificMsg so that it works with uth version.
  *
  * Revision 1.30  1997/08/06 20:36:31  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 4b2981c2ddc0d30a98535596eeeecbc1df9739b0..e15a9f8866862ec5fb84de8a7bde0f02e70e10f1 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.16  1997-12-10 21:59:41  jyelon
+ * Revision 1.17  1997-12-22 21:58:48  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.16  1997/12/10 21:59:41  jyelon
  * Modified CmiDeliverSpecificMsg so that it works with uth version.
  *
  * Revision 1.15  1997/08/06 20:36:35  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 3a9aa477d6f231b2f3c99b2729cde641bf5f6dff..b6dc37b4986aab1658ee7df1612baaf345fb7538 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.31  1997-12-10 21:59:39  jyelon
+ * Revision 1.32  1997-12-22 21:58:47  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.31  1997/12/10 21:59:39  jyelon
  * Modified CmiDeliverSpecificMsg so that it works with uth version.
  *
  * Revision 1.30  1997/08/06 20:36:33  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             1
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index c8ce4a9c37044678cb13ac9f9b4ec0a08f05a885..fa7ea6df373c886b8ddeb030862da81cc582292f 100644 (file)
@@ -8,7 +8,10 @@
  ***************************************************************************
  *
  * $Log$
- * Revision 1.32  1997-12-10 21:59:42  jyelon
+ * Revision 1.33  1997-12-22 21:58:50  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 1.32  1997/12/10 21:59:42  jyelon
  * Modified CmiDeliverSpecificMsg so that it works with uth version.
  *
  * Revision 1.31  1997/08/06 20:36:36  jyelon
 #define CMK_MALLOC_USE_GNU_MALLOC                          0
 #define CMK_MALLOC_USE_OS_BUILTIN                          1
 
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
 #define CMK_MSG_HEADER_SIZE_BYTES                          4
 #define CMK_MSG_HEADER_BLANK_SPACE                         0
 
index 94ed20503675361b933dd6eb5b2f77f8f3f6edb9..6f27a5edd5cbeb2e9e1d1c26dfb7b4958e5c3875 100644 (file)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.49  1997-12-12 05:03:41  jyelon
+ * Revision 2.50  1997-12-22 21:57:09  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.49  1997/12/12 05:03:41  jyelon
  * Fixed bug, wasn't doing CmiGrabBuffer.
  *
  * Revision 2.48  1997/10/29 23:52:47  milind
@@ -334,7 +337,6 @@ char **argv;
   registerModuleInit();
   statModuleInit();
   tblModuleInit(); 
-  CldModuleInit();
   futuresModuleInit();
 
   if (CmiMyRank() == 0) CmiNodeBarrier();
@@ -653,9 +655,6 @@ ENVELOPE       *envelope;
 
 void SysPeriodicCheckInit(void)
 {
-       /*
-       CldPeriodicCheckInit();
-       */
 }
 
 
index d02d525aed6260c870f68c7b52282d263a0769cd..3cca3d4977cc098ca7231a3b186027046e6cf56d 100755 (executable)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.12  1997-07-30 17:31:02  jyelon
+ * Revision 2.13  1997-12-22 21:57:17  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.12  1997/07/30 17:31:02  jyelon
  * *** empty log message ***
  *
  * Revision 2.11  1996/02/08 23:52:06  sanjeev
@@ -148,6 +151,11 @@ extern int CldPickSeedAndSend();
 #define MODERATE 2
 #define HEAVY 3
 
+export_to_C CldModuleInit()
+{
+  CldCommonInit();
+}
+
 export_to_C CldGetLdbSize()
 {
        return sizeof(LDB_ELEMENT);
index 26e2674f256fcbe6c27268d5616af53a6160ca45..d568b75a7313cbc4de270d7f085977a8a55050ac 100755 (executable)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.2  1995-10-27 22:09:16  jyelon
+ * Revision 2.3  1997-12-22 21:57:18  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.2  1995/10/27 22:09:16  jyelon
  * Changed Cmi to Ck in all charm files.
  *
  * Revision 2.1  1995/10/27  21:35:54  jyelon
@@ -84,6 +87,11 @@ typedef struct {
 #define MODERATE 2
 #define HEAVY 3
 
+export_to_C CldModuleInit()
+{
+  CldCommonInit();
+}
+
 export_to_C setLdbSize()
 {
        CpvAccess(LDB_ELEM_SIZE) = sizeof(LDB_ELEMENT);
index 7870d1b7ebd6e2d350aee2a6632fac324b0f3cc0..ecdfcd65f9c12932a0d7ea259714c51eb0da9e13 100755 (executable)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.2  1995-10-27 22:09:16  jyelon
+ * Revision 2.3  1997-12-22 21:57:20  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.2  1995/10/27 22:09:16  jyelon
  * Changed Cmi to Ck in all charm files.
  *
  * Revision 2.1  1995/10/27  21:35:54  jyelon
@@ -39,6 +42,11 @@ typedef struct {
        int idlePE;
 } LDB_ELEMENT;
 
+export_to_C CldModuleInit()
+{
+  CldCommonInit();
+}
+
 export_to_C setLdbSize()
 {
        CpvAccess(LDB_ELEM_SIZE) = sizeof(LDB_ELEMENT);
index 7f5ae67e3878803b6d34308744e9616d4f026fdc..3e23608fb8ea94c45757a4c353b8569e326fd950 100755 (executable)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.7  1997-07-30 17:31:03  jyelon
+ * Revision 2.8  1997-12-22 21:57:21  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.7  1997/07/30 17:31:03  jyelon
  * *** empty log message ***
  *
  * Revision 2.6  1996/02/08 23:33:36  sanjeev
@@ -174,6 +177,11 @@ extern int CldPickSeedAndSend();
 
 extern void *CqsCreate();
 
+export_to_C CldModuleInit()
+{
+  CldCommonInit();
+}
+
 export_to_C CldGetLdbSize()
 {
        TRACE(CkPrintf("%d:CldGetLdbSize()\n",CkMyPe()));
index 4863da2919856e59c8a762684dc8548be41dc2e0..708a458aa3353762a0422081681834fe63f3c629 100755 (executable)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.2  1995-10-27 22:09:16  jyelon
+ * Revision 2.3  1997-12-22 21:57:22  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.2  1995/10/27 22:09:16  jyelon
  * Changed Cmi to Ck in all charm files.
  *
  * Revision 2.1  1995/10/27  21:35:54  jyelon
@@ -69,6 +72,11 @@ typedef struct {
 #define MODERATE 2
 #define HEAVY 3
 
+export_to_C CldModuleInit()
+{
+  CldCommonInit();
+}
+
 export_to_C setLdbSize()
 {
        CpvAccess(LDB_ELEM_SIZE) = sizeof(LDB_ELEMENT);
index 27c0a76872b9f346584d4b253332125c6eeef37c..ac84ceb45de4015686774e838179ebab3ead4dee 100755 (executable)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.3  1995-10-27 21:35:54  jyelon
+ * Revision 2.4  1997-12-22 21:57:23  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.3  1995/10/27 21:35:54  jyelon
  * changed NumPe --> NumPes
  *
  * Revision 2.2  1995/07/19  22:15:20  jyelon
@@ -36,8 +39,9 @@
 module ldb {
 #include "ldb.h"
 
-export_to_C CldInit()
+export_to_C CldModuleInit()
 {
+  CldCommonInit();
 }
 
 export_to_C CldGetLdbSize()
index 5122bb472dfe903ac3086232ee8971cd61bd731b..e4e87480c3a0d565b0e4ad4a525d79c67a7f89e3 100755 (executable)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.2  1995-10-27 22:09:16  jyelon
+ * Revision 2.3  1997-12-22 21:57:24  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.2  1995/10/27 22:09:16  jyelon
  * Changed Cmi to Ck in all charm files.
  *
  * Revision 2.1  1995/10/27  21:35:54  jyelon
@@ -61,11 +64,15 @@ typedef struct {
        int srcPE;
 } LDB_ELEMENT;
 
-export_to_C setLdbSize()
+export_to_C CldModuleInit()
 {
-       CpvAccess(LDB_ELEM_SIZE) = sizeof(LDB_ELEMENT);
+  CldCommonInit();
 }
 
+export_to_C setLdbSize()
+{
+  CpvAccess(LDB_ELEM_SIZE) = sizeof(LDB_ELEMENT);
+}
 
 export_to_C LdbCreateBoc()
 {
index 71193c805389b5edcff61b1daaabcb21981894c7..c402284476ad1e9abccc26080cb72227ee09d479 100755 (executable)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.2  1995-10-27 22:09:16  jyelon
+ * Revision 2.3  1997-12-22 21:57:25  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.2  1995/10/27 22:09:16  jyelon
  * Changed Cmi to Ck in all charm files.
  *
  * Revision 2.1  1995/10/27  21:35:54  jyelon
@@ -31,6 +34,10 @@ message {
     int dummy;
 } DUMMYMSG;
 
+export_to_C CldModuleInit()
+{
+  CldCommonInit();
+}
 
 export_to_C setLdbSize()
 {
index 8d98efe94c694344ac822f49aaca922bf0f66b99..e0b95e4e13ab5c1dd8bb25a535fdb761af3b9a6b 100644 (file)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.7  1997-10-29 23:52:57  milind
+ * Revision 2.8  1997-12-22 21:57:26  jyelon
+ * Changed LDB initialization scheme.
+ *
+ * Revision 2.7  1997/10/29 23:52:57  milind
  * Fixed CthInitialize bug on uth machines.
  *
  * Revision 2.6  1997/07/30 17:31:04  jyelon
@@ -60,7 +63,7 @@ CpvDeclare(CldTOK_HOLDER*, Cldtokenlist);
 CpvDeclare(CldTOK_HOLDER*, Cldlasttoken);
 CpvDeclare(int, Cldhandlerid);
 
-void CldModuleInit()
+void CldCommonInit()
 {
   CpvInitialize(int, LDB_ELEM_SIZE);
   CpvInitialize(int, Cldnumseeds);
index 07fad30b9d923fe4e3cc2d98e7a7f89564c3a875..7a65890f65aa2428bc9896bb475b4b4741b8c24b 100644 (file)
@@ -847,6 +847,7 @@ void ConverseCommonInit(char **argv)
   CmiDeliversInit();
   CsdInit(argv);
   CthSchedInit();
+  CldModuleInit();
 }
 
 void ConverseCommonExit(void)
index 3ffc7718f56a54081172d5e65ae0133928269691..5b698595f444ba441187e37fa4dd2d6d9faaeff7 100644 (file)
 
 #define STACKSIZE (32768)
 
+#if CMK_MEMORY_PROTECTABLE
+
+#include "sys/mman.h"
+#define CthMemoryProtect(p,l) mprotect(p,l,PROT_NONE)
+#define CthMemoryUnprotect(p,l) mprotect(p,l,PROT_READ | PROT_WRITE)
+
+#else
+
+#define CthMemoryProtect(p,l) 
+#define CthMemoryUnprotect(p,l)
+
+#endif
+
 struct CthThreadStruct
 {
   char cmicore[CmiMsgHeaderSizeBytes];
@@ -130,7 +143,9 @@ struct CthThreadStruct
   int        Event;
 /** End Addition */
   CthThread  qnext;
-  int       *magic;
+  char      *protect;
+  int        protlen;
+  qt_t      *stack;
   qt_t      *stackp;
 };
 
@@ -196,18 +211,17 @@ CthThread t;
 
 void CthInit()
 {
-  static unsigned int fakemagic;
   CthThread t;
 
   CthCpvInitialize(char *,     CthData);
   CthCpvInitialize(CthThread,  CthCurrent);
   CthCpvInitialize(int,        CthDatasize);
   CthCpvInitialize(int,        CthExiting);
-  
+
   t = (CthThread)malloc(sizeof(struct CthThreadStruct));
+  t->protect = 0;
+  t->protlen = 0;
   CthThreadInit(t);
-  fakemagic = 0x12345678;
-  t->magic = &fakemagic;
   CthCpvAccess(CthData)=0;
   CthCpvAccess(CthCurrent)=t;
   CthCpvAccess(CthDatasize)=1;
@@ -233,7 +247,9 @@ CthThread t;
 
 static void *CthAbortHelp(qt_t *sp, CthThread old, void *null)
 {
+  CthMemoryUnprotect(old->protect, old->protlen);
   if (old->data) free(old->data);
+  free(old->stack);
   free(old);
   return (void *) 0;
 }
@@ -250,10 +266,6 @@ CthThread t;
   CthThread tc;
   tc = CthCpvAccess(CthCurrent);
   if (t == tc) return;
-  if ((*(tc->magic) != 0x12345678)||(*(t->magic) != 0x12345678)) {
-    CmiError("Thread corruption: probably, a thread overflowed its stack.\n");
-    exit(1);
-  }
   CthFixData(t);
   CthCpvAccess(CthCurrent) = t;
   CthCpvAccess(CthData) = t->data;
@@ -277,24 +289,25 @@ static void CthOnly(void *arg, void *vt, qt_userf_t fn)
 CthThread CthCreate(fn, arg, size)
 CthVoidFn fn; void *arg; int size;
 {
-  CthThread result; qt_t *stack, *stacka, *stackb; CMK_SIZE_T magic;
+  CthThread result; qt_t *stack, *stackbase, *stackp;
   if (size==0) size = STACKSIZE;
-  size += QT_STKALIGN;
-  result = (CthThread)malloc(sizeof(struct CthThreadStruct)+size);
-  if (result==0) { CmiError("Out of memory."); exit(1); }
-  stack = (qt_t*)(((char*)result)+sizeof(struct CthThreadStruct));
-  stack = (qt_t*)QT_STKROUNDUP(((CMK_SIZE_T)stack));
+  size = (size+(CMK_MEMORY_PAGESIZE*2)-1) & ~(CMK_MEMORY_PAGESIZE-1);
+  stack = (qt_t*)memalign(CMK_MEMORY_PAGESIZE, size);
+  result = (CthThread)malloc(sizeof(struct CthThreadStruct));
+  if ((stack==0)||(result==0)) { CmiError("Out of memory."); exit(1); }
   CthThreadInit(result);
-  stacka = QT_SP(stack, size - QT_STKALIGN);
-  stackb = QT_ARGS(stacka, arg, result, (qt_userf_t *)fn, CthOnly);
-  result->stackp = stackb;
-  if (stack==stacka) {
-    magic = ((CMK_SIZE_T)stack) + (size*7)/8;
+  stackbase = QT_SP(stack, size);
+  stackp = QT_ARGS(stackbase, arg, result, (qt_userf_t *)fn, CthOnly);
+  result->stack = stack;
+  result->stackp = stackp;
+  if (stack==stackbase) {
+    result->protect = ((char*)stack) + size - CMK_MEMORY_PAGESIZE;
+    result->protlen = CMK_MEMORY_PAGESIZE;
   } else {
-    magic = ((CMK_SIZE_T)stack) + (size/8);
+    result->protect = ((char*)stack);
+    result->protlen = CMK_MEMORY_PAGESIZE;
   }
-  result->magic = (int*)(magic & ~0xF);
-  *result->magic = 0x12345678;
+  CthMemoryProtect(result->protect, result->protlen);
   CthSetStrategyDefault(result);
   return result;
 }
index 5e9d3a334fe32460cf1bfa8ac3cd51cbfb7228e9..39120f35650d32cc354a459017ebdeeedca213a6 100644 (file)
@@ -236,7 +236,7 @@ void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
 
 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
-YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *str ));
+YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
 
 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
@@ -282,27 +282,27 @@ static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
        *yy_cp = '\0'; \
        yy_c_buf_p = yy_cp;
 
-#define YY_NUM_RULES 65
-#define YY_END_OF_BUFFER 66
+#define YY_NUM_RULES 66
+#define YY_END_OF_BUFFER 67
 static yyconst short int yy_accept[157] =
     {   0,
-        0,    0,   66,   64,   60,   61,   17,   64,   64,   11,
-        5,   64,   12,   13,    9,    7,   43,    8,   16,   10,
-       56,   55,    3,   46,   24,   32,   25,    2,    1,   50,
-       14,   15,    6,   44,    4,   45,   18,   60,   29,    0,
-       59,    0,    0,    0,    0,    0,    0,   37,   30,   40,
+        0,    0,   67,   65,   61,   62,   17,   65,   65,   11,
+        5,   65,   12,   13,    9,    7,   43,    8,   16,   10,
+       57,   56,    3,   46,   24,   32,   25,    2,    1,   51,
+       14,   15,    6,   44,    4,   45,   18,   61,   29,    0,
+       60,    0,    0,   50,    0,    0,    0,   37,   30,   40,
         0,    0,   35,   20,   33,    0,   47,   48,   21,   34,
-       19,   53,   36,   52,   56,    0,    0,   56,   56,    0,
-       55,   55,   55,   22,   26,   28,   27,   23,    0,   50,
+       19,   54,   36,   53,   57,    0,    0,   57,   57,    0,
+       56,   56,   56,   22,   26,   28,   27,   23,    0,   51,
         0,   42,   41,   31,    0,    0,    0,    0,    0,    0,
-        0,   58,    0,    0,    0,   53,   52,    0,   52,    0,
+        0,   59,    0,    0,    0,   54,   53,    0,   53,    0,
 
-       54,   56,   56,   57,   55,   55,   39,   38,    0,    0,
+       55,   57,   57,   58,   56,   56,   39,   38,    0,    0,
         0,    0,   49,    0,    0,    0,    0,    0,    0,    0,
-       53,    0,   52,   54,   57,   57,    0,   51,    0,    0,
-        0,    0,    0,    0,    0,    0,    0,   57,   57,   51,
-        0,    0,    0,   63,    0,    0,    0,    0,    0,   63,
-       63,   62,    0,   62,   62,    0
+       54,    0,   53,   55,   58,   58,    0,   52,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,   58,   58,   52,
+        0,    0,    0,   64,    0,    0,    0,    0,    0,   64,
+       64,   63,    0,   63,   63,    0
     } ;
 
 static yyconst int yy_ec[256] =
@@ -556,9 +556,9 @@ static char *yy_last_accepting_cpos;
 #define YY_MORE_ADJ 0
 #define YY_RESTORE_YY_MORE_OFFSET
 char *yytext;
-#line 1 "xl-lexsp.l"
+#line 1 "xl-lexsp.flex"
 #define INITIAL 0
-#line 3 "xl-lexsp.l"
+#line 3 "xl-lexsp.flex"
 #define YYSTYPE YSNPTR
 #include "xl-lex.h"
 #include "xl-yacc.tab.h"
@@ -585,7 +585,6 @@ int PrevToken=0;
 #ifdef yywrap
 #undef yywrap
 #endif
-#line 589 "lex.yy.c"
 
 /* Macros after this point can all be overridden by user definitions in
  * section 1.
@@ -736,9 +735,8 @@ YY_DECL
        register char *yy_cp, *yy_bp;
        register int yy_act;
 
-#line 43 "xl-lexsp.l"
+#line 43 "xl-lexsp.flex"
 
-#line 742 "lex.yy.c"
 
        if ( yy_init )
                {
@@ -823,237 +821,237 @@ do_action:      /* This label is used only to access EOF actions. */
 
 case 1:
 YY_RULE_SETUP
-#line 44 "xl-lexsp.l"
+#line 44 "xl-lexsp.flex"
 { strcpy(token,yytext);return(PrevToken=AT); }
        YY_BREAK
 case 2:
 YY_RULE_SETUP
-#line 45 "xl-lexsp.l"
+#line 45 "xl-lexsp.flex"
 { mywriteoutput("?",NOCREATE);strcpy(token,yytext);return(PrevToken=QUESTION); }
        YY_BREAK
 case 3:
 YY_RULE_SETUP
-#line 46 "xl-lexsp.l"
+#line 46 "xl-lexsp.flex"
 { strcpy(token,yytext);return(PrevToken=COLON); }
        YY_BREAK
 case 4:
 YY_RULE_SETUP
-#line 47 "xl-lexsp.l"
+#line 47 "xl-lexsp.flex"
 { mywriteoutput("|",NOCREATE);strcpy(token,yytext);return(PrevToken=OR); }
        YY_BREAK
 case 5:
 YY_RULE_SETUP
-#line 48 "xl-lexsp.l"
+#line 48 "xl-lexsp.flex"
 { mywriteoutput("&",NOCREATE);strcpy(token,yytext);return(PrevToken=AND); }
        YY_BREAK
 case 6:
 YY_RULE_SETUP
-#line 49 "xl-lexsp.l"
+#line 49 "xl-lexsp.flex"
 { mywriteoutput("^",NOCREATE);strcpy(token,yytext);return(PrevToken=HAT); }
        YY_BREAK
 case 7:
 YY_RULE_SETUP
-#line 50 "xl-lexsp.l"
+#line 50 "xl-lexsp.flex"
 { mywriteoutput("+",NOCREATE);strcpy(token,yytext);return(PrevToken=PLUS); }
        YY_BREAK
 case 8:
 YY_RULE_SETUP
-#line 51 "xl-lexsp.l"
+#line 51 "xl-lexsp.flex"
 { mywriteoutput("-",NOCREATE);strcpy(token,yytext);return(PrevToken=MINUS); }
        YY_BREAK
 case 9:
 YY_RULE_SETUP
-#line 52 "xl-lexsp.l"
+#line 52 "xl-lexsp.flex"
 { mywriteoutput("*",NOCREATE);strcpy(token,yytext);return(PrevToken=MULT); }
        YY_BREAK
 case 10:
 YY_RULE_SETUP
-#line 53 "xl-lexsp.l"
+#line 53 "xl-lexsp.flex"
 { mywriteoutput("/",NOCREATE);strcpy(token,yytext);return(PrevToken=DIV); }
        YY_BREAK
 case 11:
 YY_RULE_SETUP
-#line 54 "xl-lexsp.l"
+#line 54 "xl-lexsp.flex"
 { mywriteoutput("%",NOCREATE);strcpy(token,yytext);return(PrevToken=MOD); }
        YY_BREAK
 case 12:
 YY_RULE_SETUP
-#line 55 "xl-lexsp.l"
+#line 55 "xl-lexsp.flex"
 { mywriteoutput("(",NOCREATE);strcpy(token,yytext);return(PrevToken=L_PAREN); }
        YY_BREAK
 case 13:
 YY_RULE_SETUP
-#line 56 "xl-lexsp.l"
+#line 56 "xl-lexsp.flex"
 { mywriteoutput(")",NOCREATE);strcpy(token,yytext);return(PrevToken=R_PAREN); }
        YY_BREAK
 case 14:
 YY_RULE_SETUP
-#line 57 "xl-lexsp.l"
+#line 57 "xl-lexsp.flex"
 { mywriteoutput("[",NOCREATE);strcpy(token,yytext);return(PrevToken=L_SQUARE); }
        YY_BREAK
 case 15:
 YY_RULE_SETUP
-#line 58 "xl-lexsp.l"
+#line 58 "xl-lexsp.flex"
 { mywriteoutput("]",NOCREATE);strcpy(token,yytext);return(PrevToken=R_SQUARE); }
        YY_BREAK
 case 16:
 YY_RULE_SETUP
-#line 59 "xl-lexsp.l"
+#line 59 "xl-lexsp.flex"
 { mywriteoutput(".",NOCREATE);strcpy(token,yytext);return(PrevToken=DOT); }
        YY_BREAK
 case 17:
 YY_RULE_SETUP
-#line 60 "xl-lexsp.l"
+#line 60 "xl-lexsp.flex"
 { mywriteoutput("!",NOCREATE);strcpy(token,yytext);return(PrevToken=EXCLAIM); }
        YY_BREAK
 case 18:
 YY_RULE_SETUP
-#line 61 "xl-lexsp.l"
+#line 61 "xl-lexsp.flex"
 { mywriteoutput("~",NOCREATE);strcpy(token,yytext);return(PrevToken=TILDE); }
        YY_BREAK
 case 19:
 YY_RULE_SETUP
-#line 62 "xl-lexsp.l"
+#line 62 "xl-lexsp.flex"
 { mywriteoutput("->",NOCREATE);strcpy(token,yytext);return(PrevToken=POINTERREF); }
        YY_BREAK
 case 20:
 YY_RULE_SETUP
-#line 63 "xl-lexsp.l"
+#line 63 "xl-lexsp.flex"
 { mywriteoutput("++",CREATE);strcpy(token,yytext);return(PrevToken=INCDEC); }
        YY_BREAK
 case 21:
 YY_RULE_SETUP
-#line 64 "xl-lexsp.l"
+#line 64 "xl-lexsp.flex"
 { mywriteoutput("--",CREATE);strcpy(token,yytext);return(PrevToken=INCDEC); }
        YY_BREAK
 case 22:
 YY_RULE_SETUP
-#line 65 "xl-lexsp.l"
+#line 65 "xl-lexsp.flex"
 { mywriteoutput("<<",CREATE);strcpy(token,yytext);return(PrevToken=SHIFT); }
        YY_BREAK
 case 23:
 YY_RULE_SETUP
-#line 66 "xl-lexsp.l"
+#line 66 "xl-lexsp.flex"
 { mywriteoutput(">>",CREATE);strcpy(token,yytext);return(PrevToken=SHIFT); }
        YY_BREAK
 case 24:
 YY_RULE_SETUP
-#line 67 "xl-lexsp.l"
+#line 67 "xl-lexsp.flex"
 { mywriteoutput("<",CREATE);strcpy(token,yytext);return(PrevToken=COMPARE); }
        YY_BREAK
 case 25:
 YY_RULE_SETUP
-#line 68 "xl-lexsp.l"
+#line 68 "xl-lexsp.flex"
 { mywriteoutput(">",CREATE);strcpy(token,yytext);return(PrevToken=COMPARE); }
        YY_BREAK
 case 26:
 YY_RULE_SETUP
-#line 69 "xl-lexsp.l"
+#line 69 "xl-lexsp.flex"
 { mywriteoutput("<=",CREATE);strcpy(token,yytext);return(PrevToken=COMPARE); }
        YY_BREAK
 case 27:
 YY_RULE_SETUP
-#line 70 "xl-lexsp.l"
+#line 70 "xl-lexsp.flex"
 { mywriteoutput(">=",CREATE);strcpy(token,yytext);return(PrevToken=COMPARE); }
        YY_BREAK
 case 28:
 YY_RULE_SETUP
-#line 71 "xl-lexsp.l"
+#line 71 "xl-lexsp.flex"
 { mywriteoutput("==",NOCREATE);strcpy(token,yytext);return(PrevToken=EQUALEQUAL); }
        YY_BREAK
 case 29:
 YY_RULE_SETUP
-#line 72 "xl-lexsp.l"
+#line 72 "xl-lexsp.flex"
 { mywriteoutput("!=",NOCREATE);strcpy(token,yytext);return(PrevToken=NOTEQUAL); }
        YY_BREAK
 case 30:
 YY_RULE_SETUP
-#line 73 "xl-lexsp.l"
+#line 73 "xl-lexsp.flex"
 { mywriteoutput("&&",NOCREATE);strcpy(token,yytext);return(PrevToken=ANDAND); }
        YY_BREAK
 case 31:
 YY_RULE_SETUP
-#line 74 "xl-lexsp.l"
+#line 74 "xl-lexsp.flex"
 { mywriteoutput("||",NOCREATE);strcpy(token,yytext);return(PrevToken=OROR); }
        YY_BREAK
 case 32:
 YY_RULE_SETUP
-#line 75 "xl-lexsp.l"
+#line 75 "xl-lexsp.flex"
 { mywriteoutput("=",NOCREATE);strcpy(token,yytext);return(PrevToken=EQUAL); }
        YY_BREAK
 case 33:
 YY_RULE_SETUP
-#line 76 "xl-lexsp.l"
+#line 76 "xl-lexsp.flex"
 { mywriteoutput("+=",CREATE);strcpy(token,yytext);return(PrevToken=ASGNOP); }
        YY_BREAK
 case 34:
 YY_RULE_SETUP
-#line 77 "xl-lexsp.l"
+#line 77 "xl-lexsp.flex"
 { mywriteoutput("-=",CREATE);strcpy(token,yytext);return(PrevToken=ASGNOP); }
        YY_BREAK
 case 35:
 YY_RULE_SETUP
-#line 78 "xl-lexsp.l"
+#line 78 "xl-lexsp.flex"
 { mywriteoutput("*=",CREATE);strcpy(token,yytext);return(PrevToken=ASGNOP); }
        YY_BREAK
 case 36:
 YY_RULE_SETUP
-#line 79 "xl-lexsp.l"
+#line 79 "xl-lexsp.flex"
 { mywriteoutput("/=",CREATE);strcpy(token,yytext);return(PrevToken=ASGNOP); }
        YY_BREAK
 case 37:
 YY_RULE_SETUP
-#line 80 "xl-lexsp.l"
+#line 80 "xl-lexsp.flex"
 { mywriteoutput("%=",CREATE);strcpy(token,yytext);return(PrevToken=ASGNOP); }
        YY_BREAK
 case 38:
 YY_RULE_SETUP
-#line 81 "xl-lexsp.l"
+#line 81 "xl-lexsp.flex"
 { mywriteoutput(">>=",CREATE);strcpy(token,yytext);return(PrevToken=ASGNOP); }
        YY_BREAK
 case 39:
 YY_RULE_SETUP
-#line 82 "xl-lexsp.l"
+#line 82 "xl-lexsp.flex"
 { mywriteoutput("<<=",CREATE);strcpy(token,yytext);return(PrevToken=ASGNOP); }
        YY_BREAK
 case 40:
 YY_RULE_SETUP
-#line 83 "xl-lexsp.l"
+#line 83 "xl-lexsp.flex"
 { mywriteoutput("&=",CREATE);strcpy(token,yytext);return(PrevToken=ASGNOP); }
        YY_BREAK
 case 41:
 YY_RULE_SETUP
-#line 84 "xl-lexsp.l"
+#line 84 "xl-lexsp.flex"
 { mywriteoutput("|=",CREATE);strcpy(token,yytext);return(PrevToken=ASGNOP); }
        YY_BREAK
 case 42:
 YY_RULE_SETUP
-#line 85 "xl-lexsp.l"
+#line 85 "xl-lexsp.flex"
 { mywriteoutput("^=",CREATE);strcpy(token,yytext);return(PrevToken=ASGNOP); }
        YY_BREAK
 case 43:
 YY_RULE_SETUP
-#line 86 "xl-lexsp.l"
+#line 86 "xl-lexsp.flex"
 { mywriteoutput(",",NOCREATE);strcpy(token,yytext);return(PrevToken=COMMA); }
        YY_BREAK
 case 44:
 YY_RULE_SETUP
-#line 87 "xl-lexsp.l"
+#line 87 "xl-lexsp.flex"
 { strcpy(token,yytext);return(PrevToken=L_BRACE); }
        YY_BREAK
 case 45:
 YY_RULE_SETUP
-#line 88 "xl-lexsp.l"
+#line 88 "xl-lexsp.flex"
 { strcpy(token,yytext);return(PrevToken=R_BRACE); }
        YY_BREAK
 case 46:
 YY_RULE_SETUP
-#line 89 "xl-lexsp.l"
+#line 89 "xl-lexsp.flex"
 { mywriteoutput(";",NOCREATE);strcpy(token,yytext);return(PrevToken=SEMICOLON); }
        YY_BREAK
 case 47:
 YY_RULE_SETUP
-#line 90 "xl-lexsp.l"
+#line 90 "xl-lexsp.flex"
 { int i,count=0;
                
                  strcpy(token,yytext);
@@ -1065,7 +1063,7 @@ YY_RULE_SETUP
        YY_BREAK
 case 48:
 YY_RULE_SETUP
-#line 98 "xl-lexsp.l"
+#line 98 "xl-lexsp.flex"
 { int i,count=0;
                
                  for (i=0;i<yyleng;i++)
@@ -1075,7 +1073,7 @@ YY_RULE_SETUP
        YY_BREAK
 case 49:
 YY_RULE_SETUP
-#line 105 "xl-lexsp.l"
+#line 106 "xl-lexsp.flex"
 { int i=0,j=0;
                                                  char temp[FILENAMELENGTH];
 
@@ -1097,7 +1095,24 @@ YY_RULE_SETUP
        YY_BREAK
 case 50:
 YY_RULE_SETUP
-#line 124 "xl-lexsp.l"
+#line 125 "xl-lexsp.flex"
+{ int i=0,j=0;
+                                                 char temp[FILENAMELENGTH];
+
+                                                 while ((yytext[i]<'0')||
+                                                        (yytext[i]>'9')) 
+                                                       i++;
+                                                 while ((yytext[i]>='0') &&
+                                                        (yytext[i]<='9'))
+                                                       temp[j++]=yytext[i++];
+                                                 temp[j]='\0';
+                                                 CurrentInputLineNo = 
+                                                       atoi(temp);
+                                               }
+       YY_BREAK
+case 51:
+YY_RULE_SETUP
+#line 139 "xl-lexsp.flex"
 { int retvalue;
                
                              strcpy(token,yytext);
@@ -1119,9 +1134,9 @@ YY_RULE_SETUP
                                   }
                            }
        YY_BREAK
-case 51:
+case 52:
 YY_RULE_SETUP
-#line 145 "xl-lexsp.l"
+#line 160 "xl-lexsp.flex"
 { SYMTABPTR worksymtab;
                          char *modname,*name,*string;
                          int i;char ch;
@@ -1151,74 +1166,73 @@ YY_RULE_SETUP
                          }
                        }
        YY_BREAK
-case 52:
-#line 175 "xl-lexsp.l"
 case 53:
-#line 176 "xl-lexsp.l"
+#line 190 "xl-lexsp.flex"
 case 54:
-#line 177 "xl-lexsp.l"
+#line 191 "xl-lexsp.flex"
 case 55:
-#line 178 "xl-lexsp.l"
+#line 192 "xl-lexsp.flex"
 case 56:
-#line 179 "xl-lexsp.l"
+#line 193 "xl-lexsp.flex"
 case 57:
+#line 194 "xl-lexsp.flex"
+case 58:
 YY_RULE_SETUP
-#line 179 "xl-lexsp.l"
+#line 194 "xl-lexsp.flex"
 { mywriteoutput(yytext,CREATE);
                                  strcpy(token,yytext);return(PrevToken=NUMBER);                
                                }
        YY_BREAK
-case 58:
+case 59:
 YY_RULE_SETUP
-#line 183 "xl-lexsp.l"
+#line 198 "xl-lexsp.flex"
 {
                                mywriteoutput(yytext,CREATE);
                                  strcpy(token,yytext);return(PrevToken=CHAR_CONST);              }
        YY_BREAK
-case 59:
+case 60:
 YY_RULE_SETUP
-#line 187 "xl-lexsp.l"
+#line 202 "xl-lexsp.flex"
 { mywriteoutput(yytext,CREATE);
                                   strcpy(token,yytext);return(PrevToken=STRING);
                                 }
        YY_BREAK
-case 60:
+case 61:
 YY_RULE_SETUP
-#line 191 "xl-lexsp.l"
+#line 206 "xl-lexsp.flex"
 { writeoutput(yytext,NOFREE); }        /* Skip whitespace...*/
        YY_BREAK
-case 61:
+case 62:
 YY_RULE_SETUP
-#line 192 "xl-lexsp.l"
+#line 207 "xl-lexsp.flex"
 { CurrentInputLineNo++; WriteReturn(); 
                /*printf("%d Line\n",yylineno);*/
                }
        YY_BREAK
-case 62:
+case 63:
 YY_RULE_SETUP
-#line 196 "xl-lexsp.l"
+#line 211 "xl-lexsp.flex"
 {writeoutput(yytext,NOFREE);
                                        CurrentInputLineNo++;
                                        WriteReturn();}
        YY_BREAK
-case 63:
+case 64:
 YY_RULE_SETUP
-#line 200 "xl-lexsp.l"
+#line 215 "xl-lexsp.flex"
 {writeoutput(yytext,NOFREE);
                                        CurrentInputLineNo++;
                                        WriteReturn();}
        YY_BREAK
-case 64:
+case 65:
 YY_RULE_SETUP
-#line 204 "xl-lexsp.l"
+#line 219 "xl-lexsp.flex"
 { error("Lexical Oddity",EXIT); }
        YY_BREAK
-case 65:
+case 66:
 YY_RULE_SETUP
-#line 206 "xl-lexsp.l"
+#line 221 "xl-lexsp.flex"
 ECHO;
        YY_BREAK
-#line 1222 "lex.yy.c"
 case YY_STATE_EOF(INITIAL):
        yyterminate();
 
@@ -1402,7 +1416,7 @@ static int yy_get_next_buffer()
                /* don't do the read, it's not guaranteed to return an EOF,
                 * just force an EOF
                 */
-               yy_n_chars = 0;
+               yy_current_buffer->yy_n_chars = yy_n_chars = 0;
 
        else
                {
@@ -1457,6 +1471,8 @@ static int yy_get_next_buffer()
                /* Read in more data. */
                YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
                        yy_n_chars, num_to_read );
+
+               yy_current_buffer->yy_n_chars = yy_n_chars;
                }
 
        if ( yy_n_chars == 0 )
@@ -1581,7 +1597,8 @@ register char *yy_bp;
 
                yy_cp += (int) (dest - source);
                yy_bp += (int) (dest - source);
-               yy_n_chars = yy_current_buffer->yy_buf_size;
+               yy_current_buffer->yy_n_chars =
+                       yy_n_chars = yy_current_buffer->yy_buf_size;
 
                if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
                        YY_FATAL_ERROR( "flex scanner push-back overflow" );
@@ -1624,13 +1641,26 @@ static int input()
 
                        switch ( yy_get_next_buffer() )
                                {
+                               case EOB_ACT_LAST_MATCH:
+                                       /* This happens because yy_g_n_b()
+                                        * sees that we've accumulated a
+                                        * token and flags that we need to
+                                        * try matching the token before
+                                        * proceeding.  But for input(),
+                                        * there's no matching to consider.
+                                        * So convert the EOB_ACT_LAST_MATCH
+                                        * to EOB_ACT_END_OF_FILE.
+                                        */
+
+                                       /* Reset buffer status. */
+                                       yyrestart( yyin );
+
+                                       /* fall through */
+
                                case EOB_ACT_END_OF_FILE:
                                        {
                                        if ( yywrap() )
-                                               {
-                                               yy_c_buf_p = yytext_ptr + offset;
                                                return EOF;
-                                               }
 
                                        if ( ! yy_did_buffer_switch_on_eof )
                                                YY_NEW_FILE;
@@ -1644,15 +1674,6 @@ static int input()
                                case EOB_ACT_CONTINUE_SCAN:
                                        yy_c_buf_p = yytext_ptr + offset;
                                        break;
-
-                               case EOB_ACT_LAST_MATCH:
-#ifdef __cplusplus
-                                       YY_FATAL_ERROR(
-                                       "unexpected last match in yyinput()" );
-#else
-                                       YY_FATAL_ERROR(
-                                       "unexpected last match in input()" );
-#endif
                                }
                        }
                }
@@ -1816,6 +1837,9 @@ YY_BUFFER_STATE b;
 #endif
 
        {
+       if ( ! b )
+               return;
+
        b->yy_n_chars = 0;
 
        /* We always need two end-of-buffer characters.  The first causes
@@ -1875,17 +1899,17 @@ yy_size_t size;
 
 #ifndef YY_NO_SCAN_STRING
 #ifdef YY_USE_PROTOS
-YY_BUFFER_STATE yy_scan_string( yyconst char *str )
+YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
 #else
-YY_BUFFER_STATE yy_scan_string( str )
-yyconst char *str;
+YY_BUFFER_STATE yy_scan_string( yy_str )
+yyconst char *yy_str;
 #endif
        {
        int len;
-       for ( len = 0; str[len]; ++len )
+       for ( len = 0; yy_str[len]; ++len )
                ;
 
-       return yy_scan_bytes( str, len );
+       return yy_scan_bytes( yy_str, len );
        }
 #endif
 
@@ -2094,7 +2118,7 @@ int main()
        return 0;
        }
 #endif
-#line 206 "xl-lexsp.l"
+#line 221 "xl-lexsp.flex"
 
 
 yywrap(){ PrevToken=0; return(1); }
index e356fb243c3a484588c976e5a3f35235c3a414ff..e813aa7383cee9136e9030022b085af6d350edde 100755 (executable)
@@ -102,6 +102,7 @@ WS     [ \t\n]*
                  CurrentInputLineNo += count;
                  mywriteoutput(",} ",NOCREATE);return(PrevToken=COMMA_R_BRACE); }
 
+
 "#"{WhiteSpace}("line")?{WhiteSpace}[0-9]+{WhiteSpace}\"{ASTRNG}\" { int i=0,j=0;
                                                  char temp[FILENAMELENGTH];
 
@@ -121,6 +122,20 @@ WS     [ \t\n]*
                                                                yytext+i+1);
                                                }
 
+"#"{WhiteSpace}("line")?{WhiteSpace}[0-9]+ { int i=0,j=0;
+                                                 char temp[FILENAMELENGTH];
+
+                                                 while ((yytext[i]<'0')||
+                                                        (yytext[i]>'9')) 
+                                                       i++;
+                                                 while ((yytext[i]>='0') &&
+                                                        (yytext[i]<='9'))
+                                                       temp[j++]=yytext[i++];
+                                                 temp[j]='\0';
+                                                 CurrentInputLineNo = 
+                                                       atoi(temp);
+                                               }
+
 {ID}                      { int retvalue;
                
                              strcpy(token,yytext);