Mercurial > hg > xemacs-beta
annotate src/xmmanagerp.h @ 4949:018e13fdeaeb
compile-related functions added, for use in Unicode-internal ws
-------------------- ChangeLog entries follow: --------------------
lisp/ChangeLog addition:
2010-01-17 Ben Wing <ben@xemacs.org>
* bytecomp-runtime.el:
* bytecomp-runtime.el (error-unless-tests-match): New.
* bytecomp-runtime.el (byte-compile-file-being-compiled): New.
* bytecomp-runtime.el (compiled-if): New.
* bytecomp-runtime.el (compiled-when): New.
Add functions for dealing with conditional compilation of different code
depending on the presence or absence of features. Necessary for some
Mule code where code is run during compilation (macros or eval-when-compile)
but, depending on how the code is written, the code itself will crash
either with or without Unicode-internal.
compiled-if and compiled-when are the basic functions for conditional
compilation. They automatically trigger an error message upon file
loading if, at that time, the test expression that selected which code
to compile does not have the same value as at compile time.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Sun, 17 Jan 2010 04:52:48 -0600 |
parents | 70921960b980 |
children | 308d34e9f07d |
rev | line source |
---|---|
428 | 1 /* This file just includes the Motif header file ManagerP.h, but does |
2 the necessary magic to do this properly. | |
3 | |
4 This file is part of XEmacs. | |
5 | |
6 XEmacs is free software; you can redistribute it and/or modify it | |
7 under the terms of the GNU General Public License as published by the | |
8 Free Software Foundation; either version 2, or (at your option) any | |
9 later version. | |
10 | |
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with XEmacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 Boston, MA 02111-1307, USA. */ | |
20 | |
21 /* Synched up with: Not in FSF. */ | |
22 | |
23 /* ManagerP.h doesn't exist in old versions of Motif; the stuff is | |
24 in XmP.h instead */ | |
25 | |
440 | 26 #ifndef INCLUDED_xmmanagerp_h_ |
27 #define INCLUDED_xmmanagerp_h_ | |
28 | |
1315 | 29 #include "xmotif.h" /* to get XmVersion */ |
428 | 30 #if (XmVersion >= 1002) |
31 # include <Xm/ManagerP.h> | |
32 #else | |
1315 | 33 # include "xmprimitivep.h" |
428 | 34 #endif |
440 | 35 |
36 #endif /* INCLUDED_xmmanagerp_h_ */ |