tdbc::postgres

Check-in [c867417091]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Use postdecrement in DecrResultSetRefCount macro
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c8674170912e5f8b79fcc7c1d56510dde53111f232b8d4a143edc19c664ec6a2
User & Date: jan.nijtmans 2020-02-07 15:11:12.967
Context
2020-02-11
11:12
TEA update check-in: 6154d6c927 user: jan.nijtmans tags: trunk
2020-02-07
15:11
Use postdecrement in DecrResultSetRefCount macro check-in: c867417091 user: jan.nijtmans tags: trunk
2019-11-20
16:36
TEA update check-in: f38530194f user: dgp tags: trunk, tdbc-postgres-1-1-1
Changes
Unified Diff Ignore Whitespace Patch
Changes to generic/tdbcpostgres.c.
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
#define IncrResultSetRefCount(x)		\
    do {					\
	++((x)->refCount);			\
    } while (0)
#define DecrResultSetRefCount(x)		\
    do {					\
	ResultSetData* rs = (x);		\
	if (--(rs->refCount) <= 0) {		\
	    DeleteResultSet(rs);		\
	}					\
    } while(0)


/* Tables of isolation levels: Tcl, SQL and Postgres C API */








|







362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
#define IncrResultSetRefCount(x)		\
    do {					\
	++((x)->refCount);			\
    } while (0)
#define DecrResultSetRefCount(x)		\
    do {					\
	ResultSetData* rs = (x);		\
	if (rs->refCount-- <= 1) {		\
	    DeleteResultSet(rs);		\
	}					\
    } while(0)


/* Tables of isolation levels: Tcl, SQL and Postgres C API */