]> granicus.if.org Git - postgresql/commitdiff
perltidy: Add option --nooutdent-long-comments
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 26 Apr 2018 18:13:46 +0000 (14:13 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 27 Apr 2018 15:37:43 +0000 (11:37 -0400)
18 files changed:
src/backend/utils/Gen_dummy_probes.pl
src/backend/utils/mb/Unicode/UCS_to_BIG5.pl
src/backend/utils/mb/Unicode/convutils.pm
src/bin/pg_basebackup/t/010_pg_basebackup.pl
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/pgbench/t/001_pgbench_with_server.pl
src/interfaces/ecpg/preproc/parse.pl
src/pl/plperl/plperl_opmask.pl
src/test/modules/test_pg_dump/t/001_base.pl
src/test/perl/PostgresNode.pm
src/test/recovery/t/006_logical_decoding.pl
src/test/recovery/t/011_crash_recovery.pl
src/test/ssl/ServerSetup.pm
src/tools/msvc/Mkvcbuild.pm
src/tools/msvc/Project.pm
src/tools/msvc/VSObjectFactory.pm
src/tools/msvc/gendef.pl
src/tools/pgindent/perltidyrc

index 395f17881b8d81ba64630d732b3a6d0adc80dcfd..a38fea3e043e3d8e03e19daaff607dd1cc840a08 100644 (file)
@@ -97,35 +97,35 @@ sub Run()
                        $CondReg ||= $s;
                }
 
-# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4)/
+               # s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4)/
                {
                        $s =
                          s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4)/s;
                        $CondReg ||= $s;
                }
 
-# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5)/
+               # s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5)/
                {
                        $s =
                          s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5)/s;
                        $CondReg ||= $s;
                }
 
-# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6)/
+               # s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6)/
                {
                        $s =
                          s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5, INT6)/s;
                        $CondReg ||= $s;
                }
 
-# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6, INT7)/
+               # s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6, INT7)/
                {
                        $s =
                          s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5, INT6, INT7)/s;
                        $CondReg ||= $s;
                }
 
-# s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8)/
+               # s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8)/
                {
                        $s =
                          s /\([^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+, [^,)]+\)/(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8)/s;
index 4190ee5c7ba045a7bb237e39f6996926a995e91b..7d497c6c4bc9294409489937d86945258a3f580d 100755 (executable)
@@ -62,9 +62,9 @@ foreach my $i (@$all)
        my $code = $i->{code};
        my $ucs  = $i->{ucs};
 
-# BIG5.TXT maps several BIG5 characters to U+FFFD. The UTF-8 to BIG5 mapping can
-# contain only one of them. XXX: Doesn't really make sense to include any of them,
-# but for historical reasons, we map the first one of them.
+       # BIG5.TXT maps several BIG5 characters to U+FFFD. The UTF-8 to BIG5 mapping can
+       # contain only one of them. XXX: Doesn't really make sense to include any of them,
+       # but for historical reasons, we map the first one of them.
        if ($i->{ucs} == 0xFFFD && $i->{code} != 0xA15A)
        {
                $i->{direction} = TO_UNICODE;
index 64abcfd2cb3e25ddb19d887aa51476d3c4f96701..03151faf4bcd7a6d747ac3b377143567443994b5 100644 (file)
@@ -138,11 +138,11 @@ sub print_conversion_tables_direction
        print $out "/* src/backend/utils/mb/Unicode/$fname */\n";
        print $out "/* This file is generated by $this_script */\n\n";
 
-# Collect regular, non-combined, mappings, and create the radix tree from them.
+       # Collect regular, non-combined, mappings, and create the radix tree from them.
        my $charmap = &make_charmap($out, $charset, $direction, 0);
        print_radix_table($out, $tblname, $charmap);
 
-   # Collect combined characters, and create combined character table (if any)
+       # Collect combined characters, and create combined character table (if any)
        my $charmap_combined = &make_charmap_combined($charset, $direction);
 
        if (scalar @{$charmap_combined} > 0)
index 834c4050c50f83142394628aaee9bb3b0cfee0b2..d7ab36b2ea73e7b268dc8052344c6177af8297f6 100644 (file)
@@ -213,7 +213,7 @@ SKIP:
        # Move pg_replslot out of $pgdata and create a symlink to it.
        $node->stop;
 
-  # Set umask so test directories and files are created with group permissions
+       # Set umask so test directories and files are created with group permissions
        umask(0027);
 
        # Enable group permissions on PGDATA
@@ -245,7 +245,7 @@ SKIP:
        is(scalar(@tblspc_tars), 1, 'one tablespace tar was created');
        rmtree("$tempdir/tarbackup2");
 
- # Create an unlogged table to test that forks other than init are not copied.
      # Create an unlogged table to test that forks other than init are not copied.
        $node->safe_psql('postgres',
                'CREATE UNLOGGED TABLE tblspc1_unlogged (id int) TABLESPACE tblspc1;'
        );
@@ -258,8 +258,8 @@ SKIP:
                'unlogged init fork in tablespace');
        ok(-f "$pgdata/$tblspc1UnloggedPath", 'unlogged main fork in tablespace');
 
-  # Create files that look like temporary relations to ensure they are ignored
-  # in a tablespace.
+       # Create files that look like temporary relations to ensure they are ignored
+       # in a tablespace.
        my @tempRelationFiles = qw(t888_888 t888888_888888_vm.1);
        my $tblSpc1Id         = basename(
                dirname(
index f2b23464d0656c74005eeb98dffc018d67b69df0..81cd65ee8d6d7438186017db8d9834bcc65e907d 100644 (file)
@@ -2864,7 +2864,7 @@ foreach my $run (sort keys %pgdump_runs)
                        next;
                }
 
-# If there is a like entry, but no unlike entry, then we will test the like case
+               # If there is a like entry, but no unlike entry, then we will test the like case
                if ($tests{$test}->{like}->{$test_key}
                        && !defined($tests{$test}->{unlike}->{$test_key}))
                {
index e4404daa160504e599541f3ec7d3c53c0786ca1d..947f13d546436675975da2fd53e50c27aa509da7 100644 (file)
@@ -670,7 +670,7 @@ pgbench(
 
 pgbench(
 
-   # given the expected rate and the 2 ms tx duration, at most one is executed
+       # given the expected rate and the 2 ms tx duration, at most one is executed
        '-t 10 --rate=100000 --latency-limit=1 -n -r',
        0,
        [   qr{processed: [01]/10},
index 5db965f05ed69b7a7541fb647b23b85758a628b5..983c3a3d89f92322690d5d07ba97ac241434d3c7 100644 (file)
@@ -134,20 +134,20 @@ sub main
 
                chomp;
 
-  # comment out the line below to make the result file match (blank line wise)
-  # the prior version.
-  #next if ($_ eq '');
-
-   # Dump the action for a rule -
-   # stmt_mode indicates if we are processing the 'stmt:'
-   # rule (mode==0 means normal,  mode==1 means stmt:)
-   # flds are the fields to use. These may start with a '$' - in
-   # which case they are the result of a previous non-terminal
-   #
-   # if they dont start with a '$' then they are token name
-   #
-   # len is the number of fields in flds...
-   # leadin is the padding to apply at the beginning (just use for formatting)
+               # comment out the line below to make the result file match (blank line wise)
+               # the prior version.
+               #next if ($_ eq '');
+
+               # Dump the action for a rule -
+               # stmt_mode indicates if we are processing the 'stmt:'
+               # rule (mode==0 means normal,  mode==1 means stmt:)
+               # flds are the fields to use. These may start with a '$' - in
+               # which case they are the result of a previous non-terminal
+               #
+               # if they dont start with a '$' then they are token name
+               #
+               # len is the number of fields in flds...
+               # leadin is the padding to apply at the beginning (just use for formatting)
 
                if (/^%%/)
                {
@@ -223,7 +223,7 @@ sub main
                        next line;
                }
 
-          # Dont worry about anything if we're not in the right section of gram.y
+               # Dont worry about anything if we're not in the right section of gram.y
                if ($yaccmode != 1)
                {
                        next line;
@@ -632,8 +632,8 @@ sub preload_addons
        my $filename = $path . "/ecpg.addons";
        open(my $fh, '<', $filename) or die;
 
- # there may be multiple lines starting ECPG: and then multiple lines of code.
- # the code need to be add to all prior ECPG records.
      # there may be multiple lines starting ECPG: and then multiple lines of code.
      # the code need to be add to all prior ECPG records.
        my (@needsRules, @code, $record);
 
        # there may be comments before the first ECPG line, skip them
index 61e5cac1485dcbe02ec98435a553caa078965307..e4e64b843f2d3712bcea435b3816172dcb35f379 100644 (file)
@@ -38,11 +38,11 @@ my @allowed_ops = (
        # (included in :default) but aren't considered sufficiently safe
        qw[!dbmopen !setpgrp !setpriority],
 
-   # custom is not deemed a likely security risk as it can't be generated from
-   # perl so would only be seen if the DBA had chosen to load a module that
-   # used it. Even then it's unlikely to be seen because it's typically
-   # generated by compiler plugins that operate after PL_op_mask checks.
-   # But we err on the side of caution and disable it
+       # custom is not deemed a likely security risk as it can't be generated from
+       # perl so would only be seen if the DBA had chosen to load a module that
+       # used it. Even then it's unlikely to be seen because it's typically
+       # generated by compiler plugins that operate after PL_op_mask checks.
+       # But we err on the side of caution and disable it
        qw[!custom],);
 
 printf $fh "  /* ALLOWED: @allowed_ops */ \\\n";
index e49dffd4687528b168aa59bb69d7c2cd662af55b..10716ab23861df57ce577a515652f4085699124d 100644 (file)
@@ -370,7 +370,7 @@ my %tests = (
                        section_pre_data => 1, },
                unlike => { no_privs => 1, }, },
 
- # Objects included in extension part of a schema created by this extension */
      # Objects included in extension part of a schema created by this extension */
        'CREATE TABLE regress_pg_dump_schema.test_table' => {
                regexp => qr/^
                        \QCREATE TABLE regress_pg_dump_schema.test_table (\E
@@ -498,7 +498,7 @@ foreach my $run (sort keys %pgdump_runs)
        # Then count all the tests run against each run
        foreach my $test (sort keys %tests)
        {
-# If there is a like entry, but no unlike entry, then we will test the like case
+               # If there is a like entry, but no unlike entry, then we will test the like case
                if ($tests{$test}->{like}->{$test_key}
                        && !defined($tests{$test}->{unlike}->{$test_key}))
                {
index 976e95f448b5938be5cf2b3236efe10100deae3c..3b06e7817460852bf09b4f08ddcc2c5f06a7915b 100644 (file)
@@ -1197,12 +1197,12 @@ sub psql
 
        my $ret;
 
-   # Run psql and capture any possible exceptions.  If the exception is
-   # because of a timeout and the caller requested to handle that, just return
-   # and set the flag.  Otherwise, and for any other exception, rethrow.
-   #
-   # For background, see
-   # http://search.cpan.org/~ether/Try-Tiny-0.24/lib/Try/Tiny.pm
+       # Run psql and capture any possible exceptions.  If the exception is
+       # because of a timeout and the caller requested to handle that, just return
+       # and set the flag.  Otherwise, and for any other exception, rethrow.
+       #
+       # For background, see
+       # http://search.cpan.org/~ether/Try-Tiny-0.24/lib/Try/Tiny.pm
        do
        {
                local $@;
index 588c71eda378c4f4a2f1fa37be8e727ad8d06998..ff1ea0ead9552c0fcd693f539b5b53e59876e118 100644 (file)
@@ -108,7 +108,7 @@ $node_master->safe_psql('otherdb',
 SKIP:
 {
 
-   # some Windows Perls at least don't like IPC::Run's start/kill_kill regime.
+       # some Windows Perls at least don't like IPC::Run's start/kill_kill regime.
        skip "Test fails on Windows perl", 2 if $Config{osname} eq 'MSWin32';
 
        my $pg_recvlogical = IPC::Run::start(
index 7afa94a827422607c9bbc11a36b329d1b207f254..6fe4786ed6a5a16aa921babcf80709960c156fbc 100644 (file)
@@ -10,7 +10,7 @@ use Config;
 if ($Config{osname} eq 'MSWin32')
 {
 
-   # some Windows Perls at least don't like IPC::Run's start/kill_kill regime.
+       # some Windows Perls at least don't like IPC::Run's start/kill_kill regime.
        plan skip_all => "Test fails on Windows perl";
 }
 else
index e97d71e2578c0db640759268cc73b933628c3b6d..5ca9e0defc7deebbbc96a5064ab1665453483d41 100644 (file)
@@ -115,7 +115,7 @@ sub configure_test_server_for_ssl
        open my $sslconf, '>', "$pgdata/sslconfig.conf";
        close $sslconf;
 
-# Copy all server certificates and keys, and client root cert, to the data dir
+       # Copy all server certificates and keys, and client root cert, to the data dir
        copy_files("ssl/server-*.crt", $pgdata);
        copy_files("ssl/server-*.key", $pgdata);
        chmod(0600, glob "$pgdata/server-*.key") or die $!;
@@ -155,10 +155,10 @@ sub configure_hba_for_ssl
        my ($node, $serverhost, $authmethod) = @_;
        my $pgdata = $node->data_dir;
 
-  # Only accept SSL connections from localhost. Our tests don't depend on this
-  # but seems best to keep it as narrow as possible for security reasons.
-  #
-  # When connecting to certdb, also check the client certificate.
+       # Only accept SSL connections from localhost. Our tests don't depend on this
+       # but seems best to keep it as narrow as possible for security reasons.
+       #
+       # When connecting to certdb, also check the client certificate.
        open my $hba, '>', "$pgdata/pg_hba.conf";
        print $hba
          "# TYPE  DATABASE        USER            ADDRESS                 METHOD\n";
index 26c3510d64d2410b66539e78b6adb9f64449c120..b2f5fd61853628fdea37cd3d85f2399268aaba55 100644 (file)
@@ -179,8 +179,8 @@ sub mkvcbuild
        $postgres->AddLibrary('wldap32.lib') if ($solution->{options}->{ldap});
        $postgres->FullExportDLL('postgres.lib');
 
-   # The OBJS scraper doesn't know about ifdefs, so remove be-secure-openssl.c
-   # if building without OpenSSL
+       # The OBJS scraper doesn't know about ifdefs, so remove be-secure-openssl.c
+       # if building without OpenSSL
        if (!$solution->{options}->{openssl})
        {
                $postgres->RemoveFile('src/backend/libpq/be-secure-common.c');
@@ -239,9 +239,9 @@ sub mkvcbuild
                'src/interfaces/libpq/libpq.rc');
        $libpq->AddReference($libpgport);
 
-   # The OBJS scraper doesn't know about ifdefs, so remove fe-secure-openssl.c
-   # and sha2_openssl.c if building without OpenSSL, and remove sha2.c if
-   # building with OpenSSL.
+       # The OBJS scraper doesn't know about ifdefs, so remove fe-secure-openssl.c
+       # and sha2_openssl.c if building without OpenSSL, and remove sha2.c if
+       # building with OpenSSL.
        if (!$solution->{options}->{openssl})
        {
                $libpq->RemoveFile('src/interfaces/libpq/fe-secure-common.c');
@@ -530,9 +530,9 @@ sub mkvcbuild
 
                my $perl_path = $solution->{options}->{perl} . '\lib\CORE\*perl*';
 
-# ActivePerl 5.16 provided perl516.lib; 5.18 provided libperl518.a
-# Starting with ActivePerl 5.24, both  perlnn.lib and libperlnn.a are provided.
-# In this case, prefer .lib.
+               # ActivePerl 5.16 provided perl516.lib; 5.18 provided libperl518.a
+               # Starting with ActivePerl 5.24, both  perlnn.lib and libperlnn.a are provided.
+               # In this case, prefer .lib.
                my @perl_libs =
                  reverse sort grep { /perl\d+\.lib$|libperl\d+\.a$/ }
                  glob($perl_path);
index 7ccfd7bf2f1c2b1677e07a3b8d61c8923a826479..3e08ce98e7af715ccbe1d5fb3d7557da90ec73d3 100644 (file)
@@ -345,15 +345,15 @@ sub Save
 {
        my ($self) = @_;
 
-# If doing DLL and haven't specified a DEF file, do a full export of all symbols
-# in the project.
+       # If doing DLL and haven't specified a DEF file, do a full export of all symbols
+       # in the project.
        if ($self->{type} eq "dll" && !$self->{def})
        {
                $self->FullExportDLL($self->{name} . ".lib");
        }
 
-# Warning 4197 is about double exporting, disable this per
-# http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=99193
+       # Warning 4197 is about double exporting, disable this per
+       # http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=99193
        $self->DisableLinkerWarnings('4197') if ($self->{platform} eq 'x64');
 
        # Dump the project
index d774f69b8b28f7ce03da4693274c827ef09f22e2..eea59c5e4fca98802ea39a7ee260bf89b3040b87 100644 (file)
@@ -54,7 +54,7 @@ sub CreateSolution
                return new VS2015Solution(@_);
        }
 
-# visual 2017 hasn't changed the nmake version to 15, so adjust the check to support it.
+       # visual 2017 hasn't changed the nmake version to 15, so adjust the check to support it.
        elsif (($visualStudioVersion ge '14.10')
                or ($visualStudioVersion eq '15.00'))
        {
@@ -101,7 +101,7 @@ sub CreateProject
                return new VC2015Project(@_);
        }
 
-# visual 2017 hasn't changed the nmake version to 15, so adjust the check to support it.
+       # visual 2017 hasn't changed the nmake version to 15, so adjust the check to support it.
        elsif (($visualStudioVersion ge '14.10')
                or ($visualStudioVersion eq '15.00'))
        {
@@ -137,7 +137,7 @@ sub _GetVisualStudioVersion
 {
        my ($major, $minor) = @_;
 
-# visual 2017 hasn't changed the nmake version to 15, so still using the older version for comparison.
+       # visual 2017 hasn't changed the nmake version to 15, so still using the older version for comparison.
        if ($major > 14)
        {
                carp
index 806f1576c54a53dcd505836d4ed91db0d011a397..9f0cf76fb357a3a36d3dab0191b2954eb88eadd1 100644 (file)
@@ -36,40 +36,40 @@ sub extract_syms
        while (<$f>)
        {
 
-       # Expected symbol lines look like:
-       #
-       # 0   1        2      3            4            5 6
-       # IDX SYMBOL   SECT   SYMTYPE      SYMSTATIC      SYMNAME
-       # ------------------------------------------------------------------------
-       # 02E 00000130 SECTA  notype       External     | _standbyState
-       # 02F 00000009 SECT9  notype       Static       | _LocalRecoveryInProgress
-       # 064 00000020 SECTC  notype ()    Static       | _XLogCheckBuffer
-       # 065 00000000 UNDEF  notype ()    External     | _BufferGetTag
-       #
-       # See http://msdn.microsoft.com/en-us/library/b842y285.aspx
-       #
-       # We're not interested in the symbol index or offset.
-       #
-       # SECT[ION] is only examined to see whether the symbol is defined in a
-       # COFF section of the local object file; if UNDEF, it's a symbol to be
-       # resolved at link time from another object so we can't export it.
-       #
-       # SYMTYPE is always notype for C symbols as there's no typeinfo and no
-       # way to get the symbol type from name (de)mangling. However, we care
-       # if "notype" is suffixed by "()" or not. The presence of () means the
-       # symbol is a function, the absence means it isn't.
-       #
-       # SYMSTATIC indicates whether it's a compilation-unit local "static"
-       # symbol ("Static"), or whether it's available for use from other
-       # compilation units ("External"). We export all symbols that aren't
-       # static as part of the whole program DLL interface to produce UNIX-like
-       # default linkage.
-       #
-       # SYMNAME is, obviously, the symbol name. The leading underscore
-       # indicates that the _cdecl calling convention is used. See
-       # http://www.unixwiz.net/techtips/win32-callconv.html
-       # http://www.codeproject.com/Articles/1388/Calling-Conventions-Demystified
-       #
+               # Expected symbol lines look like:
+               #
+               # 0   1        2      3            4            5 6
+               # IDX SYMBOL   SECT   SYMTYPE      SYMSTATIC      SYMNAME
+               # ------------------------------------------------------------------------
+               # 02E 00000130 SECTA  notype       External     | _standbyState
+               # 02F 00000009 SECT9  notype       Static       | _LocalRecoveryInProgress
+               # 064 00000020 SECTC  notype ()    Static       | _XLogCheckBuffer
+               # 065 00000000 UNDEF  notype ()    External     | _BufferGetTag
+               #
+               # See http://msdn.microsoft.com/en-us/library/b842y285.aspx
+               #
+               # We're not interested in the symbol index or offset.
+               #
+               # SECT[ION] is only examined to see whether the symbol is defined in a
+               # COFF section of the local object file; if UNDEF, it's a symbol to be
+               # resolved at link time from another object so we can't export it.
+               #
+               # SYMTYPE is always notype for C symbols as there's no typeinfo and no
+               # way to get the symbol type from name (de)mangling. However, we care
+               # if "notype" is suffixed by "()" or not. The presence of () means the
+               # symbol is a function, the absence means it isn't.
+               #
+               # SYMSTATIC indicates whether it's a compilation-unit local "static"
+               # symbol ("Static"), or whether it's available for use from other
+               # compilation units ("External"). We export all symbols that aren't
+               # static as part of the whole program DLL interface to produce UNIX-like
+               # default linkage.
+               #
+               # SYMNAME is, obviously, the symbol name. The leading underscore
+               # indicates that the _cdecl calling convention is used. See
+               # http://www.unixwiz.net/techtips/win32-callconv.html
+               # http://www.codeproject.com/Articles/1388/Calling-Conventions-Demystified
+               #
                s/notype \(\)/func/g;
                s/notype/data/g;
 
index e62f3c9c78b8131a92065c8b567e2c1a5f66a1ca..29baef70a7b812b0ba5e49d4098f6c14eedcf7db 100644 (file)
@@ -5,6 +5,7 @@
 --entab-leading-whitespace=4
 --keep-old-blank-lines=2
 --maximum-line-length=78
+--nooutdent-long-comments
 --nooutdent-long-quotes
 --nospace-for-semicolon
 --opening-brace-on-new-line