summaryrefslogtreecommitdiffstats
path: root/contrib/groff/src/preproc/soelim/soelim.cc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/groff/src/preproc/soelim/soelim.cc')
-rw-r--r--contrib/groff/src/preproc/soelim/soelim.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/groff/src/preproc/soelim/soelim.cc b/contrib/groff/src/preproc/soelim/soelim.cc
index e05f240..a604004 100644
--- a/contrib/groff/src/preproc/soelim/soelim.cc
+++ b/contrib/groff/src/preproc/soelim/soelim.cc
@@ -30,12 +30,13 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "stringclass.h"
#include "nonposix.h"
-static int include_list_length;
+static size_t include_list_length;
static char **include_list;
int compatible_flag = 0;
extern int interpret_lf_args(const char *);
+extern "C" const char *Version_string;
int do_file(const char *filename);
@@ -77,7 +78,6 @@ int main(int argc, char **argv)
switch (opt) {
case 'v':
{
- extern const char *Version_string;
printf("GNU soelim (groff) version %s\n", Version_string);
exit(0);
break;
@@ -183,18 +183,18 @@ int do_file(const char *filename)
{
char *path = include_list[j];
if (0 == strcmp(path, "."))
- whole_filename = filename;
+ whole_filename = filename;
else
- whole_filename = string(path) + "/" + filename;
+ whole_filename = string(path) + "/" + filename;
whole_filename += '\0';
errno = 0;
fp = fopen(whole_filename.contents(), "r");
if (fp != 0)
- break;
+ break;
if (errno != ENOENT) {
- error("can't open `%1': %2",
+ error("can't open `%1': %2",
whole_filename.contents(), strerror(errno));
- return 0;
+ return 0;
}
}
if (j >= include_list_length)
OpenPOWER on IntegriCloud