Skip to content

Commit 49cc503

Browse files
committed
Revert changes to process pg_proc.h entries without OIDs. We're not supposed
to have such entries, and want to be notified when we do... Leave the plain bugfix in genbki.
1 parent f8e9fb2 commit 49cc503

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/tools/msvc/Solution.pm

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ sub GenerateFiles {
145145
print H "/* fmgroids.h generated for Visual C++ */\n#ifndef FMGROIDS_H\n#define FMGROIDS_H\n\n";
146146
open(T,">src\\backend\\utils\\fmgrtab.c") || confess "Could not open fmgrtab.c";
147147
print T "/* fmgrtab.c generated for Visual C++ */\n#include \"postgres.h\"\n#include \"utils/fmgrtab.h\"\n\n";
148-
foreach my $s (sort {intval($a->{oid}) <=> intval($b->{oid})} @fmgr) {
148+
foreach my $s (sort {$a->{oid} <=> $b->{oid}} @fmgr) {
149149
next if $seenit{$s->{prosrc}};
150150
$seenit{$s->{prosrc}} = 1;
151151
print H "#define F_" . uc $s->{prosrc} . " $s->{oid}\n";
@@ -157,9 +157,8 @@ sub GenerateFiles {
157157
my %bmap;
158158
$bmap{'t'} = 'true';
159159
$bmap{'f'} = 'false';
160-
foreach my $s (sort {intval($a->{oid}) <=> intval($b->{oid})} @fmgr) {
161-
my $o = intval($s->{oid});
162-
print T " { $o, \"$s->{prosrc}\", $s->{nargs}, $bmap{$s->{strict}}, $bmap{$s->{retset}}, $s->{prosrc} },\n";
160+
foreach my $s (sort {$a->{oid} <=> $b->{oid}} @fmgr) {
161+
print T " { $s->{oid}, \"$s->{prosrc}\", $s->{nargs}, $bmap{$s->{strict}}, $bmap{$s->{retset}}, $s->{prosrc} },\n";
163162
}
164163

165164

@@ -232,14 +231,6 @@ EOF
232231
}
233232
}
234233

235-
sub intval {
236-
my $v = shift;
237-
if ($v =~ /^\d+$/) {
238-
return $v;
239-
}
240-
return 0;
241-
}
242-
243234
sub AddProject {
244235
my ($self, $name, $type, $folder, $initialdir) = @_;
245236

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