29 lines
726 B
Text
29 lines
726 B
Text
$NetBSD: patch-ag,v 1.2 2005/11/03 19:56:36 rillig Exp $
|
|
|
|
--- src/linklist.cc.orig 1998-12-07 08:28:51.000000000 +0000
|
|
+++ src/linklist.cc
|
|
@@ -1,12 +1,13 @@
|
|
+#include <iostream>
|
|
+#include <sstream>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
-#include <stream.h>
|
|
#include "weeks.h"
|
|
|
|
void newCon(Conductor* conduc)
|
|
{
|
|
if ((conduc->next=new Conductor)==NULL) {
|
|
- cerr << "Can't allocate!\n";
|
|
+ std::cerr << "Can't allocate!\n";
|
|
exit(1);
|
|
}
|
|
}
|
|
@@ -15,7 +16,7 @@ void newCon(Conductor* conduc)
|
|
void newFil(Filament* filam)
|
|
{
|
|
if ((filam->next=new Filament)==(Filament*)NULL) {
|
|
- cerr << "Can't allocate!\n";
|
|
+ std::cerr << "Can't allocate!\n";
|
|
exit(1);
|
|
}
|
|
filam->next->next = (Filament*) NULL;
|