summaryrefslogtreecommitdiff
path: root/math/simpack/files/patch-aa
blob: 30e23ca5fa5051f209efe4b843519ec4644970dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
diff -urd Makefile work/simpack/Makefile
--- Makefile	Fri Aug 25 00:59:55 1995
+++ work/simpack/Makefile	Mon May 19 15:41:15 1997
@@ -1,10 +1,10 @@
 all:	
 	@more COPYRIGHT
-	@Ask License
-	@Ask License.gnu
+	@./Ask License
+	@./Ask License.gnu
 	date
 	@echo 'Begin making'
-	(cd func; Make_all)
+	(cd func; ./Make_all)
 	@echo 'Unconditionally make the rest of SimPack3:'
 	@echo 'Declarative ...'
 	(cd dec; make all)
@@ -26,7 +26,7 @@
 	date
 	@echo 'Begin cleaning'
 	find . -name '*~' -exec rm {} \;
-	(cd func; Make_clean)
+	(cd func; ./Make_clean)
 	(cd dec; make clean)
 	(cd multimodel; make clean)
 	(cd constraint; make clean)
diff -urd constraint/differential/deq/order1.c work/simpack/constraint/differential/deq/order1.c
--- constraint/differential/deq/order1.c	Fri Aug 25 00:59:58 1995
+++ work/simpack/constraint/differential/deq/order1.c	Mon May 19 16:17:44 1997
@@ -353,7 +353,7 @@
             s[++i]='-';
           }
 	  s[++i]=ch;
-	  while isalnum(s[++i]=lower(getchar()));
+	  while (isalnum(s[++i]=lower(getchar())));
 	  ch=s[i];
 	  s[i]='\0';
 	  switch (lookup(s,&time_present,&dim)) {
diff -urd dec/petri/petri.c work/simpack/dec/petri/petri.c
--- dec/petri/petri.c	Fri Aug 25 01:00:03 1995
+++ work/simpack/dec/petri/petri.c	Mon May 19 16:05:38 1997
@@ -15,6 +15,8 @@
 #include <stdio.h>
 #include "../../func/queuing/queuing.h"
 
+#define random(x,y) random_int(x,y)
+
 #define BUSY 1
 #define FREE 0
 #define BEGINFIRE 1
diff -urd func/Make_all work/simpack/func/Make_all
--- func/Make_all	Fri Aug 25 01:00:06 1995
+++ work/simpack/func/Make_all	Mon May 19 15:40:46 1997
@@ -10,10 +10,10 @@
 echo 'Done creating SimPack2.x Queuing Library (or it was already current)'
 
 echo 'About to create Sim++ version 1.0 Event Model Tools ...'
-(cd event; Make_all)
+(cd event; ./Make_all)
 
 echo 'About to create SimPack3 Time-Slice Functional Model Packages ...'
-(cd slice; Make_all)
+(cd slice; ./Make_all)
 
 echo 'simpack/func/Make_all is done.'
 date
diff -urd func/Make_clean work/simpack/func/Make_clean
--- func/Make_clean	Fri Aug 25 01:00:07 1995
+++ work/simpack/func/Make_clean	Mon May 19 15:41:49 1997
@@ -2,8 +2,8 @@
 echo 'Remove Simpack2.x queuing library object file ...'
 (cd queuing; rm -f queuing.o)
 echo 'Remove Sim++ ...'
-(cd event; Make_clean)
+(cd event; ./Make_clean)
 echo 'Remove SimPack3 Time-Slice Functional Model Packages ...'
-(cd slice; Make_clean)
+(cd slice; ./Make_clean)
 echo 'simpack/func/Make_clean is done.'
 date
diff -urd func/event/Make_all work/simpack/func/event/Make_all
--- func/event/Make_all	Fri Aug 25 01:01:00 1995
+++ work/simpack/func/event/Make_all	Mon May 19 15:43:03 1997
@@ -4,7 +4,7 @@
 echo 'copyright (c) 1995; see license in root directory of the distribution,'
 echo 'which is simpack/func/event.'
 echo 'The License for Sim++ is separate from the SimPack3 License.'
-Ask License
+./Ask License
 if ( [ -f REJECT ] ) then
   echo 'You cannot proceed with Sim++ because you have rejected the terms and'
   echo 'conditions of the Sim++ License.'
@@ -20,7 +20,7 @@
 echo ' '
 if ( [ "$ansa" = "y" ] ) then
   echo 'Creating Sim++ Object Library ...'
-  Translat 
+  ./Translat 
   echo 'Done.'
   fi
 
@@ -29,7 +29,7 @@
 echo ' '
 if ( [ "$ansa" = "y" ] ) then
   echo 'Creating Sim++ Example Code Executables ...'
-  (cd examples; translat)
+  (cd examples; ./translat)
   echo 'Done.'
   fi
 
diff -urd func/event/Translat work/simpack/func/event/Translat
--- func/event/Translat	Fri Aug 25 01:00:59 1995
+++ work/simpack/func/event/Translat	Mon May 19 15:43:52 1997
@@ -18,22 +18,22 @@
 echo 'About to Build Sim++ Object Library ...'
 date
 (cd src; chmod 600 *)
-Trans1 calendar
-Trans1 capifac
-Trans1 capifut
-Trans1 capiran
-Trans1 event
-Trans1 estatus
-Trans1 facility
-Trans1 flist
-Trans1 future
-Trans1 heap
-Trans1 leftist
-Trans1 linked
-Trans1 service
-Trans1 token
-Trans1 util
-Trans1 vlist
+./Trans1 calendar
+./Trans1 capifac
+./Trans1 capifut
+./Trans1 capiran
+./Trans1 event
+./Trans1 estatus
+./Trans1 facility
+./Trans1 flist
+./Trans1 future
+./Trans1 heap
+./Trans1 leftist
+./Trans1 linked
+./Trans1 service
+./Trans1 token
+./Trans1 util
+./Trans1 vlist
 (cd src; chmod 444 *)
 
 echo ' '
diff -urd func/event/examples/airport/makefile work/simpack/func/event/examples/airport/makefile
--- func/event/examples/airport/makefile	Fri Aug 25 01:00:34 1995
+++ work/simpack/func/event/examples/airport/makefile	Mon May 19 15:45:05 1997
@@ -4,26 +4,26 @@
 #
 # makefile for examples/airport
 
-	     PGM = airport
+PGM = airport
 
-	    INCL = ../../include                # where to find sim++ *.h
-	     OLB = ../../olb                    # where to find sim++ *.o
+INCL = ../../include                # where to find sim++ *.h
+OLB = ../../olb                    # where to find sim++ *.o
 
-	COMPILER = g++ -I$(INCL) -c -o
-	  LINKER = g++ -o
+COMPILER = g++ -I$(INCL) -c -o
+LINKER = g++ -o
 
 
 # enumerate sim++ object modules:
 
-	 MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
-	 MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
-	 MAIN_OBJ = $(MAIN_1) $(MAIN_2)
+MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
+MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
+MAIN_OBJ = $(MAIN_1) $(MAIN_2)
 
-	 CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
+CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
 
-	 VLIST_1 = $(OLB)/vlist.o
-	 VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
-	 VLIST_OBJ = $(VLIST_1) $(VLIST_2)
+VLIST_1 = $(OLB)/vlist.o
+VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
+VLIST_OBJ = $(VLIST_1) $(VLIST_2)
 
 # link
 
diff -urd func/event/examples/block/makefile work/simpack/func/event/examples/block/makefile
--- func/event/examples/block/makefile	Fri Aug 25 01:00:15 1995
+++ work/simpack/func/event/examples/block/makefile	Mon May 19 15:45:43 1997
@@ -4,26 +4,26 @@
 #
 # makefile for examples/block (formerly blocking)
 
-	     PGM = block
+PGM = block
 
-	    INCL = ../../include                # where to find sim++ *.h
-	     OLB = ../../olb                    # where to find sim++ *.o
+INCL = ../../include                # where to find sim++ *.h
+OLB = ../../olb                    # where to find sim++ *.o
 
-	COMPILER = g++ -I$(INCL) -c -o
-	  LINKER = g++ -o
+COMPILER = g++ -I$(INCL) -c -o
+LINKER = g++ -o
 
 
 # enumerate sim++ object modules:
 
-	 MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
-	 MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
-	 MAIN_OBJ = $(MAIN_1) $(MAIN_2)
+MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
+MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
+MAIN_OBJ = $(MAIN_1) $(MAIN_2)
 
-	 CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
+CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
 
-	 VLIST_1 = $(OLB)/vlist.o
-	 VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
-	 VLIST_OBJ = $(VLIST_1) $(VLIST_2)
+VLIST_1 = $(OLB)/vlist.o
+VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
+VLIST_OBJ = $(VLIST_1) $(VLIST_2)
 
 # link
 
diff -urd func/event/examples/cpudisk/makefile work/simpack/func/event/examples/cpudisk/makefile
--- func/event/examples/cpudisk/makefile	Fri Aug 25 01:00:11 1995
+++ work/simpack/func/event/examples/cpudisk/makefile	Mon May 19 15:46:27 1997
@@ -4,23 +4,23 @@
 #
 # makefile for examples/cpudisk
 
-	    INCL = ../../include                # where to find sim++ *.h
-	     OLB = ../../olb                    # where to find sim++ *.o
+INCL = ../../include                # where to find sim++ *.h
+OLB = ../../olb                    # where to find sim++ *.o
 
-	COMPILER = g++ -I$(INCL) -c -o
-	  LINKER = g++ -o
+COMPILER = g++ -I$(INCL) -c -o
+LINKER = g++ -o
 
 # enumerate sim++ object modules:
 
-	 MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
-	 MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
-	 MAIN_OBJ = $(MAIN_1) $(MAIN_2)
+MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
+MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
+MAIN_OBJ = $(MAIN_1) $(MAIN_2)
 
-	 CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
+CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
 
-	 VLIST_1 = $(OLB)/vlist.o
-	 VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
-	 VLIST_OBJ = $(VLIST_1) $(VLIST_2)
+VLIST_1 = $(OLB)/vlist.o
+VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
+VLIST_OBJ = $(VLIST_1) $(VLIST_2)
 
 # link cpudisk
 
diff -urd func/event/examples/iterate/makefile work/simpack/func/event/examples/iterate/makefile
--- func/event/examples/iterate/makefile	Fri Aug 25 01:00:33 1995
+++ work/simpack/func/event/examples/iterate/makefile	Mon May 19 15:47:02 1997
@@ -4,26 +4,26 @@
 #
 # makefile for examples/iterate
 
-	     PGM = iterate
+PGM = iterate
 
-	    INCL = ../../include                # where to find sim++ *.h
-	     OLB = ../../olb                    # where to find sim++ *.o
+INCL = ../../include                # where to find sim++ *.h
+OLB = ../../olb                    # where to find sim++ *.o
 
-	COMPILER = g++ -I$(INCL) -c -o
-	  LINKER = g++ -o
+COMPILER = g++ -I$(INCL) -c -o
+LINKER = g++ -o
 
 
 # enumerate sim++ object modules:
 
-	 MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
-	 MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
-	 MAIN_OBJ = $(MAIN_1) $(MAIN_2)
+MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
+MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
+MAIN_OBJ = $(MAIN_1) $(MAIN_2)
 
-	 CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
+CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
 
-	 VLIST_1 = $(OLB)/vlist.o
-	 VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
-	 VLIST_OBJ = $(VLIST_1) $(VLIST_2)
+VLIST_1 = $(OLB)/vlist.o
+VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
+VLIST_OBJ = $(VLIST_1) $(VLIST_2)
 
 # link
 
diff -urd func/event/examples/logic/makefile work/simpack/func/event/examples/logic/makefile
--- func/event/examples/logic/makefile	Fri Aug 25 01:00:31 1995
+++ work/simpack/func/event/examples/logic/makefile	Mon May 19 15:47:39 1997
@@ -4,26 +4,26 @@
 #
 # makefile for examples/logic
 
-	     PGM = logic
+PGM = logic
 
-	    INCL = ../../include                # where to find sim++ *.h
-	     OLB = ../../olb                    # where to find sim++ *.o
+INCL = ../../include                # where to find sim++ *.h
+OLB = ../../olb                    # where to find sim++ *.o
 
-	COMPILER = g++ -I$(INCL) -c -o
-	  LINKER = g++ -o
+COMPILER = g++ -I$(INCL) -c -o
+LINKER = g++ -o
 
 
 # enumerate sim++ object modules:
 
-	 MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
-	 MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
-	 MAIN_OBJ = $(MAIN_1) $(MAIN_2)
+MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
+MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
+MAIN_OBJ = $(MAIN_1) $(MAIN_2)
 
-	 CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
+CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
 
-	 VLIST_1 = $(OLB)/vlist.o
-	 VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
-	 VLIST_OBJ = $(VLIST_1) $(VLIST_2)
+VLIST_1 = $(OLB)/vlist.o
+VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
+VLIST_OBJ = $(VLIST_1) $(VLIST_2)
 
 # link
 
diff -urd func/event/examples/network/makefile work/simpack/func/event/examples/network/makefile
--- func/event/examples/network/makefile	Fri Aug 25 01:00:27 1995
+++ work/simpack/func/event/examples/network/makefile	Mon May 19 15:48:23 1997
@@ -4,26 +4,26 @@
 #
 # makefile for examples/network
 
-	     PGM = network
+PGM = network
 
-	    INCL = ../../include                # where to find sim++ *.h
-	     OLB = ../../olb                    # where to find sim++ *.o
+INCL = ../../include                # where to find sim++ *.h
+OLB = ../../olb                    # where to find sim++ *.o
 
-	COMPILER = g++ -I$(INCL) -c -o
-	  LINKER = g++ -o
+COMPILER = g++ -I$(INCL) -c -o
+LINKER = g++ -o
 
 
 # enumerate sim++ object modules:
 
-	 MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
-	 MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
-	 MAIN_OBJ = $(MAIN_1) $(MAIN_2)
+MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
+MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
+MAIN_OBJ = $(MAIN_1) $(MAIN_2)
 
-	 CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
+CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
 
-	 VLIST_1 = $(OLB)/vlist.o
-	 VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
-	 VLIST_OBJ = $(VLIST_1) $(VLIST_2)
+VLIST_1 = $(OLB)/vlist.o
+VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
+VLIST_OBJ = $(VLIST_1) $(VLIST_2)
 
 # link
 
diff -urd func/event/examples/qnet/makefile work/simpack/func/event/examples/qnet/makefile
--- func/event/examples/qnet/makefile	Fri Aug 25 01:00:28 1995
+++ work/simpack/func/event/examples/qnet/makefile	Mon May 19 15:49:03 1997
@@ -4,26 +4,26 @@
 #
 # makefile for examples/qnet
 
-	     PGM = qnet
+PGM = qnet
 
-	    INCL = ../../include                # where to find sim++ *.h
-	     OLB = ../../olb                    # where to find sim++ *.o
+INCL = ../../include                # where to find sim++ *.h
+OLB = ../../olb                    # where to find sim++ *.o
 
-	COMPILER = g++ -I$(INCL) -c -o
-	  LINKER = g++ -o
+COMPILER = g++ -I$(INCL) -c -o
+LINKER = g++ -o
 
 
 # enumerate sim++ object modules:
 
-	 MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
-	 MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
-	 MAIN_OBJ = $(MAIN_1) $(MAIN_2)
+MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
+MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
+MAIN_OBJ = $(MAIN_1) $(MAIN_2)
 
-	 CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
+CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
 
-	 VLIST_1 = $(OLB)/vlist.o
-	 VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
-	 VLIST_OBJ = $(VLIST_1) $(VLIST_2)
+VLIST_1 = $(OLB)/vlist.o
+VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
+VLIST_OBJ = $(VLIST_1) $(VLIST_2)
 
 # link
 
diff -urd func/event/examples/route/makefile work/simpack/func/event/examples/route/makefile
--- func/event/examples/route/makefile	Fri Aug 25 01:00:31 1995
+++ work/simpack/func/event/examples/route/makefile	Mon May 19 15:49:39 1997
@@ -4,26 +4,26 @@
 #
 # makefile for examples/route
 
-	     PGM = route
+PGM = route
 
-	    INCL = ../../include                # where to find sim++ *.h
-	     OLB = ../../olb                    # where to find sim++ *.o
+INCL = ../../include                # where to find sim++ *.h
+OLB = ../../olb                    # where to find sim++ *.o
 
-	COMPILER = g++ -I$(INCL) -c -o
-	  LINKER = g++ -o
+COMPILER = g++ -I$(INCL) -c -o
+LINKER = g++ -o
 
 
 # enumerate sim++ object modules:
 
-	 MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
-	 MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
-	 MAIN_OBJ = $(MAIN_1) $(MAIN_2)
+MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
+MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
+MAIN_OBJ = $(MAIN_1) $(MAIN_2)
 
-	 CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
+CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
 
-	 VLIST_1 = $(OLB)/vlist.o
-	 VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
-	 VLIST_OBJ = $(VLIST_1) $(VLIST_2)
+VLIST_1 = $(OLB)/vlist.o
+VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
+VLIST_OBJ = $(VLIST_1) $(VLIST_2)
 
 # link
 
diff -urd func/event/examples/ssq/makefile work/simpack/func/event/examples/ssq/makefile
--- func/event/examples/ssq/makefile	Fri Aug 25 01:00:17 1995
+++ work/simpack/func/event/examples/ssq/makefile	Mon May 19 15:50:34 1997
@@ -4,26 +4,26 @@
 #
 # makefile for examples/ssq (formerly q1 in ssq directory)
 
-	     PGM = ssq
+PGM = ssq
 
-	    INCL = ../../include                # where to find sim++ *.h
-	     OLB = ../../olb                    # where to find sim++ *.o
+INCL = ../../include                # where to find sim++ *.h
+OLB = ../../olb                    # where to find sim++ *.o
 
-	COMPILER = g++ -I$(INCL) -c -o
-	  LINKER = g++ -o
+COMPILER = g++ -I$(INCL) -c -o
+LINKER = g++ -o
 
 
 # enumerate sim++ object modules:
 
-	 MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
-	 MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
-	 MAIN_OBJ = $(MAIN_1) $(MAIN_2)
+MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
+MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
+MAIN_OBJ = $(MAIN_1) $(MAIN_2)
 
-	 CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
+CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
 
-	 VLIST_1 = $(OLB)/vlist.o
-	 VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
-	 VLIST_OBJ = $(VLIST_1) $(VLIST_2)
+VLIST_1 = $(OLB)/vlist.o
+VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
+VLIST_OBJ = $(VLIST_1) $(VLIST_2)
 
 # link
 
diff -urd func/event/examples/tiktok/makefile work/simpack/func/event/examples/tiktok/makefile
--- func/event/examples/tiktok/makefile	Fri Aug 25 01:00:25 1995
+++ work/simpack/func/event/examples/tiktok/makefile	Mon May 19 15:51:13 1997
@@ -4,26 +4,26 @@
 #
 # makefile for examples/tiktok (formerly ticktock in clock directory)
 
-	     PGM = tiktok
+PGM = tiktok
 
-	    INCL = ../../include                # where to find sim++ *.h
-	     OLB = ../../olb                    # where to find sim++ *.o
+INCL = ../../include                # where to find sim++ *.h
+OLB = ../../olb                    # where to find sim++ *.o
 
-	COMPILER = g++ -I$(INCL) -c -o
-	  LINKER = g++ -o
+COMPILER = g++ -I$(INCL) -c -o
+LINKER = g++ -o
 
 
 # enumerate sim++ object modules:
 
-	 MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
-	 MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
-	 MAIN_OBJ = $(MAIN_1) $(MAIN_2)
+MAIN_1 = $(OLB)/event.o $(OLB)/facility.o $(OLB)/flist.o $(OLB)/future.o
+MAIN_2 = $(OLB)/service.o $(OLB)/token.o $(OLB)/util.o $(OLB)/estatus.o
+MAIN_OBJ = $(MAIN_1) $(MAIN_2)
 
-	 CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
+CAPI_OBJ = $(OLB)/capifac.o $(OLB)/capifut.o $(OLB)/capiran.o
 
-	 VLIST_1 = $(OLB)/vlist.o
-	 VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
-	 VLIST_OBJ = $(VLIST_1) $(VLIST_2)
+VLIST_1 = $(OLB)/vlist.o
+VLIST_2 = $(OLB)/calendar.o $(OLB)/heap.o $(OLB)/linked.o $(OLB)/leftist.o
+VLIST_OBJ = $(VLIST_1) $(VLIST_2)
 
 # link
 
diff -urd func/event/examples/translat work/simpack/func/event/examples/translat
--- func/event/examples/translat	Fri Aug 25 01:00:34 1995
+++ work/simpack/func/event/examples/translat	Mon May 19 15:57:52 1997
@@ -7,18 +7,18 @@
 
 if ( [ "$1" = "rm" -o "$1" = "-rm" ] ) then
   echo ' '
-  echo 'Removing all translation byproducts from Sim++ program examples ...'
+  echo 'Removing all ./translation byproducts from Sim++ program examples ...'
   echo ' '
-  (cd cpudisk; translat -rm)
-  (cd block;   translat -rm)
-  (cd tiktok;  translat -rm)
-  (cd ssq;     translat -rm)
-  (cd iterate; translat -rm)
-  (cd airport; translat -rm)
-  (cd logic;   translat -rm)
-  (cd network; translat -rm)
-  (cd qnet;    translat -rm)
-  (cd route;   translat -rm)
+  (cd cpudisk; ./translat -rm)
+  (cd block;   ./translat -rm)
+  (cd tiktok;  ./translat -rm)
+  (cd ssq;     ./translat -rm)
+  (cd iterate; ./translat -rm)
+  (cd airport; ./translat -rm)
+  (cd logic;   ./translat -rm)
+  (cd network; ./translat -rm)
+  (cd qnet;    ./translat -rm)
+  (cd route;   ./translat -rm)
   echo ' '
   echo 'Done Removing.'
   echo ' '
@@ -29,16 +29,16 @@
 echo 'Build (version 1 of) ALL Sim++ Program Examples ...'
 echo ' '
 
-  (cd cpudisk; translat 1)
-  (cd block;   translat 1)
-  (cd tiktok;  translat 1)
-  (cd ssq;     translat 1)
-  (cd iterate; translat 1)
-  (cd logic;   translat 1)
-  (cd network; translat 1)
-  (cd qnet;    translat 1)
-  (cd route;   translat 1)
+  (cd cpudisk; ./translat 1)
+  (cd block;   ./translat 1)
+  (cd tiktok;  ./translat 1)
+  (cd ssq;     ./translat 1)
+  (cd iterate; ./translat 1)
+  (cd logic;   ./translat 1)
+  (cd network; ./translat 1)
+  (cd qnet;    ./translat 1)
+  (cd route;   ./translat 1)
 
 echo ' '
-echo 'simpack/func/event/examples/translat is done.'
+echo 'simpack/func/event/examples/./translat is done.'
 echo ' '
diff -urd func/event/pkgs/Xsimcode/examples/Makefile work/simpack/func/event/pkgs/Xsimcode/examples/Makefile
--- func/event/pkgs/Xsimcode/examples/Makefile	Fri Aug 25 01:00:46 1995
+++ work/simpack/func/event/pkgs/Xsimcode/examples/Makefile	Mon May 19 16:15:10 1997
@@ -7,10 +7,10 @@
 #  modified 950728 by robert cubert as part of SimPack3 release
 #  including Sim++ version 1.0: see Readme.
 
-	     INCL= ../../../../queuing                   # to find queuing.h
-          SOBJECT= ../../../../queuing/queuing.o
-	COMPILER = cc -I$(INCL) -c -o
-          LINKER = cc -o 
+INCL= ../../../../queuing                   # to find queuing.h
+SOBJECT= ../../../../queuing/queuing.o
+COMPILER = cc -I$(INCL) -c -o
+LINKER = cc -o 
 
 # Do NOT change compiler to gcc!  It will create code that compiles and links
 # but runs incorrectly.
diff -urd func/event/pkgs/minigpss/gpsource/Makefile work/simpack/func/event/pkgs/minigpss/gpsource/Makefile
--- func/event/pkgs/minigpss/gpsource/Makefile	Fri Aug 25 01:00:54 1995
+++ work/simpack/func/event/pkgs/minigpss/gpsource/Makefile	Mon May 19 16:11:42 1997
@@ -1,5 +1,5 @@
 QUEUING = ../../../../queuing/queuing.o
-   INCL = ../../../../queuing
+INCL = ../../../../queuing
 
 gpss:	   	gen main	
 gen:		lex.yy.c y.tab.c
diff -urd func/event/pkgs/minigpss/gpsource/main.c work/simpack/func/event/pkgs/minigpss/gpsource/main.c
--- func/event/pkgs/minigpss/gpsource/main.c	Fri Aug 25 01:00:53 1995
+++ work/simpack/func/event/pkgs/minigpss/gpsource/main.c	Mon May 19 16:00:51 1997
@@ -2,6 +2,9 @@
 #include "y.tab.c"
 #include "error.c"
 #include "codgen.c"
+
+#define random(x,y) random_int(x,y)
+
 #define  Pri  1
 #define  ARRIVE_  1
 #define  REQUEST_ 2
diff -urd func/queuing/queuing.c work/simpack/func/queuing/queuing.c
--- func/queuing/queuing.c	Fri Aug 25 01:00:07 1995
+++ work/simpack/func/queuing/queuing.c	Mon May 19 16:02:15 1997
@@ -34,6 +34,9 @@
 #define UNIXX   0
 #define TURBOC  0
 
+#define random(x,y) random_int(x,y)
+#define cfree  free
+
 #define NIL 0 
 #define FREE 0 
 #define BUSY 1 
@@ -683,7 +686,7 @@
   if(current_node == NIL) {
     printf("PREEMPT: Attempt to preempt a non-existent token\n");
     printf("Token # %d\n",n);
-    exit();
+    exit(1);
   } else {
     temp = current_node->item;
     if (previous_node == current_node ) {
@@ -1422,7 +1425,7 @@
       endwin();
 #endif
       printf("\n");
-      exit();
+      exit(0);
     }
   } /* end if */
 } /* end if (trace_flag == ON) */