aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorPaul Eggert2015-10-16 14:54:09 -0700
committerPaul Eggert2015-10-16 14:56:11 -0700
commit55ba8c022b493b494bea257e4f523758154e0fdd (patch)
tree3e65647197e08099f62815c99cf2bcffa4444b77 /src/buffer.h
parent1e1a326c0f609f403c625bd9082e1099a4d9a52a (diff)
downloademacs-55ba8c022b493b494bea257e4f523758154e0fdd.tar.gz
emacs-55ba8c022b493b494bea257e4f523758154e0fdd.zip
Make src headers idempotent and standalone
Redo src/*.h so that each include file is idempotent (that is, can be included multiple times with the latter inclusions having no effect) and standalone (that is, can be included by itself, with no include file other than config.h needed as a prerequisite). This is standard practice in GNU programs nowadays. * lwlib/lwlib-widget.h, src/buffer.h, src/category.h, src/character.h: * src/charset.h, src/coding.h, src/commands.h, src/disptab.h: * src/fontset.h, src/gnutls.h, src/indent.h, src/keymap.h, src/macros.h: * src/regex.h [emacs]: * src/syntax.h, src/systty.h, src/termhooks.h: Include lisp.h, for Lisp_Object. * src/buffer.h, src/category.h, src/cm.h, src/commands.h, src/disptab.h: * src/indent.h, src/intervals.h, src/keyboard.h, src/macros.h: * src/process.h, src/puresize.h, src/region-cache.h, src/syntax.h: * src/syssignal.h, src/sysstdio.h, src/systty.h, src/termchar.h: * src/termopts.h, src/tparam.h, src/unexec.h: Protect against multiple inclusion. * src/buffer.h: Include character.h, for STRING_CHAR. * src/emacsgtkfixed.h (struct frame): * src/fontset.h (struct face): * src/region-cache.h (struct buffer): * src/termhooks.h (struct glyph): * src/xsettings.h (struct x_display_info): Add possibly-forward decl. * src/syntax.h: Include buffer.h, for BVAR. * src/sysselect.h: Include lisp.h, for eassume. * src/termchar.h: Include <stdio.h>, for FILE. * src/widget.h: Include <X11/IntrinsicP.h>, for Widget. * src/xsettings.h: Include <X11/Xlib.h>, for XEvent.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index a0410d454cd..f80530a0cdb 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -18,9 +18,15 @@ GNU General Public License for more details.
18You should have received a copy of the GNU General Public License 18You should have received a copy of the GNU General Public License
19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20 20
21#ifndef EMACS_BUFFER_H
22#define EMACS_BUFFER_H
23
21#include <sys/types.h> 24#include <sys/types.h>
22#include <time.h> 25#include <time.h>
23 26
27#include "character.h"
28#include "lisp.h"
29
24INLINE_HEADER_BEGIN 30INLINE_HEADER_BEGIN
25 31
26/* Accessing the parameters of the current buffer. */ 32/* Accessing the parameters of the current buffer. */
@@ -1377,3 +1383,5 @@ lowercasep (int c)
1377INLINE int upcase (int c) { return uppercasep (c) ? c : upcase1 (c); } 1383INLINE int upcase (int c) { return uppercasep (c) ? c : upcase1 (c); }
1378 1384
1379INLINE_HEADER_END 1385INLINE_HEADER_END
1386
1387#endif /* EMACS_BUFFER_H */