comparison src/intl-win32.c @ 1111:184461bc8de4

[xemacs-hg @ 2002-11-18 06:52:23 by ben] warning fixes, etc. * s/cygwin32.h: -fvtable-thunks is obsolete in GCC 3 and generates warnings. * s/mingw32.h: * s/windowsnt.h: Comment fixes. * emodules.h: Fix warnings from redefining symbols. * eval.c: Fix C++ errors -- no automatic casting between function pointers and void *, function declarations inside of functions not allowed. * event-Xt.c (emacs_Xt_enqueue_focus_event): Warning fixes. * fileio.c (Ffile_truename): Warning fixes. Use LOCAL_TO_WIN32_FILE_FORMAT rather than duplicating it. * glyphs-x.c: Fix style. * intl-auto-encap-win32.c: * intl-auto-encap-win32.h: * intl-encap-win32.c: * intl-encap-win32.c (qxeRegConnectRegistry): * syswindows.h (RegConnectRegistry): DdeCreateStringHandle needs to be manual due to new Cygwin bug. * intl-win32.c: wcslen/wcscmp don't seem to exist under G++ 3, Cygwin. * lisp.h: * lisp-union.h: * lisp-disunion.h: * process-unix.c (unix_send_process): Ugh, C needs volatile and C++ must not have volatile. Remove previous volatile hacks, which don't seem to be working any more. * sheap.c (STATIC_HEAP_SLOP): Try to get a working Cygwin build with old unexec. * sheap.c (more_static_core): No NL's in literals allowed. * symbols.c (Fset): Fix C++ errors. * syswindows.h: Fix Cygwin complaints now that some missing structs have been added. aclocal.m4: Disable shared library modules under Cygwin for the moment, since we need some more tricky coding done and I don't have the time right now. configure.in, configure.usage: code-files.el, loadhist.el: Fix warnings. package-get.el: Fix warnings. NOTE: This was already fixed awhile ago, but reverted by Steve Y. Please be careful. postgresql/Makefile.in.in: Removed. Move common stuff into modues/common/Makefile.common. (Also add extraclean target and a couple of other fixes in that file.) postgresql/configure.ac: Extract out common configure stuff into modules/common/configure-{pre,post}.ac. postgresql/postgresql.c: Fix warning. ldap/Makefile.in.in: Removed. Move common stuff into modues/common/Makefile.common. (Also add extraclean target and a couple of other fixes in that file.) ldap/configure.ac: Extract out common configure stuff into modules/common/configure-{pre,post}.ac. common/Makefile.common: Common stuff is here.
author ben
date Mon, 18 Nov 2002 06:53:08 +0000
parents 79c6ff3eef26
children e22b0213b713
comparison
equal deleted inserted replaced
1110:49065a0d2943 1111:184461bc8de4
1298 invalidate_charset_font_caches (charset); 1298 invalidate_charset_font_caches (charset);
1299 face_property_was_changed (Vdefault_face, Qfont, Qglobal); 1299 face_property_was_changed (Vdefault_face, Qfont, Qglobal);
1300 return Qnil; 1300 return Qnil;
1301 } 1301 }
1302 1302
1303 Lisp_Object 1303 #if 0 /* Unused */
1304
1305 static Lisp_Object
1304 mswindows_get_registry_charset (Ibyte *registry) 1306 mswindows_get_registry_charset (Ibyte *registry)
1305 { 1307 {
1306 Lisp_Object charset_tail; 1308 Lisp_Object charset_tail;
1307 Lisp_Object charset = Qunbound; 1309 Lisp_Object charset = Qunbound;
1308 1310
1318 break; 1320 break;
1319 } 1321 }
1320 } 1322 }
1321 return charset; 1323 return charset;
1322 } 1324 }
1325
1326 #endif /* 0 */
1323 1327
1324 1328
1325 1329
1326 #if 0 /* #### from Emacs 20.6; consider porting */ 1330 #if 0 /* #### from Emacs 20.6; consider porting */
1327 1331
1608 #endif /* MULE */ 1612 #endif /* MULE */
1609 1613
1610 1614
1611 #ifdef CYGWIN 1615 #ifdef CYGWIN
1612 1616
1613 /* based on newlib strncpy, strcpy */ 1617 /* based on newlib str*() */
1618
1619 #ifndef HAVE_WCSCMP
1620
1621 int
1622 wcscmp (const wchar_t *s1, const wchar_t *s2)
1623 {
1624 while (*s1 != '\0' && *s1 == *s2)
1625 {
1626 s1++;
1627 s2++;
1628 }
1629
1630 return *s1 - *s2;
1631 }
1632
1633 #endif /* not HAVE_WCSCMP */
1634
1635 #ifndef HAVE_WCSLEN
1636
1637 size_t
1638 wcslen (const wchar_t *str)
1639 {
1640 const wchar_t *start = str;
1641
1642 while (*str)
1643 str++;
1644
1645 return str - start;
1646 }
1647
1648 #endif /* not HAVE_WCSLEN */
1614 1649
1615 wchar_t * 1650 wchar_t *
1616 wcsncpy (wchar_t *dst0, const wchar_t *src0, size_t count) 1651 wcsncpy (wchar_t *dst0, const wchar_t *src0, size_t count)
1617 { 1652 {
1618 wchar_t *dscan; 1653 wchar_t *dscan;