1
1

nano.h: - Fix type in INSERTFILE_LIST_LEN. && search_init() - add #ifdef NANO_SMALL around toggles code.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@732 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
Chris Allegretta 2001-07-15 22:24:24 +00:00
родитель 307d4c8f6b
Коммит f372bd9f8c
3 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -2,8 +2,13 @@ CVS code -
- nano.c: - nano.c:
main() main()
- Change the getop option to 'F' (David Lawrence Ramsey) - Change the getop option to 'F' (David Lawrence Ramsey)
- nano.h:
- Fix type in INSERTFILE_LIST_LEN.
- rcfile.c: - rcfile.c:
- Update for the multibuffer option (oops) (David Lawrence Ramsey). - Update for the multibuffer option (oops) (David Lawrence Ramsey).
- search.c:
search_init()
- add #ifdef NANO_SMALL around toggles code.
nano-1.1.0 - 07/15/2001 nano-1.1.0 - 07/15/2001
- General - General

2
nano.h
Просмотреть файл

@ -312,7 +312,7 @@ know what you're doing */
#define BROWSER_LIST_LEN 4 #define BROWSER_LIST_LEN 4
#else #else
#define WRITEFILE_LIST_LEN 3 #define WRITEFILE_LIST_LEN 3
#define IMSERTFILE_LIST_LEN 1 #define INSERTFILE_LIST_LEN 1
#endif #endif
#define VIEW 1 #define VIEW 1

Просмотреть файл

@ -72,10 +72,13 @@ void search_init_globals(void)
*/ */
int search_init(int replacing) int search_init(int replacing)
{ {
int i = 0, j; int i = 0;
char *buf; char *buf;
char *prompt; char *prompt;
static char *backupstring = NULL; static char *backupstring = NULL;
#ifndef NANO_SMALL
int j;
#endif
search_init_globals(); search_init_globals();
@ -170,9 +173,11 @@ int search_init(int replacing)
backupstring = NULL; backupstring = NULL;
backupstring = mallocstrcpy(backupstring, answer); backupstring = mallocstrcpy(backupstring, answer);
#ifndef NANO_SMALL
for (j = 0; j <= TOGGLE_LEN - 1; j++) for (j = 0; j <= TOGGLE_LEN - 1; j++)
if (i == toggles[j].val) if (i == toggles[j].val)
TOGGLE(toggles[j].flag); TOGGLE(toggles[j].flag);
#endif
return 1; return 1;
case NANO_OTHERSEARCH_KEY: case NANO_OTHERSEARCH_KEY: