annotate oldXMenu/Error.c @ 64494:ca001bc998df

(custom-mode-map): Bind `C-c C-c' to `Custom-set'. (Custom-mode-menu): Use `info' instead of `Info-goto-node'.
author Juri Linkov <juri@jurta.org>
date Tue, 19 Jul 2005 11:21:30 +0000
parents e8824c4f5f7e
children 3861ff8f4bf1 8e5779acd195
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25858
Dave Love <fx@gnu.org>
parents:
diff changeset
1 #include "copyright.h"
Dave Love <fx@gnu.org>
parents:
diff changeset
2
Dave Love <fx@gnu.org>
parents:
diff changeset
3 /* Copyright Massachusetts Institute of Technology 1985 */
Dave Love <fx@gnu.org>
parents:
diff changeset
4
Dave Love <fx@gnu.org>
parents:
diff changeset
5 /*
Dave Love <fx@gnu.org>
parents:
diff changeset
6 * XMenu: MIT Project Athena, X Window system menu package
Dave Love <fx@gnu.org>
parents:
diff changeset
7 *
Dave Love <fx@gnu.org>
parents:
diff changeset
8 * XMenuError - Returns a string description of the current
Dave Love <fx@gnu.org>
parents:
diff changeset
9 * XMenu error status flag.
Dave Love <fx@gnu.org>
parents:
diff changeset
10 *
Dave Love <fx@gnu.org>
parents:
diff changeset
11 * Author: Tony Della Fera, DEC
Dave Love <fx@gnu.org>
parents:
diff changeset
12 * August, 1985
Dave Love <fx@gnu.org>
parents:
diff changeset
13 *
Dave Love <fx@gnu.org>
parents:
diff changeset
14 */
Dave Love <fx@gnu.org>
parents:
diff changeset
15
Dave Love <fx@gnu.org>
parents:
diff changeset
16 #include "XMenuInt.h"
Dave Love <fx@gnu.org>
parents:
diff changeset
17
Dave Love <fx@gnu.org>
parents:
diff changeset
18 char *
Dave Love <fx@gnu.org>
parents:
diff changeset
19 XMenuError()
Dave Love <fx@gnu.org>
parents:
diff changeset
20 {
Dave Love <fx@gnu.org>
parents:
diff changeset
21 static char message[128]; /* Error message buffer. */
Dave Love <fx@gnu.org>
parents:
diff changeset
22
Dave Love <fx@gnu.org>
parents:
diff changeset
23 if ((_XMErrorCode < XME_CODE_COUNT) && (_XMErrorCode >= 0)) {
Dave Love <fx@gnu.org>
parents:
diff changeset
24 return(_XMErrorList[_XMErrorCode]);
Dave Love <fx@gnu.org>
parents:
diff changeset
25 }
Dave Love <fx@gnu.org>
parents:
diff changeset
26 sprintf(message, "Unknown _XMErrorCode: %d", _XMErrorCode);
Dave Love <fx@gnu.org>
parents:
diff changeset
27 return(message);
Dave Love <fx@gnu.org>
parents:
diff changeset
28 }
Dave Love <fx@gnu.org>
parents:
diff changeset
29
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 25858
diff changeset
30 /* arch-tag: 5fff4a23-40ca-40d0-8887-c50fc73dea9d
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 25858
diff changeset
31 (do not change this comment) */