2012-02-05 11:35:58 -05:00
|
|
|
/****************************************************************
|
|
|
|
* *
|
2012-10-29 18:54:31 -04:00
|
|
|
* Copyright 2001, 2012 Fidelity Information Services, Inc *
|
2012-02-05 11:35:58 -05:00
|
|
|
* *
|
|
|
|
* This source code contains the intellectual property *
|
|
|
|
* of its copyright holder(s), and is made available *
|
|
|
|
* under a license. If you do not know the terms of *
|
|
|
|
* the license, please stop and do not read further. *
|
|
|
|
* *
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#ifndef GTMMSG_H_INCLUDED
|
|
|
|
#define GTMMSG_H_INCLUDED
|
|
|
|
|
|
|
|
#ifdef VMS
|
|
|
|
void gtm_getmsg(uint4 msgnum, mstr *msgbuf);
|
|
|
|
void gtm_putmsg(int4 msgid, ...);
|
|
|
|
#elif defined(UNIX)
|
|
|
|
void gtm_getmsg(int4 msgnum, mstr *msgbuf);
|
|
|
|
void gtm_putmsg(int argcnt, ...);
|
|
|
|
void gtm_putmsg_noflush(int argcnt, ...);
|
2012-10-29 18:54:31 -04:00
|
|
|
|
|
|
|
# define GET_MSG_IDX(MSG_ID, CTL, IDX) \
|
|
|
|
{ \
|
|
|
|
assert(NULL != CTL); \
|
|
|
|
assert((MSG_ID && FACMASK(CTL->facnum)) && (MSGMASK(MSG_ID, CTL->facnum) <= CTL->msg_cnt)); \
|
|
|
|
IDX = MSGMASK(MSG_ID, CTL->facnum) - 1; \
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Given a pointer to ctl array (merrors_ctl, gdeerrors_ctl, etc.) and a msg_id, get the structure corresponding to that msg_id */
|
|
|
|
# define GET_MSG_INFO(MSG_ID, CTL, MSG_INFO) \
|
|
|
|
{ \
|
|
|
|
int idx; \
|
|
|
|
\
|
|
|
|
GET_MSG_IDX(MSG_ID, CTL, idx); \
|
|
|
|
MSG_INFO = CTL->fst_msg + idx; \
|
|
|
|
}
|
|
|
|
|
2012-02-05 11:35:58 -05:00
|
|
|
#else
|
2012-10-29 18:54:31 -04:00
|
|
|
# error Unsupported platform
|
2012-02-05 11:35:58 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* GTMMSG_H_INCLUDED */
|