tweaks: frob a couple of comments
parent
152cc24d1f
commit
7c5d099c6f
18
src/global.c
18
src/global.c
|
@ -93,15 +93,15 @@ char *present_path = NULL;
|
||||||
|
|
||||||
unsigned flags[4] = {0, 0, 0, 0};
|
unsigned flags[4] = {0, 0, 0, 0};
|
||||||
/* Our flag containing the states of all global options. */
|
/* Our flag containing the states of all global options. */
|
||||||
|
|
||||||
WINDOW *topwin = NULL;
|
WINDOW *topwin = NULL;
|
||||||
/* The top portion of the window, where we display the version
|
/* The top portion of the screen, showing the version number of nano,
|
||||||
* number of nano, the name of the current file, and whether the
|
* the name of the file, and whether the buffer was modified. */
|
||||||
* current file has been modified. */
|
|
||||||
WINDOW *edit = NULL;
|
WINDOW *edit = NULL;
|
||||||
/* The middle portion of the window, i.e. the edit window, where
|
/* The middle portion of the screen: the edit window, showing the
|
||||||
* we display the current file we're editing. */
|
* contents of the current buffer, the file we are editing. */
|
||||||
WINDOW *bottomwin = NULL;
|
WINDOW *bottomwin = NULL;
|
||||||
/* The bottom portion of the window, where we display statusbar
|
/* The bottom portion of the screen, where we display statusbar
|
||||||
* messages, the statusbar prompt, and a list of shortcuts. */
|
* messages, the statusbar prompt, and a list of shortcuts. */
|
||||||
int editwinrows = 0;
|
int editwinrows = 0;
|
||||||
/* How many rows does the edit window take up? */
|
/* How many rows does the edit window take up? */
|
||||||
|
@ -265,7 +265,7 @@ size_t length_of_list(int menu)
|
||||||
#define BLANKAFTER TRUE /* A blank line after this one. */
|
#define BLANKAFTER TRUE /* A blank line after this one. */
|
||||||
#define TOGETHER FALSE
|
#define TOGETHER FALSE
|
||||||
|
|
||||||
/* Just throw this here. */
|
/* Empty functions, for the most part corresponding to toggles. */
|
||||||
void case_sens_void(void)
|
void case_sens_void(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -391,7 +391,6 @@ const sc *first_sc_for(int menu, void (*func)(void))
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "Whoops, returning null given func %ld in menu %x\n", (long)func, menu);
|
fprintf(stderr, "Whoops, returning null given func %ld in menu %x\n", (long)func, menu);
|
||||||
#endif
|
#endif
|
||||||
/* Otherwise... */
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1388,8 +1387,7 @@ const subnfunc *sctofunc(const sc *s)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
/* Now let's come up with a single (hopefully) function to get a string
|
/* Return the textual description that corresponds to the given flag. */
|
||||||
* for each flag. */
|
|
||||||
const char *flagtostr(int flag)
|
const char *flagtostr(int flag)
|
||||||
{
|
{
|
||||||
switch (flag) {
|
switch (flag) {
|
||||||
|
|
|
@ -88,6 +88,7 @@ extern char *last_search;
|
||||||
extern char *present_path;
|
extern char *present_path;
|
||||||
|
|
||||||
extern unsigned flags[4];
|
extern unsigned flags[4];
|
||||||
|
|
||||||
extern WINDOW *topwin;
|
extern WINDOW *topwin;
|
||||||
extern WINDOW *edit;
|
extern WINDOW *edit;
|
||||||
extern WINDOW *bottomwin;
|
extern WINDOW *bottomwin;
|
||||||
|
|
Loading…
Reference in New Issue