Skip to content

Commit 7327cb6

Browse files
committed
Port backup check on psql lexer to MSVC.
1 parent 28190ba commit 7327cb6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/tools/msvc/pgflex.pl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,20 @@
6565
print $cfile $ccode;
6666
close($cfile);
6767
}
68+
if ($flexflags =~ /\s-b\s/)
69+
{
70+
my $lexback = dirname($input) . "/lex.backup";
71+
open($lfile,$lexback) || die "opening $lexback for reading: $!";
72+
my $lexbacklines = <$lfile>;
73+
close($lfile);
74+
my $linecount = $lexbacklines =~ tr /\n/\n/;
75+
if ($linecount != 1)
76+
{
77+
print "Scanner requires backup, see lex.backup.\n";
78+
exit 1;
79+
}
80+
unlink $lexback;
81+
}
6882

6983
exit 0;
7084

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy