代码拉取完成,页面将自动刷新
同步操作将从 IvorySQL/IvorySQL 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/perl
#----------------------------------------------------------------------
#
# mark_pgdllimport.pl
# Perl script that tries to add PGDLLIMPORT markings to PostgreSQL
# header files.
#
# This relies on a few idiosyncrasies of the PostgreSQL coding style,
# such as the fact that we always use "extern" in function
# declarations, and that we don't use // comments. It's not very
# smart and may not catch all cases.
#
# It's probably a good idea to run pgindent on any files that this
# script modifies before committing. This script uses as arguments
# a list of the header files to scan for the markings.
#
# Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# src/tools/mark_pgdllimport.pl
#
#----------------------------------------------------------------------
use strict;
use warnings FATAL => 'all';
for my $include_file (@ARGV)
{
open(my $rfh, '<', $include_file) || die "$include_file: $!";
my $buffer = '';
my $num_pgdllimport_added = 0;
while (my $raw_line = <$rfh>)
{
my $needs_pgdllimport = 1;
# By convention we declare global variables explicitly extern. We're
# looking for those not already marked with PGDLLIMPORT.
$needs_pgdllimport = 0
if $raw_line !~ /^extern\s+/
|| $raw_line =~ /PGDLLIMPORT/;
# Make a copy of the line and perform a simple-minded comment strip.
# Also strip trailing whitespace.
my $stripped_line = $raw_line;
$stripped_line =~ s/\/\*.*\*\///g;
$stripped_line =~ s/\s+$//;
# Variable declarations should end in a semicolon. If we see an
# opening parenthesis, it's probably a function declaration.
$needs_pgdllimport = 0
if $stripped_line !~ /;$/
|| $stripped_line =~ /\(/;
# Add PGDLLIMPORT marker, if required.
if ($needs_pgdllimport)
{
$raw_line =~ s/^extern/extern PGDLLIMPORT/;
++$num_pgdllimport_added;
}
# Add line to buffer.
$buffer .= $raw_line;
}
close($rfh);
# If we added any PGDLLIMPORT markers, rewrite the file.
if ($num_pgdllimport_added > 0)
{
printf "%s: adding %d PGDLLIMPORT markers\n",
$include_file, $num_pgdllimport_added;
open(my $wfh, '>', $include_file) || die "$include_file: $!";
print $wfh $buffer;
close($wfh);
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。