replaced calls to NEW by calls to ALLOCATE
authorceriel <none@none>
Thu, 15 Oct 1987 15:41:00 +0000 (15:41 +0000)
committerceriel <none@none>
Thu, 15 Oct 1987 15:41:00 +0000 (15:41 +0000)
lang/m2/libm2/CSP.mod
lang/m2/libm2/PascalIO.mod

index 1477806..4164460 100644 (file)
@@ -160,7 +160,7 @@ IMPLEMENTATION MODULE CSP;
   BEGIN
        Pop(free, newprocess);
        IF newprocess = NIL THEN
-               NEW(newprocess);
+               ALLOCATE(newprocess,SIZE(ProcessDescriptor));
                ALLOCATE(newprocess^.wsp, WorkSpaceSize)
        END;
        WITH newprocess^ DO
@@ -195,7 +195,7 @@ IMPLEMENTATION MODULE CSP;
   PROCEDURE InitChannel(VAR ch: Channel);
   (* Initialize the channel ch *)
   BEGIN
-       NEW(ch);
+       ALLOCATE(ch, SIZE(ChannelDescriptor));
        WITH ch^ DO
                InitQueue(senders);
                owner := NIL;
@@ -335,7 +335,7 @@ IMPLEMENTATION MODULE CSP;
 BEGIN
        InitQueue(free);
        InitQueue(ready);
-       NEW(cp);
+       ALLOCATE(cp,SIZE(ProcessDescriptor));
        WITH cp^ DO
                sons := 0;
                father := NIL
index 541350d..774069f 100644 (file)
@@ -110,7 +110,7 @@ IMPLEMENTATION MODULE PascalIO;
                text := text^.next;
        END;
        IF text = NIL THEN
-               NEW(text);
+               ALLOCATE(text,SIZE(IOBuf));
                text^.next := head;
                head := text;
        END;