From 522632bea689999472a78fada3d93e8f4fc0de89 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 27 Jun 2018 20:04:18 +0200 Subject: [PATCH] Remove deprecated macro SNAPSHOT_DEF. Shall use SNAPSHOT_SPSC_DEF --- doc/API.txt | 2 +- m-snapshot.h | 3 --- tests/test-msnapshot.c | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/doc/API.txt b/doc/API.txt index 86c5bb0d..213f60c3 100644 --- a/doc/API.txt +++ b/doc/API.txt @@ -7,4 +7,4 @@ V0.2.*: * worker_sync takes a 'worker_t' as an additional parameter (This allows to perform a wait-on-event instead of a busy waiting). * worker_init takes an int as numWorker instead of an unsingned int. * RBTREE pop method has been renamed into _pop_at - + * SNAPSHOT_DEF has been removed. use SNAPSHOT_SPSC_DEF diff --git a/m-snapshot.h b/m-snapshot.h index 659b8f06..04c0a6ed 100644 --- a/m-snapshot.h +++ b/m-snapshot.h @@ -29,9 +29,6 @@ #include "m-core.h" #include "m-genint.h" -// For compatibility with previous version -#define SNAPSHOT_DEF SNAPSHOT_SPSC_DEF - /* Define a SRSW snapshot and it function USAGE: SNAPSHOT_SPSC_DEF(name, type[, oplist]) */ #define SNAPSHOT_SPSC_DEF(name, ...) \ diff --git a/tests/test-msnapshot.c b/tests/test-msnapshot.c index 6ae7815c..3ff6306d 100644 --- a/tests/test-msnapshot.c +++ b/tests/test-msnapshot.c @@ -51,7 +51,7 @@ SNAPSHOT_SPSC_DEF(snapshot_mpz, testobj_t, TESTOBJ_OPLIST) SNAPSHOT_SPMC_DEF(snapshot_mrsw_data, data_t, DATA_OPLIST) SNAPSHOT_MPMC_DEF(snapshot_mrmw_data, data_t, DATA_OPLIST) END_COVERAGE -SNAPSHOT_DEF(snapshot_data, data_t, DATA_OPLIST ) +SNAPSHOT_SPSC_DEF(snapshot_data, data_t, DATA_OPLIST ) static void test_uint(void)