blob: 136ffb9ac890d2c1205c4ed26a646414f078f8b3 (
plain)
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
|
$NetBSD: patch-src_nlist.cxx,v 1.2 2012/12/25 18:50:18 dholland Exp $
Chase after the C++ standard:
- use the newfangled names for C++ headers
- open the std namespace instead of using explicit "std" qualification
Also, declare main's return type.
--- src/nlist.cxx.orig 2000-02-04 23:39:56.000000000 +0000
+++ src/nlist.cxx
@@ -44,11 +44,13 @@ Description: Class NUMERICLIST
Author: Jim Fullton, Jim.Fullton@cnidr.org
@@@*/
-#include <stdlib.h>
-#include <iostream.h>
+#include <cstdlib>
+#include <iostream>
#include "nlist.hxx"
+using namespace std;
+
static INT
SortCmp(const void* x, const void* y);
@@ -875,6 +877,7 @@ NUMERICLIST::TempLoad()
}
+int
main()
{
NUMERICLIST list;
|