summaryrefslogtreecommitdiff
path: root/textproc/isearch/patches/patch-Isearch-cgi_isrch__html.cxx
blob: 7a8134eb25bc1eaed503ea1b68d05aa09d04b3db (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
$NetBSD: patch-Isearch-cgi_isrch__html.cxx,v 1.1 2012/12/21 10:29:46 dholland Exp $

Chase after the C++ standard:
   - use the newfangled names for C++ headers
   - open the std namespace instead of using explicit "std" qualification
   - string constants are const char *

--- Isearch-cgi/isrch_html.cxx~	1998-05-18 19:22:06.000000000 +0000
+++ Isearch-cgi/isrch_html.cxx
@@ -50,18 +50,18 @@ History:
 		Archie Warnock, warnock@clark.net
 @@@*/
 
-#include <iostream.h>
-#include <stdio.h>
+#include <iostream>
+#include <cstdio>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <string.h>
+#include <cstring>
 #ifdef UNIX
 #include <sys/time.h>
 #else
 #include <time.h>
 #endif
 
-#include <locale.h>
+#include <clocale>
 
 #include "gdt.h"
 #include "isearch.hxx"
@@ -80,6 +80,8 @@ History:
 #include "config.hxx"
 #include "cgi-util.hxx"
 
+using namespace std;
+
 #define SEARCH_TYPE(n)		((n) & SEARCH_TYPE_MASK)
 #define SEARCH_CLASS(n)		((n) & SEARCH_CLASS_MASK)
 
@@ -337,7 +339,7 @@ gettok(PCHR input)
 }
 
 PCHR
-get_field(PCHR f, INT n)
+get_field(PKCHR f, INT n)
 {
   PCHR bp;
   PCHR field;