1
1

* file.c: Warning fix. Include global.h before other local

includes.
* filegui.c: Likewise.
(fmd_init_i18n) [!ENABLE_NLS]: Completely disable.
* i18n.h [!ENABLE_NLS]: Warning fix.
* learn.c (init_learn): Move do_refresh() call immediately
before cleate_dlg().  Warning fix.
Этот коммит содержится в:
Pavel Roskin 2001-08-03 04:47:52 +00:00
родитель 50859eae37
Коммит b201fe6077
5 изменённых файлов: 20 добавлений и 10 удалений

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

@ -1,3 +1,13 @@
2001-08-03 Pavel Roskin <proski@gnu.org>
* file.c: Warning fix. Include global.h before other local
includes.
* filegui.c: Likewise.
(fmd_init_i18n) [!ENABLE_NLS]: Completely disable.
* i18n.h [!ENABLE_NLS]: Warning fix.
* learn.c (init_learn): Move do_refresh() call immediately
before cleate_dlg(). Warning fix.
2001-07-31 Pavel Roskin <proski@gnu.org> 2001-07-31 Pavel Roskin <proski@gnu.org>
* Makefile.in: "install" now depends on "all". * Makefile.in: "install" now depends on "all".

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

@ -79,9 +79,9 @@
#endif /* SCO_FLAVOR */ #endif /* SCO_FLAVOR */
#include <time.h> #include <time.h>
#include <utime.h> #include <utime.h>
#include "global.h"
#include "eregex.h" #include "eregex.h"
#include "dialog.h" #include "dialog.h"
#include "global.h"
#include "setup.h" #include "setup.h"
/* Needed by query_replace */ /* Needed by query_replace */
#include "color.h" #include "color.h"

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

@ -68,7 +68,6 @@
#endif #endif
#include <errno.h> #include <errno.h>
#include "tty.h"
#include <ctype.h> #include <ctype.h>
#include <string.h> #include <string.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
@ -82,8 +81,9 @@
#endif /* SCO_FLAVOR */ #endif /* SCO_FLAVOR */
#include <time.h> #include <time.h>
#include <utime.h> #include <utime.h>
#include "eregex.h"
#include "global.h" #include "global.h"
#include "tty.h"
#include "eregex.h"
#include "setup.h" #include "setup.h"
#include "dialog.h" #include "dialog.h"
/* Needed by query_replace */ /* Needed by query_replace */
@ -812,6 +812,7 @@ static QuickWidget fmd_widgets [] = {
void void
fmd_init_i18n (int force) fmd_init_i18n (int force)
{ {
#ifdef ENABLE_NLS
static int initialized = FALSE; static int initialized = FALSE;
register int i; register int i;
int len; int len;
@ -819,7 +820,6 @@ fmd_init_i18n (int force)
if (initialized && !force) if (initialized && !force)
return; return;
#ifdef ENABLE_NLS
for (i = sizeof (op_names) / sizeof (op_names[0]); i--;) for (i = sizeof (op_names) / sizeof (op_names[0]); i--;)
op_names [i] = _(op_names [i]); op_names [i] = _(op_names [i]);
@ -873,9 +873,9 @@ fmd_init_i18n (int force)
fmd_widgets [FMDI2].hotkey_pos = fmd_xlen - 6; fmd_widgets [FMDI2].hotkey_pos = fmd_xlen - 6;
} }
#undef chkbox_xpos #undef chkbox_xpos
#endif /* ENABLE_NLS */
initialized = TRUE; initialized = TRUE;
#endif /* !ENABLE_NLS */
} }
char * char *

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

@ -17,11 +17,11 @@
# endif # endif
# else # else
/* Stubs that do something close enough. */ /* Stubs that do something close enough. */
# define textdomain(String) (String) # define textdomain(String)
# define gettext(String) (String) # define gettext(String) (String)
# define dgettext(Domain,Message) (Message) # define dgettext(Domain,Message) (Message)
# define dcgettext(Domain,Message,Type) (Message) # define dcgettext(Domain,Message,Type) (Message)
# define bindtextdomain(Domain,Directory) (Domain) # define bindtextdomain(Domain,Directory)
# define _(String) (String) # define _(String) (String)
# define N_(String) (String) # define N_(String) (String)
# endif # endif

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

@ -232,11 +232,9 @@ static void init_learn (void)
int x, y, i, j; int x, y, i, j;
key_code_name_t *key; key_code_name_t *key;
char buffer [BUF_TINY]; char buffer [BUF_TINY];
static int i18n_flag = 0;
do_refresh ();
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
static int i18n_flag = 0;
if (!i18n_flag) if (!i18n_flag)
{ {
char* cp; char* cp;
@ -259,6 +257,8 @@ static void init_learn (void)
} }
#endif /* ENABLE_NLS */ #endif /* ENABLE_NLS */
do_refresh ();
learn_dlg = create_dlg (0, 0, 23, 78, dialog_colors, learn_dlg = create_dlg (0, 0, 23, 78, dialog_colors,
learn_callback, "[Learn keys]", "Learn keys", learn_callback, "[Learn keys]", "Learn keys",
DLG_CENTER); DLG_CENTER);