Skip to content

Commit

Permalink
Edit preproc statement
Browse files Browse the repository at this point in the history
  • Loading branch information
emilienlemaire committed Dec 12, 2024
1 parent 9afa7a7 commit e5f95f8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions libcob/fileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,17 +690,18 @@ static unsigned int bdb_lock_id = 0;
key.data = fld->data; \
key.size = (cob_dbtsize_t) fld->size

/* #if DB_VERSION_MAJOR >= 6 *//* while the fields are part of DBT since 4.1, it wasn't
made part of the public API before 6.0 (DB_VERSION_FAMILY 12);
older versions overwrite that, see bug NNN */
/* #define DBT_SET_APP_DATA(key,data) ((key)->app_data = (data))
#if 0 /* while the fields are part of DBT since 4.1, and where made part of the
public API with 6.0 (DB_VERSION_FAMILY 12);
however this field is not always copied when passed to custom compare
functions, see bug 1032 */
#define DBT_SET_APP_DATA(key,data) ((key)->app_data = (data))
#define DBT_GET_APP_DATA(key) ((key)->app_data)
#else */
#else
/* Used to save the collating sequence function, see bug 1032 */
COB_TLS void *bdb_app_data = NULL;
#define DBT_SET_APP_DATA(key,data) ((void)(key), bdb_app_data = (data))
#define DBT_GET_APP_DATA(key) ((void)(key), bdb_app_data)
/* #endif */
#endif

struct indexed_file {
DB **db; /* Database handlers */
Expand Down

0 comments on commit e5f95f8

Please sign in to comment.