From 62e20246586056ae519e9098b6667272d5a5b4d4 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 25 Jul 2017 22:37:51 +0200 Subject: [PATCH] Rename type into name for oplist definition. --- m-snapshot.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/m-snapshot.h b/m-snapshot.h index 24af1cff..b178b59b 100644 --- a/m-snapshot.h +++ b/m-snapshot.h @@ -48,13 +48,13 @@ /********************************** INTERNAL ************************************/ /* Define the oplist of a snapshot */ -#define SNAPSHOTI_OPLIST(type, oplist) \ - (INIT(M_C3(snapshot_, type, _init)), \ - INIT_SET(M_C3(snapshot_, type, _init_set)), \ - SET(M_C3(snapshot_, type, _set)), \ - CLEAR(M_C3(snapshot_, type, _clear)), \ - TYPE(M_C3(snapshot_, type, _t)), \ - SUBTYPE(M_C3(snapshot_type_, name, _t)) \ +#define SNAPSHOTI_OPLIST(name, oplist) \ + (INIT(M_C3(snapshot_, name, _init)), \ + INIT_SET(M_C3(snapshot_, name, _init_set)), \ + SET(M_C3(snapshot_, name, _set)), \ + CLEAR(M_C3(snapshot_, name, _clear)), \ + TYPE(M_C3(snapshot_, name, _t)), \ + SUBTYPE(M_C3(snapshot_name_, name, _t)) \ ,OPLIST(oplist) \ ,M_IF_METHOD(INIT_MOVE, oplist)(INIT_MOVE(M_C3(snapshot_, name, _init_move)),) \ ,M_IF_METHOD(MOVE, oplist)(MOVE(M_C3(snapshot_, name, _move)),) \