Skip to content

Commit

Permalink
Import of SHEVEK/Text-CPP-0.07 from CPAN.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Shevek authored and Gitpan committed Oct 22, 2014
1 parent 51b3b95 commit d7df902
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CPP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Exporter;

require DynaLoader;

$VERSION = 0.06;
$VERSION = 0.07;
@ISA = qw(Exporter DynaLoader);
@EXPORT_OK = ();
%EXPORT_TAGS = (
Expand Down
9 changes: 3 additions & 6 deletions config.h.PL
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,11 @@ print OUT "#define HAVE_SYS_STAT_H 1\n" if $Config{i_sysstat};
print OUT "#define HAVE_SYS_WAIT_H 1\n" if $Config{i_syswait};
print OUT "#define HAVE_UNISTD_H 1\n" if $Config{i_unistd};

if (($Config{i_systime} eq 'define') and
($Config{i_time} eq 'define')) {
if ($Config{i_systime} && $Config{i_time}) {
print OUT "#define TIME_WITH_SYS_TIME 1\n";
}
else {
print OUT "#$Config{i_time} HAVE_TIME_H 1\n";
print OUT "#$Config{i_systime} HAVE_SYS_TIME_H 1\n";
}
print OUT "#define HAVE_TIME_H 1\n" if $Config{i_time};
print OUT "#define HAVE_SYS_TIME_H 1\n" if $Config{i_systime};
# print OUT "#define HAVE_STRSIGNAL 1\n" if $Config{i_foo} eq 'define';

print OUT <<"EOF"
Expand Down
4 changes: 4 additions & 0 deletions cpperror.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@



#if 0
static void print_location PARAMS ((cpp_reader *, unsigned int, unsigned int));

/* Print the logical file location (LINE, COL) in preparation for a
Expand Down Expand Up @@ -45,6 +46,7 @@ print_location (pfile, line, col)
fputc (' ', stderr);
}
}
#endif

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

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



Expand Down
2 changes: 2 additions & 0 deletions cpphash.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,11 @@ extern unsigned char _cpp_trigraph_map[UCHAR_MAX + 1];
#define CPP_PEDANTIC(PF) CPP_OPTION (PF, pedantic)
#define CPP_WTRADITIONAL(PF) CPP_OPTION (PF, warn_traditional)

#if 0
/* In cpperror.c */
extern int _cpp_begin_message PARAMS ((cpp_reader *, int,
unsigned int, unsigned int));
#endif

/* In cppmacro.c */
extern void _cpp_free_definition PARAMS ((cpp_hashnode *));
Expand Down

0 comments on commit d7df902

Please sign in to comment.