File: README.compile_VC6

package info (click to toggle)
source-highlight 1.11-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,872 kB
  • ctags: 4,699
  • sloc: sh: 3,633; cpp: 2,606; lex: 2,463; ansic: 1,610; makefile: 537; php: 185; perl: 145; yacc: 122; ruby: 63; sed: 53; python: 45; ml: 38; java: 30
file content (218 lines) | stat: -rw-r--r-- 9,588 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
==============================================================
COMPILING with WIN32 using the Visual C (Version 6.0) compiler
==============================================================

This is a mail I received; I haven't tested the changes, anyway, but you
may find it useful.
Many thanks to Nazar

Here's the mail 

From: "Nazar Gabriel" <nazargabriel@hotmail.com>
To: bug-cpp2html@gnu.org
Subject: changes required for porting to win32-VC6.0
Date: Sun, 17 Dec 2000 12:12:22 -0800

To whom it may concern,

Attached please find a list of changes that were required to port cpp2html 
to WIN32 using the Visual C (Version 6.0) compiler.


best regards,
Nazar



processing FILE:getopt.c C:\progra~1\micros~2\myprojects\cpp2html\getopt.c
Line added before (55),<#ifdef WIN32>
Line added before (55),<#define alloca _alloca>
Line added before (55),<void *_alloca(size_t size);>
Line added before (55),<#include <string.h>>
Line added before (55),<#endif // WIN32>
Line added before (55),<>
Line # (456)<	    if (s - nextchar == strlen (p->name))>
replaced with<	    if (((size_t)(s - nextchar)) == strlen (p->name))>
getopt.c C:\progra~1\micros~2\myprojects\cpp2html\getopt.c is different(7).
processing FILE:getopt1.c C:\progra~1\micros~2\myprojects\cpp2html\getopt1.c
processing FILE:optparser.cc 
C:\progra~1\micros~2\myprojects\cpp2html\optparser.cpp
Line # (37)<#ifdef HAVE_CONFIG_H>
replaced with<#ifdef WIN32>
Line # (38)<#include "config.h">
replaced with<#ifdef __cplusplus>
Line # (39)<#endif // HAVE_CONFIG_H>
replaced with<	extern "C" void parseTags(void);>
Line added before (41),<#ifdef HAVE_CONFIG_H>
Line added before (41),<#include "config.h">
Line added before (41),<#endif // HAVE_CONFIG_H>
Line added before (41),<>
Line # (59),deleted<void parseTags() ;>
Line # (60),deleted<>
Line added before (410),<#ifdef WIN32>
Line added before (410),<#define alloca _alloca>
Line added before (410),<void *_alloca(size_t size);>
Line added before (410),<>
Line added before (410),<#endif // WIN32>
Line added before (410),<>
Line added before (410),<>
Line # (936)<void parseTags() {>
replaced with<void parseTags(void) {>
Line # 966,<  strstream str ;>
Commented out,<  //strstream str;>
Line # (967)<  str << "*** " << s << " on option # " << line << ends ;>
replaced with<  cerr << "*** " << s << " on option # " << line << endl ;>
Line # (968)<  printError( str.str(), cerr ) ;>
replaced with<  cerr << "Using default tags..." << endl;>
optparser.cc C:\progra~1\micros~2\myprojects\cpp2html\optparser.cpp is 
different(21).
processing FILE:optscanner.cc 
C:\progra~1\micros~2\myprojects\cpp2html\optscanner.cpp
Line added before (24),<#ifndef WIN32>
Line # (26)</* Use prototypes in function declarations. */>
replaced with<#endif // WIN32>
Line # (29)</* The "const" storage-class-modifier is valid. */>
replaced with<#ifdef WIN32>
Line # (30)<#define YY_USE_CONST>
replaced with<#define isatty _isatty>
Line added before (32),</* Use prototypes in function declarations. */>
Line added before (32),<#define YY_USE_PROTOS>
Line added before (32),<>
Line added before (32),</* The "const" storage-class-modifier is valid. */>
Line added before (32),<#define YY_USE_CONST>
Line added before (32),<>
optscanner.cc C:\progra~1\micros~2\myprojects\cpp2html\optscanner.cpp is 
different(11).
processing FILE:scanner.cc 
C:\progra~1\micros~2\myprojects\cpp2html\scanner.cpp
Line added before (24),<#ifndef WIN32>
Line # (26)</* Use prototypes in function declarations. */>
replaced with<#endif // WIN32>
Line # (29)</* The "const" storage-class-modifier is valid. */>
replaced with<#ifdef WIN32>
Line # (30)<#define YY_USE_CONST>
replaced with<#define isatty _isatty>
Line added before (32),</* Use prototypes in function declarations. */>
Line added before (32),<#define YY_USE_PROTOS>
Line added before (32),<>
Line added before (32),</* The "const" storage-class-modifier is valid. */>
Line added before (32),<#define YY_USE_CONST>
Line added before (32),<>
scanner.cc C:\progra~1\micros~2\myprojects\cpp2html\scanner.cpp is 
different(11).
processing FILE:yywrap.c C:\progra~1\micros~2\myprojects\cpp2html\yywrap.c
processing FILE:main.cc C:\progra~1\micros~2\myprojects\cpp2html\main.cpp
Line added before (19),<#ifdef WIN32>
Line added before (19),<#define PACKAGE "cpp2html">
Line added before (19),<#define VERSION "1.2.0">
Line added before (19),<#endif // WIN32>
Line added before (19),<>
Line added before (19),<>
Line # (57)<extern int parseTags() ;>
replaced with<#ifdef WIN32>
SL=<  print_text( copyright_text_length, copyright_text ) ;>
ADDED AFTER OLD Line #(359):  static char *pszCopyRightText[] = {
ADDED AFTER OLD Line #(359):  "Copyright (C) 1999, 2000, Lorenzo Bettini ",
ADDED AFTER OLD Line #(359):  "<lorenzo.bettini@penteres.it>",
ADDED AFTER OLD Line #(359):  " cpp2html comes with ABSOLUTELY NO 
WARRANTY.",
ADDED AFTER OLD Line #(359):  " This is free software; you may redistribute 
copies of cpp2html",
ADDED AFTER OLD Line #(359): " under the terms of the GNU General Public 
License.",
ADDED AFTER OLD Line #(359): " For more information about these matters, see 
the file named COPYING.",
ADDED AFTER OLD Line #(359): " Written by Lorenzo Bettini 
<lorenzo.bettini@penteres.it>",
ADDED AFTER OLD Line #(359): " Report bugs to <bug-cpp2html@gnu.org>\n"
ADDED AFTER OLD Line #(359):  };
ADDED AFTER OLD Line #(359):
ADDED AFTER OLD Line #(359):  print_text(sizeof(pszCopyRightText)/ 
sizeof(char *), pszCopyRightText);
ADDED AFTER OLD Line #(359):}
ADDED AFTER OLD Line #(359):
ADDED AFTER OLD Line #(359):void
ADDED AFTER OLD Line #(359):print_help()
ADDED AFTER OLD Line #(359):{
ADDED AFTER OLD Line #(359):	static char *pszHelpText[] = {
ADDED AFTER OLD Line #(359):	"Usage: cpp2html [OPTION]... [INPUT-FILE]...",
ADDED AFTER OLD Line #(359):    "cpp2html < INPUT-FILE > OUTPUT-FILE 
[OPTION]...",
ADDED AFTER OLD Line #(359):    "given a source C/C++ file, produces an html 
source with syntax highlighting.",
ADDED AFTER OLD Line #(359):	" -v, --verbose           verbose mode on",
ADDED AFTER OLD Line #(359):    " -d, --doc               creates html with 
title, header...",
ADDED AFTER OLD Line #(359):    " -c, --css=URL           use a css for 
formatting (implies --doc)",
ADDED AFTER OLD Line #(359):    " -T, --title=TITLE       give title to the 
html (implies --doc)",
ADDED AFTER OLD Line #(359):    " -i, --input=FILE        input file 
(default standard input)",
ADDED AFTER OLD Line #(359):    " -o, --output=FILE       output file 
(default standard output)",
ADDED AFTER OLD Line #(359):    " -t, --tab=TABLEN        specify tab length 
(default 8)",
ADDED AFTER OLD Line #(359):    " -V, --version           print version",
ADDED AFTER OLD Line #(359):    " Written by Lorenzo Bettini 
<lorenzo.bettini@penteres.it>",
ADDED AFTER OLD Line #(359):    " Report bugs to <bug-cpp2html@gnu.org>"
ADDED AFTER OLD Line #(359):	};
ADDED AFTER OLD Line #(359):  print_text(sizeof(pszHelpText)/ sizeof(char 
*), pszHelpText);
ADDED AFTER OLD Line #(359):}
ADDED AFTER OLD Line #(359):
ADDED AFTER OLD Line #(359):void
ADDED AFTER OLD Line #(359):print_text( int len, char *text[] )
ADDED AFTER OLD Line #(359):{
ADDED AFTER OLD Line #(359):  for ( int i = 0 ; i < len ; ++i )
ADDED AFTER OLD Line #(359):    cout << text[i] << endl ;
main.cc C:\progra~1\micros~2\myprojects\cpp2html\main.cpp is different(47).
processing FILE:generators.cc 
C:\progra~1\micros~2\myprojects\cpp2html\generators.cpp
processing FILE:tags.cc C:\progra~1\micros~2\myprojects\cpp2html\tags.cpp
processing FILE:messages.cc 
C:\progra~1\micros~2\myprojects\cpp2html\messages.cpp
processing FILE:cmdline.c C:\progra~1\micros~2\myprojects\cpp2html\cmdline.c
Line added before (34),<#ifdef WIN32 >
Line added before (34),<#include <string.h>>
Line added before (34),<>
Line added before (36),<#define HAVE_STRDUP>
Line added before (36),<#endif // HAVE_STRDUP>
Line added before (36),<>
Line added before (36),<#endif // WIN32>
Line added before (36),<>
Line added before (36),<#ifndef HAVE_STRDUP>
Line added before (36),<>
cmdline.c C:\progra~1\micros~2\myprojects\cpp2html\cmdline.c is 
different(10).
processing FILE:main.h C:\progra~1\micros~2\myprojects\cpp2html\main.h
processing FILE:colors.h C:\progra~1\micros~2\myprojects\cpp2html\colors.h
processing FILE:decorators.h 
C:\progra~1\micros~2\myprojects\cpp2html\decorators.h
processing FILE:generators.h 
C:\progra~1\micros~2\myprojects\cpp2html\generators.h
processing FILE:keys.h C:\progra~1\micros~2\myprojects\cpp2html\keys.h
processing FILE:list.h C:\progra~1\micros~2\myprojects\cpp2html\list.h
processing FILE:optparser.h 
C:\progra~1\micros~2\myprojects\cpp2html\optparser.h
processing FILE:tags.h C:\progra~1\micros~2\myprojects\cpp2html\tags.h
Line added before (3),<#ifdef WIN32>
Line added before (3),<#include <string.h>>
Line added before (3),<#endif // WIN32>
Line added before (3),<>
tags.h C:\progra~1\micros~2\myprojects\cpp2html\tags.h is different(4).
processing FILE:textgen.h C:\progra~1\micros~2\myprojects\cpp2html\textgen.h
processing FILE:tokens.h C:\progra~1\micros~2\myprojects\cpp2html\tokens.h
processing FILE:version.h C:\progra~1\micros~2\myprojects\cpp2html\version.h
processing FILE:messages.h 
C:\progra~1\micros~2\myprojects\cpp2html\messages.h
processing FILE:copyright.h 
C:\progra~1\micros~2\myprojects\cpp2html\copyright.h
processing FILE:helptext.h 
C:\progra~1\micros~2\myprojects\cpp2html\helptext.h
processing FILE:cmdline.h C:\progra~1\micros~2\myprojects\cpp2html\cmdline.h
processing FILE:getopt.h C:\progra~1\micros~2\myprojects\cpp2html\getopt.h