Commit ec721c8e authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

another missing piece of DB's patch: the toggle and rcoption structs

should use longs to store their flags too


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1846 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <limits.h> #include <limits.h>
#endif #endif
/* Macros for the flags int... */ /* Macros for the flags long... */
#define SET(bit) flags |= bit #define SET(bit) flags |= bit
#define UNSET(bit) flags &= ~bit #define UNSET(bit) flags &= ~bit
#define ISSET(bit) ((flags & bit) != 0) #define ISSET(bit) ((flags & bit) != 0)
...@@ -194,7 +194,7 @@ typedef struct toggle { ...@@ -194,7 +194,7 @@ typedef struct toggle {
const char *desc; /* Description for when toggle is, uh, toggled, const char *desc; /* Description for when toggle is, uh, toggled,
* e.g. "Cut to end"; we'll append Enabled or * e.g. "Cut to end"; we'll append Enabled or
* Disabled. */ * Disabled. */
int flag; /* What flag actually gets toggled. */ long flag; /* What flag actually gets toggled. */
struct toggle *next; struct toggle *next;
} toggle; } toggle;
#endif /* !NANO_SMALL */ #endif /* !NANO_SMALL */
...@@ -202,7 +202,7 @@ typedef struct toggle { ...@@ -202,7 +202,7 @@ typedef struct toggle {
#ifdef ENABLE_NANORC #ifdef ENABLE_NANORC
typedef struct rcoption { typedef struct rcoption {
const char *name; const char *name;
int flag; long flag;
} rcoption; } rcoption;
#endif /* ENABLE_NANORC */ #endif /* ENABLE_NANORC */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment