Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7327cb6

Browse files
committed
Port backup check on psql lexer to MSVC.
1 parent28190ba commit7327cb6

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)

[8]ページ先頭

©2009-2025 Movatter.jp