pgsql/contrib pg_resetxlog/pg_resetxlog.c pgcr ... - Mailing list pgsql-committers

From momjian@postgresql.org
Subject pgsql/contrib pg_resetxlog/pg_resetxlog.c pgcr ...
Date
Msg-id 200110250055.f9P0tmL98031@postgresql.org
Whole thread Raw
List pgsql-committers
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    momjian@postgresql.org    01/10/24 20:55:48

Modified files:
    contrib/pg_resetxlog: pg_resetxlog.c
    contrib/pgcrypto: crypt-blowfish.c rijndael.c

Log message:
    Add more missing 'do { ... } while (0)' in missing macros.  Without it,
    these macros fail in if/else cases:

    #define X \
    { \
    ... \
    }

    {

    if (...)
    X;
    else
    ...
    }

    with proper setup:

    #define X \
    do { \
    ... \
    } while (0)

    it works fine.


pgsql-committers by date:

Previous
From: momjian@postgresql.org
Date:
Subject: pgsql/ ontrib/fuzzystrmatch/fuzzystrmatch.c on ...
Next
From: momjian@postgresql.org
Date:
Subject: pgsql/src/tools/pgindent pgindent