Only build im-xim if USE_X11 is enabled s/strcpy/memcpy/ to save a few

* modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
	* gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
This commit is contained in:
Elliot Lee 2000-11-28 18:46:11 +00:00
parent 2e39ad6a28
commit de5298f9ba
9 changed files with 26 additions and 10 deletions

View File

@ -1,6 +1,8 @@
2000-11-28 Elliot Lee <sopwith@redhat.com>
* gdk/gdkregion-generic.c: Zap warning.
* modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
* gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
2000-11-28 Alexander Larsson <alla@lysator.liu.se>

View File

@ -1,6 +1,8 @@
2000-11-28 Elliot Lee <sopwith@redhat.com>
* gdk/gdkregion-generic.c: Zap warning.
* modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
* gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
2000-11-28 Alexander Larsson <alla@lysator.liu.se>

View File

@ -1,6 +1,8 @@
2000-11-28 Elliot Lee <sopwith@redhat.com>
* gdk/gdkregion-generic.c: Zap warning.
* modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
* gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
2000-11-28 Alexander Larsson <alla@lysator.liu.se>

View File

@ -1,6 +1,8 @@
2000-11-28 Elliot Lee <sopwith@redhat.com>
* gdk/gdkregion-generic.c: Zap warning.
* modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
* gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
2000-11-28 Alexander Larsson <alla@lysator.liu.se>

View File

@ -1,6 +1,8 @@
2000-11-28 Elliot Lee <sopwith@redhat.com>
* gdk/gdkregion-generic.c: Zap warning.
* modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
* gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
2000-11-28 Alexander Larsson <alla@lysator.liu.se>

View File

@ -1,6 +1,8 @@
2000-11-28 Elliot Lee <sopwith@redhat.com>
* gdk/gdkregion-generic.c: Zap warning.
* modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
* gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
2000-11-28 Alexander Larsson <alla@lysator.liu.se>

View File

@ -1,6 +1,8 @@
2000-11-28 Elliot Lee <sopwith@redhat.com>
* gdk/gdkregion-generic.c: Zap warning.
* modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
* gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
2000-11-28 Alexander Larsson <alla@lysator.liu.se>

View File

@ -563,7 +563,7 @@ gtk_rc_get_default_files (void)
if (only_digit)
{
strcpy (retval, "iso");
memcpy (retval, "iso", 4);
wp = retval + 3;
}
else

View File

@ -33,8 +33,15 @@ LDADDS = @STRIP_BEGIN@ \
@STRIP_END@
moduledir = $(libdir)/gtk-2.0/$(GTK_VERSION)/immodules
module_LTLIBRARIES = im-cyrillic-translit.la im-xim.la im-viqr.la im-thai-broken.la \
im-inuktitut.la
im_xim_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module
im_xim_la_SOURCES = \
gtkimcontextxim.c \
gtkimcontextxim.h \
imxim.c
if USE_X11
IM_XIM_MODULE=im-xim.la
endif
im_cyrillic_translit_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module
im_cyrillic_translit_la_SOURCES = imcyrillic-translit.c
@ -48,10 +55,5 @@ im_viqr_la_SOURCES = imviqr.c
im_inuktitut_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module
im_inuktitut_la_SOURCES = iminuktitut.c
im_xim_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module
im_xim_la_SOURCES = \
gtkimcontextxim.c \
gtkimcontextxim.h \
imxim.c
module_LTLIBRARIES = im-cyrillic-translit.la $(IM_XIM_MODULE) im-viqr.la im-thai-broken.la \
im-inuktitut.la