msgs.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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: msgs.h /main/5 1996/09/14 14:51:38 drk $ */
  24. /************************************<+>*************************************
  25. ****************************************************************************
  26. **
  27. ** File: msgs.h
  28. **
  29. ** Project: CDE
  30. **
  31. ** Description: Public include file for msgs.c
  32. **
  33. **
  34. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992
  35. ** by Hewlett-Packard Company
  36. **
  37. **
  38. **
  39. ****************************************************************************
  40. ************************************<+>*************************************/
  41. #ifndef _Dtksh_msgs_h
  42. #define _Dtksh_msgs_h
  43. char * GetSharedMsg(
  44. int msgId );
  45. /*
  46. * macro to get message catalog strings
  47. */
  48. #ifndef NO_MESSAGE_CATALOG
  49. # define _CLIENT_CAT_NAME "dtksh"
  50. /*
  51. * Without this proto, standard C says that _DtGetMessage() returns
  52. * an int, even though it really returns a pointer. The compiler is
  53. * then free to use the high 32-bits of the return for
  54. * something else (like scratch), and that can garble the pointer.
  55. */
  56. # ifdef _NO_PROTO
  57. extern char *_DtGetMessage();
  58. # else /* _NO_PROTO */
  59. extern char *_DtGetMessage(char *filename, int set, int n, char *s );
  60. # endif /* _NO_PROTO */
  61. # define GETMESSAGE(set, number, string)\
  62. (_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
  63. #else
  64. # define GETMESSAGE(set, number, string)\
  65. string
  66. #endif
  67. #define DT_BAD_FIELD_NAME 0
  68. #define DT_CONV_BUF_OVFL 1
  69. #define DT_HASHING_FAILURE 2
  70. #define DT_NO_FUNC_NAME 3
  71. #define DT_TK_NOT_INIT 4
  72. #define DT_WIDGET_CREATE_FAILED 5
  73. #define DT_BAD_DISPLAY 6
  74. #define DT_BAD_ATOM 7
  75. #define DT_UNDEF_RESOURCE 8
  76. #define DT_BAD_POSITION 9
  77. #define DT_BAD_FONT 10
  78. #define DT_BAD_WIDGET_HANDLE 11
  79. #define DT_CMD_WIDGET 12
  80. #define DT_MAIN_WIN_WIDGET 13
  81. #define DT_SCALE_WIDGET 14
  82. #define DT_SCROLLBAR_WIDGET 15
  83. #define DT_TOGGLE_WIDGET 16
  84. #define DT_BAD_WINDOW 17
  85. #define DT_ALLOC_FAILURE 18
  86. #define DT_NO_PARENT 19
  87. #define DT_UNDEF_SYMBOL 20
  88. #define DT_UNDEF_TYPE 21
  89. #define DT_BAD_DECL 22
  90. #define DT_UNKNOWN_CHILD_TYPE 23
  91. #define DT_UNKNOWN_OPTION 24
  92. #define DT_USAGE_WIDGET_POS 25
  93. #define DT_USAGE_WIDGET_TIME 27
  94. #define DT_USAGE_WIDGET 28
  95. #define DT_ERROR 29
  96. #define DT_WARNING 30
  97. #define DT_XK_FREE_NO_MEMBER 31
  98. #define DT_XK_PARSE_ERROR 32
  99. #define DT_XK_PARSE_SET_NULL 33
  100. #define DT_XK_PARSE_ARRAY_OVERFLOW 34
  101. #define DT_USAGE_DISPLAY_WINDOW 35
  102. #define DT_USAGE_DISPLAY_WINDOW_VAR 36
  103. #define DT_USAGE_DISPLAY_ROOT_VAR 37
  104. #define DT_BAD_TIMEOUT 38
  105. #define DT_BAD_MESSAGE 39
  106. #define DT_BAD_PATTERN 40
  107. #endif /* _Dtksh_msgs_h */
  108. /* DON'T ADD ANYTHING AFTER THIS #endif */