long flag; /* What flag actually gets toggled. */
struct toggle *next;
} toggle;
-#endif /* !NANO_SMALL */
+#endif
#ifdef ENABLE_NANORC
typedef struct rcoption {
const char *name;
long flag;
} rcoption;
-#endif /* ENABLE_NANORC */
+#endif
#ifdef ENABLE_COLOR
-
typedef struct colortype {
int fg; /* fg color */
int bg; /* bg color */
colortype *color; /* color struct for this syntax */
struct syntaxtype *next;
} syntaxtype;
-
-#endif /* ENABLE_COLOR */
+#endif
#ifndef NANO_SMALL
typedef struct historytype {
struct historytype *prev;
char *data;
} historytype;
+
typedef struct historyheadtype {
struct historytype *next; /* Keep *next and *prev members
* together. */
int count;
int len;
} historyheadtype;
-#endif /* !NANO_SMALL */
+#endif
/* Bitwise flags so we can save space (or more correctly, not waste
* it). */
void new_magicline(void)
{
filebot->next = (filestruct *)nmalloc(sizeof(filestruct));
- filebot->next->data = charalloc(1);
- filebot->next->data[0] = '\0';
+ filebot->next->data = mallocstrcpy(NULL, "");
filebot->next->prev = filebot;
filebot->next->next = NULL;
filebot->next->lineno = filebot->lineno + 1;