| 1 |
/* @(#)uimx_cat.h 17.1 (ESO-IPG) 01/25/02 17:26:05 */ |
| 2 |
/*--------------------------------------------------------------------- |
| 3 |
* $Date: 2003-06-04 14:49:18 $ $Revision: 1.1.1.1 $ |
| 4 |
*--------------------------------------------------------------------- |
| 5 |
* |
| 6 |
* |
| 7 |
* Copyright (c) 1990, Visual Edge Software Ltd. |
| 8 |
* |
| 9 |
* ALL RIGHTS RESERVED. Permission to use, copy, modify, and |
| 10 |
* distribute this software and its documentation for any purpose |
| 11 |
* and without fee is hereby granted, provided that the above |
| 12 |
* copyright notice appear in all copies and that both that |
| 13 |
* copyright notice and this permission notice appear in supporting |
| 14 |
* documentation, and that the name of Visual Edge Software not be |
| 15 |
* used in advertising or publicity pertaining to distribution of |
| 16 |
* the software without specific, written prior permission. The year |
| 17 |
* included in the notice is the year of the creation of the work. |
| 18 |
*-------------------------------------------------------------------*/ |
| 19 |
|
| 20 |
#ifndef _UIMXCAT_H_ |
| 21 |
#define _UIMXCAT_H_ |
| 22 |
|
| 23 |
#include "uxproto.h" |
| 24 |
|
| 25 |
#ifdef XOPEN_CATALOG |
| 26 |
/* If XOPEN_CATALOG is defined, we use the message catalog */ |
| 27 |
|
| 28 |
#ifdef DESIGN_TIME |
| 29 |
#define CAT_FILE "uimx2_5.cat" |
| 30 |
#endif |
| 31 |
#ifdef RUNTIME |
| 32 |
#define CAT_FILE "libuimx2_5.cat" |
| 33 |
#endif |
| 34 |
#ifdef UTILITIES |
| 35 |
#define CAT_FILE "uxutils2_5.cat" |
| 36 |
#endif |
| 37 |
|
| 38 |
|
| 39 |
extern int UxCatOpen UXPROTO(( void )); |
| 40 |
extern void UxCatClose UXPROTO(( void )); |
| 41 |
extern char *UxCatGets UXPROTO(( int, int, char * )); |
| 42 |
|
| 43 |
#define UxCatGetc(setnum,msgnum,default) *UxCatGets(setnum,msgnum,default) |
| 44 |
|
| 45 |
#else /* not using message catalog */ |
| 46 |
|
| 47 |
#define UxCatOpen() 0 |
| 48 |
#define UxCatClose() |
| 49 |
#define UxCatGets(setnum,msgnum,default) (default) |
| 50 |
#define UxCatGetc(setnum,msgnum,default) *(default) |
| 51 |
|
| 52 |
#endif /* XOPEN_CATALOG */ |
| 53 |
|
| 54 |
#if defined(__STDC__) && !defined(apollo) |
| 55 |
#define PASTE(token1,token2) token1##token2 |
| 56 |
#define PASTE3(token1,token2,token3) token1##token2##token3 |
| 57 |
#else |
| 58 |
#define PASTE(token1,token2) token1/**/token2 |
| 59 |
#define PASTE3(token1,token2,token3) token1/**/token2/**/token3 |
| 60 |
#endif |
| 61 |
|
| 62 |
#define UXCATGETS(setnum,msg_prefix,msg) \ |
| 63 |
UxCatGets(setnum,PASTE(msg_prefix,msg),PASTE3(DS_,msg_prefix,msg)) |
| 64 |
|
| 65 |
#ifdef CD_DEMO |
| 66 |
# include "systemDM_ds.h" |
| 67 |
#else /* CD_DEMO */ |
| 68 |
# include "system_ds.h" |
| 69 |
#endif /* CD_DEMO */ |
| 70 |
|
| 71 |
|
| 72 |
#endif /* _UIMXCAT_H_ */ |
| 73 |
|