X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/d76bf86f438d4f5f9fe493ab76f02ffc78f3ae2e..dd98ee8992c3246861e44447ffcd02886a52878e:/src/cm.h diff --git a/src/cm.h b/src/cm.h index 6d49dda941..126969dcce 100644 --- a/src/cm.h +++ b/src/cm.h @@ -1,12 +1,12 @@ /* Cursor motion calculation definitions for GNU Emacs - Copyright (C) 1985, 1989, 2001-2013 Free Software Foundation, Inc. + Copyright (C) 1985, 1989, 2001-2016 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +the Free Software Foundation, either version 3 of the License, or (at +your option) any later version. GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -16,6 +16,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ +#ifndef EMACS_CM_H +#define EMACS_CM_H + /* Holds the minimum and maximum costs for the parameterized capabilities. */ struct parmcap { @@ -47,7 +50,7 @@ struct cm char *cm_abs; /* absolute (cm) */ const char *cm_habs; /* horizontal absolute (ch) */ const char *cm_vabs; /* vertical absolute (cv) */ -#if 0 +#if false const char *cm_ds; /* "don't send" string (ds) */ #endif const char *cm_multiup; /* multiple up (UP) */ @@ -57,19 +60,19 @@ struct cm int cm_cols; /* number of cols on screen (co) */ int cm_rows; /* number of rows on screen (li) */ int cm_tabwidth; /* tab width (it) */ - unsigned int cm_autowrap:1; /* autowrap flag (am) */ - unsigned int cm_magicwrap:1; /* VT-100: cursor stays in last col but + bool_bf cm_autowrap : 1; /* autowrap flag (am) */ + bool_bf cm_magicwrap : 1; /* VT-100: cursor stays in last col but will cm_wrap if next char is printing (xn) */ - unsigned int cm_usetabs:1; /* if set, use tabs */ - unsigned int cm_losewrap:1; /* if reach right margin, forget cursor + bool_bf cm_usetabs : 1; /* if set, use tabs */ + bool_bf cm_losewrap : 1; /* if reach right margin, forget cursor location */ - unsigned int cm_autolf:1; /* \r performs a \r\n (rn) */ + bool_bf cm_autolf : 1; /* \r performs a \r\n (rn) */ /* Parameterized capabilities. This needs to be a struct since the costs are accessed through pointers. */ -#if 0 +#if false struct parmcap cc_abs; /* absolute (cm) */ struct parmcap cc_habs; /* horizontal absolute (ch) */ struct parmcap cc_vabs; /* vertical absolute (cv) */ @@ -139,7 +142,7 @@ struct cm #define MultiDownCost(tty) (tty)->Wcm->cc_multidown #define MultiLeftCost(tty) (tty)->Wcm->cc_multileft #define MultiRightCost(tty) (tty)->Wcm->cc_multiright -#endif +#endif /* NoCMShortHand */ #define cmat(tty,row,col) (curY(tty) = (row), curX(tty) = (col)) #define cmplus(tty,n) \ @@ -166,3 +169,5 @@ extern void cmcostinit (struct tty_display_info *); extern void cmgoto (struct tty_display_info *, int, int); extern void Wcm_clear (struct tty_display_info *); extern int Wcm_init (struct tty_display_info *); + +#endif /* EMACS_CM_H */