Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
7c5d099c
Commit
7c5d099c
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: frob a couple of comments
parent
152cc24d
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/global.c
+8
-10
src/global.c
src/proto.h
+1
-0
src/proto.h
with
9 additions
and
10 deletions
+9
-10
src/global.c
View file @
7c5d099c
...
...
@@ -93,15 +93,15 @@ char *present_path = NULL;
unsigned
flags
[
4
]
=
{
0
,
0
,
0
,
0
};
/* Our flag containing the states of all global options. */
WINDOW
*
topwin
=
NULL
;
/* The top portion of the window, where we display the version
* number of nano, the name of the current file, and whether the
* current file has been modified. */
/* The top portion of the screen, showing the version number of nano,
* the name of the file, and whether the buffer was modified. */
WINDOW
*
edit
=
NULL
;
/* The middle portion of the
window, i.e.
the edit window,
wher
e
*
we display
the current file we
'
re editing. */
/* The middle portion of the
screen:
the edit window,
showing th
e
*
contents of
the current
buffer, the
file we
a
re editing. */
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. */
int
editwinrows
=
0
;
/* 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 TOGETHER FALSE
/*
Just throw this here
. */
/*
Empty functions, for the most part corresponding to toggles
. */
void
case_sens_void
(
void
)
{
}
...
...
@@ -391,7 +391,6 @@ const sc *first_sc_for(int menu, void (*func)(void))
#ifdef DEBUG
fprintf
(
stderr
,
"Whoops, returning null given func %ld in menu %x
\n
"
,
(
long
)
func
,
menu
);
#endif
/* Otherwise... */
return
NULL
;
}
...
...
@@ -1388,8 +1387,7 @@ const subnfunc *sctofunc(const sc *s)
}
#ifndef NANO_TINY
/* Now let's come up with a single (hopefully) function to get a string
* for each flag. */
/* Return the textual description that corresponds to the given flag. */
const
char
*
flagtostr
(
int
flag
)
{
switch
(
flag
)
{
...
...
This diff is collapsed.
Click to expand it.
src/proto.h
View file @
7c5d099c
...
...
@@ -88,6 +88,7 @@ extern char *last_search;
extern
char
*
present_path
;
extern
unsigned
flags
[
4
];
extern
WINDOW
*
topwin
;
extern
WINDOW
*
edit
;
extern
WINDOW
*
bottomwin
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help