Skip to content

Commit d7df902

Browse files
ShevekGitpan
authored andcommitted
Import of SHEVEK/Text-CPP-0.07 from CPAN.
gitpan-cpan-distribution: Text-CPP gitpan-cpan-version: 0.07 gitpan-cpan-path: SHEVEK/Text-CPP-0.07.tar.gz gitpan-cpan-author: SHEVEK gitpan-cpan-maturity: released
1 parent 51b3b95 commit d7df902

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

CPP.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use Exporter;
77

88
require DynaLoader;
99

10-
$VERSION = 0.06;
10+
$VERSION = 0.07;
1111
@ISA = qw(Exporter DynaLoader);
1212
@EXPORT_OK = ();
1313
%EXPORT_TAGS = (

config.h.PL

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@ print OUT "#define HAVE_SYS_STAT_H 1\n" if $Config{i_sysstat};
2626
print OUT "#define HAVE_SYS_WAIT_H 1\n" if $Config{i_syswait};
2727
print OUT "#define HAVE_UNISTD_H 1\n" if $Config{i_unistd};
2828

29-
if (($Config{i_systime} eq 'define') and
30-
($Config{i_time} eq 'define')) {
29+
if ($Config{i_systime} && $Config{i_time}) {
3130
print OUT "#define TIME_WITH_SYS_TIME 1\n";
3231
}
33-
else {
34-
print OUT "#$Config{i_time} HAVE_TIME_H 1\n";
35-
print OUT "#$Config{i_systime} HAVE_SYS_TIME_H 1\n";
36-
}
32+
print OUT "#define HAVE_TIME_H 1\n" if $Config{i_time};
33+
print OUT "#define HAVE_SYS_TIME_H 1\n" if $Config{i_systime};
3734
# print OUT "#define HAVE_STRSIGNAL 1\n" if $Config{i_foo} eq 'define';
3835

3936
print OUT <<"EOF"

cpperror.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212

1313

14+
#if 0
1415
static void print_location PARAMS ((cpp_reader *, unsigned int, unsigned int));
1516

1617
/* Print the logical file location (LINE, COL) in preparation for a
@@ -45,6 +46,7 @@ print_location (pfile, line, col)
4546
fputc (' ', stderr);
4647
}
4748
}
49+
#endif
4850

4951
/* Hacked out of _cpp_begin_message by Shevek. This contains the common
5052
* logic between the printf and the SV versions. */
@@ -92,6 +94,7 @@ _cpp_can_begin_message (pfile, code, line, column, levelp)
9294
return 1;
9395
}
9496

97+
#if 0
9598
/* Set up for a diagnostic: print the file and line, bump the error
9699
counter, etc. LINE is the logical line number; zero means to print
97100
at the location of the previously lexed token, which tends to be
@@ -113,6 +116,7 @@ _cpp_begin_message (pfile, code, line, column)
113116
fputs (_("internal error: "), stderr);
114117
return 1;
115118
}
119+
#endif
116120

117121

118122

cpphash.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,11 @@ extern unsigned char _cpp_trigraph_map[UCHAR_MAX + 1];
494494
#define CPP_PEDANTIC(PF) CPP_OPTION (PF, pedantic)
495495
#define CPP_WTRADITIONAL(PF) CPP_OPTION (PF, warn_traditional)
496496

497+
#if 0
497498
/* In cpperror.c */
498499
extern int _cpp_begin_message PARAMS ((cpp_reader *, int,
499500
unsigned int, unsigned int));
501+
#endif
500502

501503
/* In cppmacro.c */
502504
extern void _cpp_free_definition PARAMS ((cpp_hashnode *));

0 commit comments

Comments
 (0)