- 29 Jul, 2019 2 commits
-
-
Philip Withnall authored
GTimeVal is not year-2038-safe. Signed-off-by:
Philip Withnall <withnall@endlessm.com> Helps: #1438
-
Philip Withnall authored
It’s not Y2038-safe, as it’s 32-bit. While it was previously deprecated in the documentation, now add the deprecation annotation for the compiler. Signed-off-by:
Philip Withnall <withnall@endlessm.com> Helps: #1438
-
- 30 May, 2019 2 commits
-
-
Philip Withnall authored
The function is already annotated with `GLIB_DEPRECATED_FOR()`. Signed-off-by:
Philip Withnall <withnall@endlessm.com>
-
Philip Withnall authored
When defining deprecated macros, annotate them with `GLIB_DEPRECATED_MACRO_IN_*()` and `GLIB_DEPRECATED_MACRO_IN_*_FOR()` to conditionally emit warnings if people use them, depending on their declared minimum and maximum GLib version requirements (see `GLIB_VERSION_MIN_REQUIRED` and `GLIB_VERSION_MAX_ALLOWED`). The old way of doing this was for users to define `G_DISABLE_DEPRECATED` if they didn’t want to use deprecated APIs, but it reported errors via missing symbols, and wasn’t version-dependent. It’s being phased out. Signed-off-by:
Philip Withnall <withnall@endlessm.com>
-
- 11 Oct, 2017 1 commit
-
-
This will allow passing invalid GDates through GValues. https://bugzilla.gnome.org/show_bug.cgi?id=760109
-
- 24 May, 2017 1 commit
-
-
swilmet authored
All glib/*.{c,h} files have been processed, as well as gtester-report. 12 of those files are not licensed under LGPL: gbsearcharray.h gconstructor.h glibintl.h gmirroringtable.h gscripttable.h gtranslit-data.h gunibreak.h gunichartables.h gunicomp.h gunidecomp.h valgrind.h win_iconv.c Some of them are generated files, some are licensed under a BSD-style license and win_iconv.c is in the public domain. Sub-directories inside glib/: deprecated/: processed in a previous commit glib-mirroring-tab/: already LGPLv2.1+ gnulib/: not modified, the code is copied from gnulib libcharset/: a copy pcre/: a copy tests/: processed in a previous commit https://bugzilla.gnome.org/show_bug.cgi?id=776504
-
- 31 Jan, 2014 1 commit
-
-
Daniel Mustieles García authored
-
- 13 Jan, 2013 1 commit
-
-
Allison Karlitskaya authored
Add the GLIB_AVAILABLE_IN_ALL annotation to all old functions (that haven't already been annotated with the GLIB_AVAILABLE_IN_* macros or a deprecation macro). If we discover in the future that we cannot use only one macro on Windows, it will be an easy sed patch to fix that. https://bugzilla.gnome.org/show_bug.cgi?id=688681
-
- 28 Dec, 2012 1 commit
-
-
Matthias Clasen authored
gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
-
- 12 Oct, 2011 1 commit
-
-
Matthias Clasen authored
This has been the official line since 2.17, which seems plenty long enough for a transition phase.
-
- 11 Oct, 2011 1 commit
-
-
This will let others opt out of seeing GLib deprecation warnings by defining GLIB_DISABLE_DEPRECATION_WARNINGS. https://bugzilla.gnome.org/show_bug.cgi?id=661438
-
- 09 Oct, 2011 1 commit
-
-
Matthias Clasen authored
-
- 05 May, 2008 1 commit
-
-
Michael Natterer authored
2008-05-05 Michael Natterer <mitch@imendio.com> * glib/glib.h: #define __GLIB_H_INSIDE__ around including everything. * glib/*.h: check for that define instead of __G_LIB_H__ if G_DISABLE_SINGLE_INCLUDES is defined. * glib/gdatasetprivate.h: #include <glib.h> instead of <glib/gdataset.h> svn path=/trunk/; revision=6875
-
- 14 Mar, 2008 1 commit
-
-
Michael Natterer authored
2008-03-14 Michael Natterer <mitch@imendio.com> * glib/*.h: make it possible to disable single-file includes by defining G_DISABLE_SINGLE_INCLUDES when building against GLib. Approved by Tim Janik. * glib/glib.h: include <glib/gslice.h>. * glib/gi18n.h * glib/gi18n-lib.h * glib/gprintf.h: include <glib.h> so the above works when these files are included without including <glib.h> first. svn path=/trunk/; revision=6713
-
- 27 Mar, 2007 1 commit
-
-
Emmanuele Bassi authored
2007-03-27 Emmanuele Bassi <ebassi@gnome.org> * glib/gdate.h: Remove old comment and forward declaration of struct tm: gdate.h includes time.h now. svn path=/trunk/; revision=5438
-
- 17 Nov, 2005 1 commit
-
-
Matthias Clasen authored
2005-11-17 Matthias Clasen <mclasen@redhat.com> * glib/glib.symbols: * glib/gdate.h: * glib/gdate.c (g_date_set_time_t): (g_date_set_time_val): Add functions to set a date from a time_t and from a GTimeVal. (g_date_set_time): Deprecate. (#314067, Roger Leigh)
-
- 02 Sep, 2004 1 commit
-
-
Matthias Clasen authored
Wed Sep 1 20:22:39 2004 Matthias Clasen <maclas@gmx.de> * glib/gdate.h: * glib/gdate.c (g_date_get_iso8601_week_of_year): Add a function to calculate the ISO 8601 week number of a date. (#92579, Niklas Lundell)
-
- 08 Nov, 2002 1 commit
-
-
Soeren Sandmann authored
Fri Nov 8 19:44:20 2002 Soeren Sandmann <sandmann@daimi.au.dk> * docs/reference/glib/tmpl/arrays.sgml: * docs/reference/glib/tmpl/arrays_byte.sgml: * docs/reference/glib/tmpl/arrays_pointer.sgml: * docs/reference/glib/tmpl/date.sgml: * docs/reference/glib/tmpl/linked_lists_double.sgml: * docs/reference/glib/tmpl/linked_lists_single.sgml: * docs/reference/glib/tmpl/main.sgml: * docs/reference/glib/tmpl/queue.sgml: * docs/reference/glib/tmpl/random_numbers.sgml: * docs/reference/glib/tmpl/relations.sgml: * docs/reference/glib/tmpl/scanner.sgml: * docs/reference/gobject/tmpl/gtype.sgml: * docs/reference/gobject/tmpl/value_arrays.sgml glib/garray.h: * glib/gdate.h glib/giochannel.h glib/glist.h glib/gmain.c: * glib/gmain.h glib/gqueue.c glib/gqueue.h glib/grand.c glib/grand.h: * glib/grel.h glib/gslist.h glib/gtimer.h gobject/gvaluearray.h: Trivial s/foo/foo_/ fixes to make <glib.h> includable with -Wshadow without warnings (#91680)
-
- 26 Jun, 2001 1 commit
-
-
Owen Taylor authored
Tue Jun 26 11:43:46 2001 Owen Taylor <otaylor@redhat.com> * configure.in Makefile.am *.[ch] glib/*.[ch] glib/Makefile.am: Move glib library into a subdirectory, make all GLib include files include as <glib/glist.h> * tests/testglib.c tests/testgdate.c tests/testgdateparser.c tests/timeloop.c tests/timeloop-basic.c: Move all tests into the tests/ subdirectory.
-
- 05 Jun, 2001 1 commit
-
-
Jon Trowbridge authored
2001-06-01 Jon Trowbridge <trow@gnu.org> * gdate.c (g_date_update_julian): Changed to take a const argument, and then to cast out const. (g_date_update_dmy): Changed to take a const argument, and then cast out const. (g_date_get_weekday): Changed argument to be const. (g_date_get_month): Changed argument to be const. (g_date_get_year): Changed argument to be const. (g_date_get_day): Changed argument to be const. (g_date_get_julian): Changed argument to be const. (g_date_get_day_of_year): Changed argument to be const. (g_date_get_monday_week_of_year): Changed argument to be const. (g_date_get_sunday_week_of_year): Changed argument to be const. (g_date_compare): Changed arguments to be const. (g_date_to_struct_tm): Changed GDate argument to be const. (g_date_strftime): Changed GDate argument to be const. (g_date_clamp): Added. The equivalent of the CLAMP macro for GDates. (g_date_order): Added. Ensure that the first GDate argument preceeds the second, swapping them if necessary. (g_date_days_between): Added. Computes the (signed) number of days between two dates.
-
- 26 Mar, 2001 1 commit
-
-
Owen Taylor authored
Mon Mar 26 14:14:53 2001 Owen Taylor <otaylor@redhat.com> * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED * gmain.h timeloop.c: Surround the cruftiest stuff with #ifndef G_DISABLE_DEPRECATED. * gcompat.h gdate.h: Move compat defines back to gdate.h, surround with #ifndef G_DISABLE_DEPRECATED. Remove gcompat.h.
-
- 24 Dec, 2000 1 commit
-
-
Ali Abdin authored
2000-12-24 Ali Abdin <aliabdin@aucegypt.edu> * Makefile.am, gcompat.h, glib.h: New gcompat.h header file as recommended by Havoc. * gdate.c, gdate.h, testgdate.c, docs/reference/glib/glib-sections.txt, docs/reference/glib/tmpl/date.sgml, tests/date-test.c: Rename some of the gdate functions to use the '_get' in their name. Patch reviewed by Havoc.
-
- 12 Oct, 2000 1 commit
-
-
Sebastian Wilhelmi authored
2000-10-12 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h, gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h, ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h, gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h, grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h, gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h into many header files mostly according to the resp. *.c-files. * gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and __END_DECLS. * configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h, gunicode.h, : Changed guard-macro names to something more consistent. * configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
-