Ignore:
Timestamp:
1999-10-18T12:43:31+13:00 (25 years ago)
Author:
cs025
Message:

Changes to eradicate Xmalloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/commands.cpp

    r655 r711  
    2424/*
    2525   $Log$
     26   Revision 1.2  1999/10/17 23:43:24  cs025
     27   Changes to eradicate Xmalloc
     28
    2629   Revision 1.1  1999/10/11 02:57:08  cs025
    2730   Base install of MG-PP
     
    241244
    242245  /* join the two parameters together */
    243   buf = (char *) Xmalloc (strlen (param1) + strlen (param2) + 1);
     246  buf = new char[strlen (param1) + strlen (param2) + 1];
    244247  strcpy (buf, param1);
    245248  strcat (buf, param2);
     
    268271      InPipe = 0;
    269272      InFile = stdin;
    270       Xfree (buf);
     273      delete buf;
    271274      return;
    272275    }
     
    303306      InFile = stdin;
    304307    }
    305   Xfree (buf);
     308  delete buf;
    306309}
    307310
     
    320323
    321324  /* join the two parameters together */
    322   buf = (char *) Xmalloc (strlen (param1) + strlen (param2) + 1);
     325  buf = new char[strlen (param1) + strlen (param2) + 1];
    323326  strcpy (buf, param1);
    324327  strcat (buf, param2);
     
    350353      OutPipe = 0;
    351354      OutFile = stdout;
    352       Xfree (buf);
     355      delete buf;
    353356      return;
    354357    }
     
    384387      OutFile = stdout;
    385388    }
    386   Xfree (buf);
     389  delete buf;
    387390}
    388391
Note: See TracChangeset for help on using the changeset viewer.