glib/glib
Chun-wei Fan 7a61a94b95 gmessages.c/Windows: Improve g_log_writer_supports_color()
Windows 10 begins to support color output on the console using ANSI
codes, but a few extra steps are required for this support, so we cannot
just use isatty() and expect colors to work in the outputs.
Instead, we use still use isatty() from the Windows CRT, and then enable
ENABLE_VIRTUAL_TERMINAL_PROCESSING if it returns true.

Also make the invalid parameter handler shared between gmessages.c and
gspawn-win32-helper.c, since it is basically intended to be a no-op stub.

https://bugzilla.gnome.org/show_bug.cgi?id=775468
2016-12-05 16:47:09 +08:00
..
deprecated Fix g_cond_timed_wait() timeout with !CLOCK_MONOTONIC 2014-10-10 06:41:55 -04:00
glib-mirroring-tab glib-mirroring-tab: Fix string format placeholder to be unsigned 2016-08-13 10:27:54 +02:00
gnulib glib/gnulib/printf-parse.c: Fix build on Visual Studio 2008 2016-05-25 14:13:33 +08:00
libcharset Updated FSF's address 2014-01-31 14:31:55 +01:00
pcre regex test: Fix with --with-pcre=internal 2016-01-18 18:37:28 +00:00
tests unicode: Update to unicode 9.0.0 2016-09-21 18:31:04 +02:00
update-pcre Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
.gitignore update .gitignores 2011-06-12 16:17:30 -04:00
docs.c gmacros: Clarify G_GNUC_[PRINTF|SCANF] macro documentation 2016-11-09 15:11:53 +00:00
galloca.h docs: Fix formatting of g_alloca documentation. 2014-06-28 13:43:23 -04:00
garray.c Avoid calling Standard C string/array functions with NULL arguments 2016-12-02 19:10:39 +00:00
garray.h GArray: Documentation cleanups 2014-02-01 20:46:29 -05:00
gasyncqueue.c Documentation fixups 2015-09-21 06:44:58 -04:00
gasyncqueue.h GAsyncQueue: Add some useful api 2015-06-29 08:20:26 -07:00
gasyncqueueprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gatomic.c gatomic: statically assert that our assumptions hold 2016-11-22 13:11:24 -05:00
gatomic.h gatomic: statically assert that our assumptions hold 2016-11-22 13:11:24 -05:00
gbacktrace.c Use g_abort() instead of abort() where possible 2016-04-27 13:17:28 +00:00
gbacktrace.h gbacktrace: fix G_BREAKPOINT on Darwin (OSX, iOS) 2015-07-09 10:39:42 -04:00
gbase64.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gbase64.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gbitlock.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gbitlock.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gbookmarkfile.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gbookmarkfile.h docs: Replace <structname> tags with back ticks 2014-05-31 19:22:15 +01:00
gbsearcharray.h Require C90 compliance 2013-11-20 09:16:16 -05:00
gbytes.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gbytes.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gcharset.c Fix thread safety of g_get_language_names() 2016-03-26 08:52:40 -04:00
gcharset.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gcharsetprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gchecksum.c all: remove use of 'register' keyword 2014-06-28 13:07:52 -04:00
gchecksum.h gchecksum: annotate when G_CHECKSUM_SHA512 was introduced 2016-07-21 08:03:26 -04:00
gconstructor.h gconstructor: Work around constructors being optimized away on MSVC 2015-11-12 15:01:54 +08:00
gconvert.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gconvert.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gdataset.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gdataset.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdatasetprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdate.c Fix a typo 2016-04-07 08:43:24 -05:00
gdate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdatetime.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gdatetime.h docs: Replace <structname> tags with back ticks 2014-05-31 19:22:15 +01:00
gdir.c Use Unicode in translatable strings 2016-10-12 21:30:42 +02:00
gdir.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gen-unicode-tables.pl unicode: Update break_mappings 2016-09-21 18:30:52 +02:00
genviron.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
genviron.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gerror.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gerror.h docs: Replace <structname> tags with back ticks 2014-05-31 19:22:15 +01:00
gfileutils.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gfileutils.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
ggettext.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
ggettext.h Updated FSF's address 2014-01-31 14:31:55 +01:00
ghash.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
ghash.h Updated FSF's address 2014-01-31 14:31:55 +01:00
ghmac.c Add g_compute_hmac_for_bytes() 2016-07-16 20:48:41 -04:00
ghmac.h Add g_compute_hmac_for_bytes() 2016-07-16 20:48:41 -04:00
ghook.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
ghook.h Updated FSF's address 2014-01-31 14:31:55 +01:00
ghostutils.c g_hostname_is_ip_address: detect integer overflow 2016-12-02 19:10:45 +00:00
ghostutils.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gi18n-lib.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gi18n.h Updated FSF's address 2014-01-31 14:31:55 +01:00
giochannel.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
giochannel.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
giounix.c Updated FSF's address 2014-01-31 14:31:55 +01:00
giowin32.c Use g_abort() instead of abort() where possible 2016-04-27 13:17:28 +00:00
gkeyfile.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gkeyfile.h gkeyfile: add g_key_file_load_from_bytes() API 2016-06-20 17:53:00 -07:00
glib_gdb.py Rename gdb macros with _gdb suffix to avoid ns clashes 2016-05-23 10:52:10 -04:00
glib_probes.d glib: Add SystemTap probe to g_source_add_child_source() 2016-09-23 22:46:30 -07:00
glib_trace.h Updated FSF's address 2014-01-31 14:31:55 +01:00
glib-autocleanups.h Move GStrv typedef to glib.h instead of gobject.h 2015-09-22 11:18:30 -04:00
glib-init.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
glib-init.h Add g_system_thread_set_name() implementation for W32 threads 2016-04-26 10:40:07 +00:00
glib-object.h gobject: add support for g_auto() and g_autoptr() 2015-01-30 16:52:36 +01:00
glib-private.c Maintain the struct order when initializing 2015-10-08 12:32:58 +01:00
glib-private.h Export glib_init via GLIB_PRIVATE_CALL 2015-10-07 23:39:29 -04:00
glib-unix.c Convert remaining uses of 'Rename to:' 2015-03-12 16:55:22 -04:00
glib-unix.h docs: Remove a few trailing <literal>s 2014-02-14 21:49:42 -05:00
glib.h glib: add support for g_auto() and g_autoptr() 2015-01-30 16:52:36 +01:00
glib.rc.in Update the year in the *.rc.in files 2011-06-07 08:55:31 +08:00
glib.stp.in glib: Namespace global tapset variables by soname 2016-11-23 10:50:39 +00:00
glibconfig.h.win32.in gmain: Add G_PID_FORMAT 2016-06-29 15:16:52 +01:00
glibintl.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
glist.c glist: Clarify that g_list_nth() is expensive 2015-03-03 18:40:33 +00:00
glist.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gmacros.h gmacros.h: offsetof is also available on MSVC 2016-07-13 11:44:34 +08:00
gmain-internal.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gmain.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gmain.h gmain: fix g_main_context_check declaration 2016-11-09 10:38:20 -05:00
gmappedfile.c Use Unicode in translatable strings 2016-10-12 21:30:42 +02:00
gmappedfile.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gmarkup.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gmarkup.h doc: various improvements 2014-05-09 18:47:42 +02:00
gmem.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gmem.h glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gmessages.c gmessages.c/Windows: Improve g_log_writer_supports_color() 2016-12-05 16:47:09 +08:00
gmessages.h Add g_log_variant(): structured log that accepts a GVariant 2016-09-09 09:07:50 -03:00
gmirroringtable.h Bug 491554 – Update to Unicode 5.1.0 2008-04-08 02:59:05 +00:00
gnode.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gnode.h glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
goption.c Avoid calling Standard C string/array functions with NULL arguments 2016-12-02 19:10:39 +00:00
goption.h goption: Mention type of G_OPTION_ARG_CALLBACK in documentation 2015-03-13 09:10:25 +00:00
gpattern.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gpattern.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gpoll.c W32: Do not ignore short waits in g_poll 2016-04-28 14:22:51 +00:00
gpoll.h Move G_POLLFD_FORMAT to glibconfig.h 2015-11-02 20:03:38 +02:00
gprimes.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gprimes.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gprintf.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gprintf.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gprintfint.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gqsort.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gqsort.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gquark.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gquark.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gqueue.c Simplify code that uses g_queue_insert_before() and insert_after() 2014-11-09 20:42:50 +01:00
gqueue.h docs: Use markdown links in all .c and .h files 2014-04-15 22:19:07 +02:00
grand.c grand: rand_s is available in mingw64 2016-02-24 11:27:09 +01:00
grand.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gregex.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gregex.h Fix documentation typos 2016-04-11 23:31:38 -04:00
gscanner.c Minor documentation additions and corrections 2014-05-31 10:54:02 -04:00
gscanner.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gscripttable.h unicode: Update to unicode 9.0.0 2016-09-21 18:31:04 +02:00
gsequence.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gsequence.h sequence: add g_sequence_is_empty() 2015-10-15 12:54:09 -07:00
gshell.c Use Unicode in translatable strings 2016-10-12 21:30:42 +02:00
gshell.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gslice.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gslice.h Use G_STMT_START/END in gslice.h 2015-01-14 16:21:00 +01:00
gslist.c glist: Mention that g_list_length() is bad for checking list emptiness 2015-02-11 09:17:33 +00:00
gslist.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gspawn-win32-helper.c gmessages.c/Windows: Improve g_log_writer_supports_color() 2016-12-05 16:47:09 +08:00
gspawn-win32.c Use Unicode in translatable strings 2016-10-12 21:30:42 +02:00
gspawn.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gspawn.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gstdio.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gstdio.h Make sure GStatBuf is typedefed correctly 2015-04-05 11:09:22 +00:00
gstrfuncs.c Avoid calling Standard C string/array functions with NULL arguments 2016-12-02 19:10:39 +00:00
gstrfuncs.h Move GStrv typedef to glib.h instead of gobject.h 2015-09-22 11:18:30 -04:00
gstring.c gstring: Explictly annotate return-values with (transfer none/full) 2016-02-02 17:38:05 +01:00
gstring.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gstringchunk.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gstringchunk.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtester-report Make gtester-report compatible with Python 3 2015-11-05 12:53:19 +01:00
gtester.c Use g_abort() instead of abort() where possible 2016-04-27 13:17:28 +00:00
gtestutils.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gtestutils.h Avoid calling Standard C string/array functions with NULL arguments 2016-12-02 19:10:39 +00:00
gthread-posix.c Use g_abort() instead of abort() where possible 2016-04-27 13:17:28 +00:00
gthread-win32.c Use g_abort() instead of abort() where possible 2016-04-27 13:17:28 +00:00
gthread.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gthread.h gmem.h, gthread.h: Include glib/gutils.h 2015-02-10 23:17:07 +08:00
gthreadpool.c GThreadPool: Add some queue manipulation api 2015-06-29 08:20:26 -07:00
gthreadpool.h GThreadPool: Add some queue manipulation api 2015-06-29 08:20:26 -07:00
gthreadprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtimer.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gtimer.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtimezone.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gtimezone.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtranslit-data.h Add locale-sensitive ASCII transliteration API 2014-02-20 18:27:24 -05:00
gtranslit.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gtrashstack.c GTrashStack: uninline and deprecate 2015-11-16 13:14:19 -05:00
gtrashstack.h GTrashStack: uninline and deprecate 2015-11-16 13:14:19 -05:00
gtree.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gtree.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtypes.h Fall back for overflow-checked arithmetic with Intel compiler 2016-07-23 09:27:52 -04:00
gunibreak.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gunibreak.h unicode: Update to unicode 9.0.0 2016-09-21 18:31:04 +02:00
gunichartables.h unicode: Update to unicode 9.0.0 2016-09-21 18:31:04 +02:00
gunicode.h Make g_utf8_make_valid public 2016-10-13 21:52:42 +01:00
gunicodeprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gunicollate.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gunicomp.h unicode: Update to unicode 7.0.0 2014-06-28 12:49:38 -04:00
gunidecomp.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gunidecomp.h unicode: Update to unicode 9.0.0 2016-09-21 18:31:04 +02:00
guniprop.c g_unichar_iswide_cjk: add a special case for U+0000 2016-12-02 19:10:44 +00:00
gurifuncs.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gurifuncs.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gutf8.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gutils.c glib: Add filename type annotations 2016-06-04 20:38:33 +02:00
gutils.h Add g_abort() 2016-04-27 13:17:27 +00:00
gvariant-core.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gvariant-core.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvariant-internal.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvariant-parser.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gvariant-serialiser.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gvariant-serialiser.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvariant.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gvariant.h gvariant: Avoid anonymous struct and union members 2016-07-21 14:06:58 +02:00
gvarianttype.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gvarianttype.h Removed an unused include 2016-09-09 08:50:55 -03:00
gvarianttypeinfo.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gvarianttypeinfo.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gversion.c Minor documentation additions and corrections 2014-05-31 10:54:02 -04:00
gversion.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gversionmacros.h Add version macros for 2.52 2016-10-12 15:07:31 -04:00
gwakeup.c gwakeup: Clarify buffer sizing in g_wakeup_signal() 2014-06-21 17:41:31 +01:00
gwakeup.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gwin32.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gwin32.h Win32: Move g_win32_check_windows_version() to the correct place in header 2015-03-12 16:09:14 -04:00
libglib-gdb.py.in Rename gdb macros with _gdb suffix to avoid ns clashes 2016-05-23 10:52:10 -04:00
Makefile.am build: Fix SystemTap build to disable semaphores as before 2016-08-13 09:32:12 +02:00
makefile.msc.in win32: Use timeGetTime as monotonic base 2011-11-16 09:10:46 +01:00
update-gtranslit.py Add locale-sensitive ASCII transliteration API 2014-02-20 18:27:24 -05:00
valgrind.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
win_iconv.c win_iconv: Fix some file handler leaks on exit 2016-08-13 10:31:26 +02:00