main.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: main.h /main/5 1996/10/21 15:28:26 mgreess $ */
  24. /*********************************************************************
  25. * (c) Copyright 1993, 1994 Hewlett-Packard Company
  26. * (c) Copyright 1993, 1994 International Business Machines Corp.
  27. * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  28. * (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
  29. * Novell, Inc.
  30. **********************************************************************/
  31. /************************************<+>*************************************
  32. ****************************************************************************
  33. **
  34. ** File: main.h
  35. **
  36. ** Project: DT 3.0
  37. **
  38. ** This file contains global header file information for dticon
  39. **
  40. **
  41. ** (c) Copyright Hewlett-Packard Company, 1992.
  42. **
  43. **
  44. ****************************************************************************
  45. ************************************<+>*************************************/
  46. #ifndef _main_h
  47. #define _main_h
  48. #ifndef NO_MESSAGE_CATALOG
  49. # define _CLIENT_CAT_NAME "dticon"
  50. extern char *_DtGetMessage(char *filename, int set, int n, char *s);
  51. # define GETSTR(set, number, string) \
  52. (_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
  53. #else
  54. # define GETSTR(set, number, string) string
  55. #endif
  56. /* get a message catlog string and convert it to an XmString */
  57. #define GETXMSTR(set,num,str) XmStringCreateLocalized (GETSTR(set, num, str))
  58. /* convert a regular string to an XmString */
  59. #define XMSTR(str) XmStringCreateLocalized (str)
  60. #endif /* _main_h */
  61. /* DON'T ADD ANYTHING AFTER THIS #endif */