Changeset 711 for trunk/gsdl/src/mgpp/text/commands.cpp
- Timestamp:
- 1999-10-18T12:43:31+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/text/commands.cpp
r655 r711 24 24 /* 25 25 $Log$ 26 Revision 1.2 1999/10/17 23:43:24 cs025 27 Changes to eradicate Xmalloc 28 26 29 Revision 1.1 1999/10/11 02:57:08 cs025 27 30 Base install of MG-PP … … 241 244 242 245 /* join the two parameters together */ 243 buf = (char *) Xmalloc (strlen (param1) + strlen (param2) + 1);246 buf = new char[strlen (param1) + strlen (param2) + 1]; 244 247 strcpy (buf, param1); 245 248 strcat (buf, param2); … … 268 271 InPipe = 0; 269 272 InFile = stdin; 270 Xfree (buf);273 delete buf; 271 274 return; 272 275 } … … 303 306 InFile = stdin; 304 307 } 305 Xfree (buf);308 delete buf; 306 309 } 307 310 … … 320 323 321 324 /* join the two parameters together */ 322 buf = (char *) Xmalloc (strlen (param1) + strlen (param2) + 1);325 buf = new char[strlen (param1) + strlen (param2) + 1]; 323 326 strcpy (buf, param1); 324 327 strcat (buf, param2); … … 350 353 OutPipe = 0; 351 354 OutFile = stdout; 352 Xfree (buf);355 delete buf; 353 356 return; 354 357 } … … 384 387 OutFile = stdout; 385 388 } 386 Xfree (buf);389 delete buf; 387 390 } 388 391
Note:
See TracChangeset
for help on using the changeset viewer.