1. 25 Oct, 2001 2 commits
    • Tor Lillqvist's avatar
      Update. · 3729dc28
      Tor Lillqvist authored
      2001-10-26  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/glib.def: Update.
      
      	* tests/makefile.{mingw,msc}.in: Add ../* to PATH before running
      	tests to find DLLs. Separate the interactive tests, don't run them
      	in the check target.
      
      	* */makefile.msc.in: Include make.msc from GLib's build directory.
      3729dc28
    • Tor Lillqvist's avatar
      Updates. · 7d916740
      Tor Lillqvist authored
      2001-10-26  Tor Lillqvist  <tml@iki.fi>
      
      	* README.win32: Updates.
      
      	* tests/makefile.mingw.in
      	* tests/makefile.msc.in: Remove mainloop-test here, too.
      
      gobject:
      
      	* makefile.mingw.in: When running glib-genmarshal, set PATH to
      	include ../glib.
      7d916740
  2. 26 Sep, 2001 1 commit
    • Tor Lillqvist's avatar
      Retract my change earlier today. Don't preset autoconf variables in a try · 18190575
      Tor Lillqvist authored
      2001-09-26  Tor Lillqvist  <tml@iki.fi>
      
      	* configure.in: Retract my change earlier today. Don't preset
      	autoconf variables in a try to match both mingw and MSVC. Instead,
      	he who packages a prebuilt GLib developer distribution for Win32
      	runs configure twice: once for mingw, once for MSVC, and then uses
      	diff -D on the glibconfig.h files to generate a suitably ifdeffed
      	glibconfig.h for distribution that suits both compilers. (Ditto
      	for config.h, although that file wouldn't be distributed in a
      	developer package, but in a source package for Win32 users who
      	want to build GLib but can't use configure.)
      
      	* glibconfig.h.win32.in
      	* config.h.win32.in: Generated by using diff -D as described above.
      
      	* tests/makefile.mingw.in (.c.exe): Correct name of gthread (import)
      	library.
      
      gthread:
      2001-09-26  Tor Lillqvist  <tml@iki.fi>
      
      	* makefile.mingw.in: Fix couple of typos.
      
      	* gthread.def: Add g_thread_init_with_errorcheck_mutexes.
      18190575
  3. 25 Sep, 2001 1 commit
    • Tor Lillqvist's avatar
      More Win32 automake macros. For .def files: GLIB_DEF, GMODULE_DEF, · 1c8de25a
      Tor Lillqvist authored
      2001-09-25  Tor Lillqvist  <tml@iki.fi>
      
      	* configure.in: More Win32 automake macros. For .def files:
      	GLIB_DEF, GMODULE_DEF, GOBJECT_DEF and GTHREAD_DEF. For .exp
      	files: TESTGMODULE_EXP (for programs that need to export symbols,
      	just testgmodule here). A new conditional, MS_LIB_AVAILABLE to
      	test whether the Microsoft librarian ("ar") is available to build
      	MS import libraries.
      
      	* glib/Makefile.am
      	* gmodule/Makefile.am: Use above. New rule to build MS import
      	library.
      
      	* glib/makefile.msc.in
      	* tests/makefile.msc.in
      	* tests/makefile.mingw.in: Use same DLL and import library names as
      	libtool.
      
      gmodule:
      2001-09-25  Tor Lillqvist  <tml@iki.fi>
      
      	* makefile.mingw.in: Fix missing end @ in @LT_CURRENT@.
      
      	* makefile.msc.in: Use same DLL and import library names as
      	libtool.
      
      gobject:
      2001-09-25  Tor Lillqvist  <tml@iki.fi>
      
      	* Makefile.am: Use new macros for .def file, and check for
      	MS_LIB_AVAILABLE, new rule to build MS import library.
      
      	* makefile.msc.in: Use same DLL and import library names as
      	libtool.
      
      gthread:
      2001-09-25  Tor Lillqvist  <tml@iki.fi>
      
      	* Makefile.am: Use new macros for .def file, and check for
      	MS_LIB_AVAILABLE, new rule to build MS import library.
      
      	* makefile.msc.in: Use same DLL and import library names as
      	libtool.
      1c8de25a
  4. 04 Sep, 2001 1 commit
    • Tor Lillqvist's avatar
      Update. Don't mention pthreads. · 07741c07
      Tor Lillqvist authored
      
      2001-09-04  Tor Lillqvist  <tml@iki.fi>
      
      	* README.win32: Update. Don't mention pthreads.
      
      	* build-dll: Remove, moved to the build module.
      
      	* glibconfig.h.win32.in: Don't mention pthreds here, either.
      
      	* glib/gstrfuncs.c: Mark the correct variable for export from DLL.
      
      	* glib/giowin32.c (g_io_win32_msg_create_watch): Owen forgot to
      	rename the win32_watch_funcs variable here, too.
      
      	* */makefile.mingw.in: Don't use version number in import library
      	name. Use whole version number in DLL name. Use build-dll from the
      	build module.
      07741c07
  5. 30 Aug, 2001 1 commit
    • Tor Lillqvist's avatar
      After being away for about five months, I'm back working on this... For · 74b4d8c2
      Tor Lillqvist authored
      2001-08-30  Tor Lillqvist  <tml@iki.fi>
      
      	After being away for about five months, I'm back working on
      	this...  For now, still using same build setup for Win32. Probably
      	will change to not including version numbers in the import library
      	names, though. (But the DLL names would still include them,
      	possibly even also the micro version number.) That would be more
      	Unix-like. Also, will have to check out newest mingw tool versions
      	to see if the build-dll script now can be retired.
      
      	* makefile.mingw
      	* makefile.msc: New files, no need to generate from .in as
      	they don't contain references to automake variables.
      
      	* makefile.mingw.in
      	* makefile.msc.in: Removed.
      
      	* glib.rc.in: Remove
      	* glib/glib.rc.in: Moved here.
      
      	* Makefile.am
      	* glib/Makefile.am: Corresponding changes.
      
      	* glib/glib.def: Fix typo, add new entries.
      
      	* glib/gspawn-win32-helper.c: More debugging. Doesn't work
      	currently (or then it never has on Win2k, which I now use?)
      
      	* glib/gstrfuncs.c
      	* glib/gstrfuncs.h: Mark g_ascii_table for export/import on Win32.
      
      	* */makefile.mingw.in: Reflect new location of glib library.
      74b4d8c2
  6. 29 Mar, 2001 1 commit
    • Tor Lillqvist's avatar
      Updates. Add module-test rules. · 93fce34a
      Tor Lillqvist authored
      2001-03-29  Tor Lillqvist  <tml@iki.fi>
      
      	* glib.def: Updates.
      	* tests/makefile.mingw.in: Add module-test rules.
      
      2001-03-29  Tor Lillqvist  <tml@iki.fi>
      
      	* gobject.def: Updates.
      93fce34a
  7. 18 Mar, 2001 1 commit
    • Tor Lillqvist's avatar
      Add braces to silence gcc -Wall. · 3bae8165
      Tor Lillqvist authored
      2001-03-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
      
      	* gspawn-win32-helper.c (write_no_error): Remove unused function.
      
      	* tests/makefile.mingw.in (module-test.exe): Add rules for
      	building module-test.
      
      2001-03-18  Tor Lillqvist  <tml@iki.fi>
      
      	* gobject.def: Correct some renamed functions.
      3bae8165
  8. 25 Jan, 2001 2 commits
    • Tor Lillqvist's avatar
      makefile.mingw.in Protect the rule to rebuild makefile.mingw if · 388454cc
      Tor Lillqvist authored
      2001-01-25  Tor Lillqvist  <tml@iki.fi>
      
      	* makefile.mingw.in
      	* */makefile.mingw.in: Protect the rule to rebuild makefile.mingw
      	if makefile.mingw.in has changed with a check if said .in file
      	exists. (This rule is mainly a convenience for yours truly.)
      388454cc
    • Tor Lillqvist's avatar
      Socket support rewritten. It was utterly broken, and untested in fact. We · 8a0df0a7
      Tor Lillqvist authored
      2001-01-25  Tor Lillqvist  <tml@iki.fi>
      
      	* giowin32.c: Socket support rewritten. It was utterly broken, and
      	untested in fact. We still do use a thread for each socket being
      	watched, but instead of blocking in recv() (which of course was
      	plain stupid for sockets being liste()ed on), we block in
      	select(). The read method for sockets calls recv(). It is now
      	possible for the application to call accept(), recv() or send() in
      	the callback, just like on Unix. Tested with code kindly provided
      	by Andrew Lanoix.
      
      	Rename g_io_channel_win32_new_stream_socket() to
      	g_io_channel_win32_new_socket() as it isn't restricted to stream
      	sockets.
      
      	* gmain.c (g_poll): Related changes in the Win32 version of
      	g_poll(). When polling for messages, always do a PeekMessage()
      	first. We used to miss messages if several were posted between
      	calls to g_poll().
      
      	* giochannel.h: Improve Win32-related comments.
      
      	* gutf8.c: (Win32) Include <stdio.h> for sprintf.
      
      	* tests/gio-test.c: (Win32) Add tests for polling for Windows
      	messages.
      
      	* tests/makefile.mingw.in: Remove superfluous compilation command
      	line.
      8a0df0a7
  9. 06 Jan, 2001 1 commit
    • Tor Lillqvist's avatar
      Get len using strlen() if arg is negative in the Win32 code, too. · deb68e15
      Tor Lillqvist authored
      2001-01-06  Tor Lillqvist  <tml@iki.fi>
      
      	* gconvert.c (g_locale_to_utf8, g_locale_from_utf8): Get len using
      	strlen() if arg is negative in the Win32 code, too.
      
      	* giowin32.c: Changes necessary to be able to run
      	mainloop-test. We can't close the fd that our (internal) reader
      	thread is sitting doing a blocking read() from. We must terminate
      	the thread first. Keep track of thread handle, and close it when
      	thread is dying. Start reader thread with the lower-level
      	CreateThread() instead of _beginthreadex() from the C runtime, in
      	order to be able to use TerminateThread(). Hopefuly this isn't
      	harmful.
      
      	* glib.def: Update.
      
      	* tests/makefile.{mingw,msc}.in (TESTS): Add mainloop-test and
      	unicode-encoding.
      
      	* tests/mainloop-test.c: Portability: <unistd.h>, need <fcntl.h>
      	on Win32.
      
      	* tests/unicode-encoding.c (process): Add missing "line" argument
      	to fail(). On Win32, convert UTF-16LE, as libiconv'c ivonf always
      	converts to UTF-16BE if we ask for unspecific UTF-16.
      	(main) Handle also '\r'.
      deb68e15
  10. 27 Oct, 2000 1 commit
    • Tor Lillqvist's avatar
      Add gmarkup. · 09683edc
      Tor Lillqvist authored
      2000-10-27  Tor Lillqvist  <tml@iki.fi>
      
      	* makefile.{mingw,msc}.in (glib_OBJECTS): Add gmarkup.
      
      	* glib.def: Add missing functions.
      
      	* tests/makefile.{mingw,msc}.in (TESTS): Add markup-test.
      09683edc
  11. 16 Oct, 2000 1 commit
    • Tor Lillqvist's avatar
      Some more debugging output. (g_io_channel_win32_poll): Remove unused vars. · fb4de1c5
      Tor Lillqvist authored
      2000-10-16  Tor Lillqvist  <tml@iki.fi>
      
      	* giowin32.c (reader_thread): Some more debugging output.
      	(g_io_channel_win32_poll): Remove unused vars.
      
      	* gfileutils.c: Changes for Win32, with no unistd.h and no
      	S_ISLNK().
      
      	* gspawn-win32.c: Implementation of the g_spwan_* functions for
      	Win32. Due to the general non-Unixness of Win32, much of the
      	functionality that is relatively clean to implement on Unix, is
      	hard to do on Win32. We must use a separate helper program to
      	change directory, close extra file descriptors, redirect the std
      	ones, as needed, and only then start the child process. No child
      	process pid can be returned, unfortunately. Or if we used
      	CreateProcess directly, it probably could. (Now we use the spawnv*
      	functions from msvcrt.)
      
      	* glib.def: Add new entry points.
      
      	* glib.def
      	* giowin32.c: Remove g_io_channel_win32_wait_for_condition(),
      	g_io_channel_win32_poll() subsumes it.
      
      	* gbacktrace.h: G_BREAKPOINT for MSVC (on the ix86).
      
      	* gwin32.c (g_win32_getlocale): Use "sp" for
      	LANG_CROATIAN+SUBLANG_SERBIAN_LATIN.
      
      	* makefile.{mingw,msc}.in (glib_OBJECTS): Add new files.
      	Add gspawn-win32-helper.exe rule.
      
      	* tests/makefile.{mingw,msc}.in (TESTS): Add shell-test and
      	spawn-test.
      
      	* tests/spawn-test.c: (run_tests): On Win32, don't try to run
      	/bin/sh, but ipconfig (no special significance in choosing that,
      	just a program that outputs something to stdout).
      fb4de1c5
  12. 29 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      Finally, a new and improved IO Channel and condition watch implementation · b965bb5d
      Tor Lillqvist authored
      2000-07-30  Tor Lillqvist  <tml@iki.fi>
      
      	Finally, a new and improved IO Channel and condition watch
      	implementation for Win32. Based on code provided by Craig Setera.
      
      	When watching file descriptors, for which there is no select()
      	like functionality on Win32 that would work on all Win32 platforms
      	for all types of file descriptors (including anonymous pipes), we
      	start a new thread that blocks while trying to read from the file
      	descriptor. When the read returns, a Win32 Event is signalled that
      	the polling routine eventually notices. Meanwhile, the data being
      	read is stored in a circular buffer, from where the IO channel's
      	read() method picks it up.
      
      	If the buffer fills up the reading thread has to wait for space
      	becoming available. For this another Win32 Event is used. The IO
      	Channel's read() method signals this when it has read some data
      	out of the buffer.
      
      	The separate reader thread(s), and the circular buffer(s) with
      	associated events mean lots of possibilities for fun parallellism
      	errors. But it seems to work OK, i.e. GIMP runs.
      
      	* gmain.c: Small changes to the Win32 polling function.
      	(g_main_win32_get_poll_func): New function. Perhaps it would be a
      	good idea to provide this on all platforms.
      
      	* giowin32.c: The bulk of the new implementation.
      	(g_io_channel_win32_wait_for_condition): New function. To be used
      	where on Unix one does a select() on the channel's fd, like
      	libgimp's gimp_extension_process(). Could be provided on all
      	platforms.
      
      	* glib.h: Update documentation for IO Channels on Win32. Remove
      	the declarations for the as of now obsolete old functions related
      	to IO Channels for pipes with "wakeup" messages.
      
      	* glib.def: Some new functions.
      
      	* tests/gio-test.c: New file, to test GIOChannel and main loop.
      
      	* tests/Makefile.am
      	* tests/makefile.mingw.in: Add it.
      b965bb5d
  13. 14 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      Include the "build" module in GLib, too, to make it more self-contained. · 45adcf12
      Tor Lillqvist authored
      2000-07-15  Tor Lillqvist  <tml@iki.fi>
      
      * Makefile.am (SUBDIRS): Include the "build" module in GLib, too,
      to make it more self-contained. If your CVS client doesn't
      automatically get it, do a cvs get build in glib.
      
      * */makefile.mingw.in: Include make.mingw from build in the glib
      source directory.
      45adcf12
  14. 13 May, 2000 1 commit
    • Tor Lillqvist's avatar
      makefile.mingw.in tests/makefile.mingw.in Rename makefile.cygwin(.in) to · 77866eaf
      Tor Lillqvist authored
      2000-05-13  Tor Lillqvist  <tml@iki.fi>
      
      * makefile.mingw.in
      * tests/makefile.mingw.in
      * build-dll: Rename makefile.cygwin(.in) to
      makefile.mingw(.in), which better describes what it is. Move the
      build of gmodule, gthread and gobject DLLs to makefiles in those
      directories. Move resource file handling and build number bump to
      build-dll, where it sits much cleaner.
      
      * README.win32
      * Makefile.am (EXTRA_DIST): Update accordingly.
      
      * glib.h: Add G_PI, G_PI_2, G_PI_4, G_E, G_LN2, G_LN10 and
      G_SQRT2. M_PI etc aren't necessarily in <math.h> in strict ISO C
      implementations.
      
      * glib.def: Add g_strcanon.
      
      * gtree.c (g_tree_node_rotate_left): Remove unused variables.
      
      * gwin32.c (g_win32_opendir): Remove unneeded statement.
      
      gmodule:
      
      * makefile.mingw.in: New file, with gmodule stuff
      moved from ../makefile.mingw.in.
      
      * Makefile.am: Add to EXTRA_DIST, and add rule to make makefile.mingw.
      
      gobject:
      * makefile.mingw.in
      * gobject.def
      * gobject.rc.in: New files, for Win32 (mingw) build.
      
      * Makefile.am: Add to EXTRA_DIST. Add rules to produce the
      corresponding non-*.in files.
      
      * gtype.h: (Win32:) Mark _g_type_fundamental_last for
      export/import from DLL.
      
      gthread:
      * makefile.mingw.in: New file, with gthread stuff moved from
      ../makefile.mingw.in.
      
      * Makefile.am: Add to EXTRA_DIST, add rule to build makefile.mingw.
      77866eaf
  15. 04 May, 2000 1 commit
    • Tor Lillqvist's avatar
      makefile.cygwin.in Include the common makefile snippet from · 586d5b11
      Tor Lillqvist authored
      2000-05-04  Tor Lillqvist  <tml@iki.fi>
      
      * makefile.cygwin.in
      * tests/makefile.cygwin.in: Include the common makefile snippet
      from ../build/win32.
      
      Maybe CVSROOT/modules should be changed so that the 'build' module
      is included within the glib module (and gtk+, and gimp, and maybe
      others later), in the same way as the 'macros' module is included
      in lots of GNOME CVS modules?
      586d5b11
  16. 01 May, 2000 1 commit
  17. 31 Jul, 1999 1 commit
    • Tor Lillqvist's avatar
      New functions. · 1146c6fb
      Tor Lillqvist authored
      	* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
      
      	* glib.h: Declare and document them. Define the deprecated
      	g_strescape as a macro that calls g_strecpy.
      
      	* tests/strfunc-test.c (main): Test them.
      
      	* makefile.{cygwin,msc}.in
      	* tests/makefile.{cygwin,msc}.in: Remove gstack and its test
      	program.
      
      	* glib.def: Additions and removals.
      
      	* README.win32: Improve gcc build instructions.
      
      	* build-dll: Also build import library for MSVC.
      1146c6fb
  18. 21 Jul, 1999 1 commit
    • Tor Lillqvist's avatar
      Win32: With the latest gcc (2.95, pre-release), we can have binary · 4d7172de
      Tor Lillqvist authored
       	compatibility with MSVC by using the switch -fnative-struct. No
       	longer build DLLs with .gcc in the name when using gcc.
      
      	* README.win32: Renew gcc build instructions.
      
      	* build-dll: Comments change, handle also .a files.
      
      	* makefile.cygwin.in
      	* tests/makefile.cygwin.in: Remove .gcc from DLL name.
      4d7172de
  19. 12 Jul, 1999 1 commit
    • Tor Lillqvist's avatar
      Correct URL for mingw runtime sources. · da87b1ac
      Tor Lillqvist authored
      	* README.win32: Correct URL for mingw runtime sources.
      
      	* build-dll: Combine commands with &&.
      
      	* glib.h: Map also rmdir() and hypot() for MSVCRT library.
      
      	* makefile.cygwin.in
      	* tests/makefile.cygwin.in: New DLL naming style. GCC-compiled DLLs are
       	now called *.gcc.dll, to avoid binary incompatibilities with
       	MSVC-compiled versions.
      
      	* makefile.msc.in: Cosmetics.
      da87b1ac
  20. 20 Jun, 1999 1 commit
    • Tor Lillqvist's avatar
      Update the pthreads snapshot version we want. Advice how to hand-expand · be80f9a1
      Tor Lillqvist authored
      	* README.win32: Update the pthreads snapshot version we want.
      	Advice how to hand-expand the makefile.*.in files.
      
      	* config.h.win32.in: Define values needed by Sebastian Wilhelmi's
      	new thread stuff.
      
      	* glib.def: Add new functions.
      
      	* glibconfig.h.win32.in: Update the pthreads snapshot version.
      	Fix typo.
      
      	* gthread.c: Include config.h, guard inclusion of unistd.h.  When
       	using gcc on Win32, g_thread_functions_for_glib_use must be marked
       	for export here, too.
      
      	* gtimer.c: Implement g_usleep on native Win32 using Sleep (which
      	only has millisecond granularity, though).
      
      	* makefile.cygwin.in
      	* makefile.msc.in: Update pthreads snapshot version. File
      	name changes. Remove testgthread.
      
      	* tests/makefile.cygwin.in
      	* tests/makefile.msc.in: Add thread-test. Link with gthread lib.
      
      	* gthread-posix.c: Guard pthread_attr_setscope call with test
      	for _POSIX_THREAD_PRIORITY_SCHEDULING, which should be defined
      	in a <pthread.h> that supports that feature.
      be80f9a1
  21. 06 May, 1999 1 commit
    • Tor Lillqvist's avatar
      New files, used to generate corresponding non-.in files when making a · 2b688f54
      Tor Lillqvist authored
      	* makefile.msc.in makefile.cygwin.in glibconfig.h.win32.in
       	config.h.win32.in tests/makefile.msc.in tests/makefile.cygwin.in:
       	New files, used to generate corresponding non-.in files when
       	making a dist. This is just so the version numbers will be kept in
       	synch automatically.
      
      	* configure.in: Also substitute @GLIB_MAJOR_VERSION@,
       	@GLIB_MINOR_VERSION@, and @GLIB_INTERFACE_AGE@.
      
      	* Makefile.am tests/Makefile.am: Also distribute makefile.cygwin.
      
      	* gerror.c (g_on_error_query): On Win32, put up a MessageBox and
       	then exit.
      
      	* glib.def: Add a couple of functions.
      2b688f54
  22. 25 Apr, 1999 1 commit
  23. 24 Apr, 1999 1 commit
    • Tor Lillqvist's avatar
      Support added for building using a GNU toolchain on Win32, · 2aa1277d
      Tor Lillqvist authored
      	i.e. gcc -mno-cygwin on cygwin (a.k.a. mingw32, using egcs-1.1.2).
      
      	* README.win32: Updated.
      	* build-dll makefile.cygwin tests/makefile.cygwin: New files.
      	* glib.h glib.def glibconfig.h.win32 makefile.msc: Slight updates.
      	* gmain.c: No need to include <fcntl.h> and <io.h> on Win32.
      	* gmain.c gutils.c testglib.c tests/string-test.c: Test for
      	NATIVE_WIN32, not _MSC_VER.
      	* gmutex.c: Must declare g_thread_functions_for_glib_use as
      	exported (using the GUTILS_C_VAR macro).
      	* gutils.c gmodule/libgplugin_[ab].c: LibMain not needed.
      	* gmodule/gmoduleconf.h.win32: Need underscore with gcc.
      	* gthread/gthread.c: With gcc on Win32, must use memcpy to assign
      	value of g_thread_functions_for_glib_use (?).
      	* makefile.msc tests/makefile.msc: Cosmetics.
      2aa1277d
  24. 13 Apr, 1999 1 commit
    • Tor Lillqvist's avatar
      Mention the tests directory. · fb55f005
      Tor Lillqvist authored
      	* README.win32: Mention the tests directory.
      
      	* glib.def: Add the functions from grand.c.
      
      	* glibconfig.h.win32: Add unsigned max values, and the format
       	strings.
      
      	* makefile.msc: Add grand.
      
      	* tests/{date-test,node-test}.c: Include <stdlib.h> for exit().
      
      	* tests/makefile.msc: New file.
      fb55f005