167 #define CUSTOMER_ALLOC(id) \
168 customer_alloc(TM_ARG id)
169 #define CUSTOMER_ADD_RESERVATION_INFO(cust, type, id, price) \
170 customer_addReservationInfo(TM_ARG cust, type, id, price)
171 #define CUSTOMER_REMOVE_RESERVATION_INFO(cust, type, id) \
172 customer_removeReservationInfo(TM_ARG cust, type, id)
173 #define CUSTOMER_GET_BILL(cust) \
174 customer_getBill(TM_ARG cust)
175 #define CUSTOMER_FREE(cust) \
176 customer_free(TM_ARG cust)
#define TM_CALLABLE
Definition: cxxtm.hpp:32
TM_CALLABLE bool_t customer_addReservationInfo(TM_ARGDECL customer_t *customerPtr, reservation_type_t type, long id, long price)
Definition: customer.c:178
TM_CALLABLE void customer_free(TM_ARGDECL customer_t *customerPtr)
Definition: customer.c:163
bool_t customer_addReservationInfo_seq(customer_t *customerPtr, reservation_type_t type, long id, long price)
TM_CALLABLE bool_t customer_removeReservationInfo(TM_ARGDECL customer_t *customerPtr, reservation_type_t type, long id)
Definition: customer.c:200
int bool_t
Definition: portable_defns.h:32
long customer_compare(customer_t *aPtr, customer_t *bPtr)
Definition: customer.c:152
#define TM_ARGDECL
Definition: tm.h:532
TM_CALLABLE long customer_getBill(TM_ARGDECL customer_t *customerPtr)
Definition: customer.c:239
long id
Definition: customer.h:83
enum reservation_type reservation_type_t
unsigned long customer_hash(customer_t *customerPtr)
list_t * reservationInfoListPtr
Definition: customer.h:84
struct customer customer_t
customer_t * customer_alloc_seq(long id)
Definition: customer.c:130
Definition: customer.h:82
long customer_getBill_seq(customer_t *customerPtr)
TM_CALLABLE customer_t * customer_alloc(TM_ARGDECL long id)
Definition: customer.c:113