Skip to content

Commit

Permalink
minor preprocessor tweak to make win32 joyous again
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaputo committed Aug 8, 2000
1 parent 29ecf49 commit 4370848
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ Version numbers have four fields: X.YYZZAA
`-----------------


0.1104 2000.??.??
-----------------

Thanks to jaxdahl's donation of shell time on a Windows 2000 machine,
I think I've found a bug in POE::Preprocessor. This bug only occurs
on Windows machines so far. Although it should also appear on other
multi-byte newline systems, it doesn't on my OS/2 system.


0.1103 2000.08.06
-----------------

Expand Down
4 changes: 2 additions & 2 deletions lib/POE/Component/Server/TCP.pm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# $Id$

use strict;

package POE::Component::Server::TCP;

use strict;

use Carp qw(carp croak);
use vars qw($VERSION);

Expand Down
4 changes: 2 additions & 2 deletions lib/POE/Preprocessor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ sub import {
DEBUG and warn sprintf "%4d M: %s", $line_number, $_;

# Close it!
if (/^\}$/) {
if (/^\}\s*$/) {

DEBUG and
warn( ",-----\n",
Expand All @@ -157,7 +157,7 @@ sub import {
"`-----\n"
);

unless ($macros{$macro_name}->[MAC_CODE] =~ /\;$/) {
unless ($macros{$macro_name}->[MAC_CODE] =~ /\;\s*$/) {
$macros{$macro_name}->[MAC_CODE] =~ s/^\s*//;
$macros{$macro_name}->[MAC_CODE] =~ s/\s*$//;
}
Expand Down

0 comments on commit 4370848

Please sign in to comment.