gio2 0.90.5-x86-mingw32 → 0.90.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +41 -0
- data/Rakefile +9 -70
- data/ext/gio2/extconf.rb +9 -9
- data/ext/gio2/gasyncinitable.c +0 -1
- data/ext/gio2/gbufferedinputstream.c +0 -19
- data/ext/gio2/gbufferedoutputstream.c +0 -34
- data/ext/gio2/gcharsetconverter.c +0 -17
- data/ext/gio2/gcontenttype.c +1 -8
- data/ext/gio2/gconverterinputstream.c +0 -7
- data/ext/gio2/gconverteroutputstream.c +0 -7
- data/ext/gio2/gdatainputstream.c +34 -57
- data/ext/gio2/gdataoutputstream.c +0 -18
- data/ext/gio2/gdesktopappinfo.c +0 -2
- data/ext/gio2/gemblem.c +0 -19
- data/ext/gio2/gfile.c +4 -6
- data/ext/gio2/gfileattribute.c +3 -155
- data/ext/gio2/gfileattributeinfo.c +89 -0
- data/ext/gio2/gfileattributeinfolist.c +109 -0
- data/ext/gio2/gfileenumerator.c +0 -2
- data/ext/gio2/gfileicon.c +0 -7
- data/ext/gio2/gfileinfo.c +4 -11
- data/ext/gio2/gfileinputstream.c +0 -2
- data/ext/gio2/gfileiostream.c +0 -2
- data/ext/gio2/gfilemonitor.c +0 -19
- data/ext/gio2/gfileoutputstream.c +1 -5
- data/ext/gio2/gfilterinputstream.c +1 -30
- data/ext/gio2/gfilteroutputstream.c +1 -30
- data/ext/gio2/gicon.c +0 -2
- data/ext/gio2/ginetaddress.c +0 -72
- data/ext/gio2/ginetsocketaddress.c +0 -16
- data/ext/gio2/ginputstream.c +0 -2
- data/ext/gio2/gio2.c +11 -1
- data/ext/gio2/gio2.h +9 -1
- data/ext/gio2/gioerror.c +4 -1
- data/ext/gio2/giomodule.c +2 -2
- data/ext/gio2/gioscheduler.c +4 -6
- data/ext/gio2/giostream.c +0 -23
- data/ext/gio2/gloadableicon.c +0 -1
- data/ext/gio2/gmemoryoutputstream.c +0 -24
- data/ext/gio2/gmount.c +1 -0
- data/ext/gio2/gmountoperation.c +1 -103
- data/ext/gio2/gnetworkaddress.c +0 -14
- data/ext/gio2/gnetworkservice.c +0 -21
- data/ext/gio2/goutputstream.c +8 -18
- data/ext/gio2/gresolver.c +0 -2
- data/ext/gio2/gsocket.c +2 -80
- data/ext/gio2/gsocketaddress.c +1 -13
- data/ext/gio2/gsocketclient.c +0 -68
- data/ext/gio2/gsocketconnection.c +1 -8
- data/ext/gio2/gsocketcontrolmessage.c +0 -2
- data/ext/gio2/gsocketlistener.c +27 -21
- data/ext/gio2/gtcpconnection.c +1 -22
- data/ext/gio2/gthreadedsocketservice.c +6 -5
- data/ext/gio2/gunixfdlist.c +1 -1
- data/ext/gio2/gunixfdmessage.c +0 -9
- data/ext/gio2/gunixinputstream.c +0 -24
- data/ext/gio2/gunixmounts.c +1 -4
- data/ext/gio2/gunixoutputstream.c +0 -24
- data/ext/gio2/gunixsocketaddress.c +5 -17
- data/ext/gio2/gvfs.c +0 -2
- data/ext/gio2/gvolumemonitor.c +0 -2
- data/ext/gio2/gzlibcompressor.c +3 -0
- data/ext/gio2/util.c +3 -0
- data/lib/1.8/gio2.so +0 -0
- data/lib/1.9/gio2.so +0 -0
- data/lib/gio2.rb +19 -1
- data/test/load-test.rb +14 -0
- data/test/test_bufferedinputstream.rb +2 -0
- data/test/test_charsetconverter.rb +2 -0
- data/test/test_datainputstream.rb +7 -0
- data/test/test_fileenumerator.rb +8 -0
- data/test/test_filemonitor.rb +2 -0
- data/test/test_inetaddress.rb +8 -0
- metadata +90 -835
- data/vendor/local/bin/envsubst.exe +0 -0
- data/vendor/local/bin/gettext.exe +0 -0
- data/vendor/local/bin/gettext.sh +0 -123
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +0 -188
- data/vendor/local/bin/glib-mkenums +0 -537
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/intl.dll +0 -0
- data/vendor/local/bin/libasprintf-0.dll +0 -0
- data/vendor/local/bin/libgcc_s_dw2-1.dll +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/bin/ngettext.exe +0 -0
- data/vendor/local/include/autosprintf.h +0 -66
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +0 -236
- data/vendor/local/include/glib-2.0/gio/gasyncinitable.h +0 -119
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gbufferedinputstream.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +0 -81
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +0 -103
- data/vendor/local/include/glib-2.0/gio/gcharsetconverter.h +0 -60
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +0 -57
- data/vendor/local/include/glib-2.0/gio/gconverter.h +0 -95
- data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gcredentials.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +0 -150
- data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +0 -115
- data/vendor/local/include/glib-2.0/gio/gdbusaddress.h +0 -58
- data/vendor/local/include/glib-2.0/gio/gdbusauthobserver.h +0 -46
- data/vendor/local/include/glib-2.0/gio/gdbusconnection.h +0 -562
- data/vendor/local/include/glib-2.0/gio/gdbuserror.h +0 -100
- data/vendor/local/include/glib-2.0/gio/gdbusintrospection.h +0 -286
- data/vendor/local/include/glib-2.0/gio/gdbusmessage.h +0 -149
- data/vendor/local/include/glib-2.0/gio/gdbusmethodinvocation.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gdbusnameowning.h +0 -112
- data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +0 -94
- data/vendor/local/include/glib-2.0/gio/gdbusproxy.h +0 -167
- data/vendor/local/include/glib-2.0/gio/gdbusserver.h +0 -54
- data/vendor/local/include/glib-2.0/gio/gdbusutils.h +0 -44
- data/vendor/local/include/glib-2.0/gio/gdrive.h +0 -225
- data/vendor/local/include/glib-2.0/gio/gemblem.h +0 -58
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +0 -62
- data/vendor/local/include/glib-2.0/gio/gfile.h +0 -1017
- data/vendor/local/include/glib-2.0/gio/gfileattribute.h +0 -77
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +0 -132
- data/vendor/local/include/glib-2.0/gio/gfileicon.h +0 -56
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +0 -952
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +0 -112
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +0 -118
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +0 -95
- data/vendor/local/include/glib-2.0/gio/gfilenamecompleter.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +0 -119
- data/vendor/local/include/glib-2.0/gio/gfilterinputstream.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gfilteroutputstream.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gicon.h +0 -91
- data/vendor/local/include/glib-2.0/gio/ginetaddress.h +0 -103
- data/vendor/local/include/glib-2.0/gio/ginetsocketaddress.h +0 -69
- data/vendor/local/include/glib-2.0/gio/ginitable.h +0 -96
- data/vendor/local/include/glib-2.0/gio/ginputstream.h +0 -172
- data/vendor/local/include/glib-2.0/gio/gio.h +0 -122
- data/vendor/local/include/glib-2.0/gio/gioenums.h +0 -1221
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +0 -121
- data/vendor/local/include/glib-2.0/gio/gioerror.h +0 -52
- data/vendor/local/include/glib-2.0/gio/giomodule.h +0 -132
- data/vendor/local/include/glib-2.0/gio/gioscheduler.h +0 -52
- data/vendor/local/include/glib-2.0/gio/giostream.h +0 -112
- data/vendor/local/include/glib-2.0/gio/giotypes.h +0 -375
- data/vendor/local/include/glib-2.0/gio/gloadableicon.h +0 -97
- data/vendor/local/include/glib-2.0/gio/gmemoryinputstream.h +0 -82
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +0 -98
- data/vendor/local/include/glib-2.0/gio/gmount.h +0 -242
- data/vendor/local/include/glib-2.0/gio/gmountoperation.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gnativevolumemonitor.h +0 -62
- data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +0 -71
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +0 -207
- data/vendor/local/include/glib-2.0/gio/gpermission.h +0 -118
- data/vendor/local/include/glib-2.0/gio/gproxy.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gproxyaddress.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gproxyaddressenumerator.h +0 -75
- data/vendor/local/include/glib-2.0/gio/gproxyresolver.h +0 -96
- data/vendor/local/include/glib-2.0/gio/gresolver.h +0 -167
- data/vendor/local/include/glib-2.0/gio/gseekable.h +0 -99
- data/vendor/local/include/glib-2.0/gio/gsettings.h +0 -258
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +0 -138
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +0 -125
- data/vendor/local/include/glib-2.0/gio/gsimplepermission.h +0 -45
- data/vendor/local/include/glib-2.0/gio/gsocket.h +0 -194
- data/vendor/local/include/glib-2.0/gio/gsocketaddress.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gsocketaddressenumerator.h +0 -89
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +0 -152
- data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +0 -74
- data/vendor/local/include/glib-2.0/gio/gsocketconnection.h +0 -91
- data/vendor/local/include/glib-2.0/gio/gsocketcontrolmessage.h +0 -105
- data/vendor/local/include/glib-2.0/gio/gsocketlistener.h +0 -138
- data/vendor/local/include/glib-2.0/gio/gsocketservice.h +0 -88
- data/vendor/local/include/glib-2.0/gio/gsrvtarget.h +0 -52
- data/vendor/local/include/glib-2.0/gio/gtcpconnection.h +0 -68
- data/vendor/local/include/glib-2.0/gio/gthemedicon.h +0 -63
- data/vendor/local/include/glib-2.0/gio/gthreadedsocketservice.h +0 -81
- data/vendor/local/include/glib-2.0/gio/gvfs.h +0 -125
- data/vendor/local/include/glib-2.0/gio/gvolume.h +0 -211
- data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +0 -150
- data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +0 -60
- data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +0 -57
- data/vendor/local/include/glib-2.0/glib-object.h +0 -42
- data/vendor/local/include/glib-2.0/glib.h +0 -99
- data/vendor/local/include/glib-2.0/glib/galloca.h +0 -110
- data/vendor/local/include/glib-2.0/glib/garray.h +0 -179
- data/vendor/local/include/glib-2.0/glib/gasyncqueue.h +0 -120
- data/vendor/local/include/glib-2.0/glib/gatomic.h +0 -105
- data/vendor/local/include/glib-2.0/glib/gbacktrace.h +0 -68
- data/vendor/local/include/glib-2.0/glib/gbase64.h +0 -57
- data/vendor/local/include/glib-2.0/glib/gbitlock.h +0 -43
- data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +0 -215
- data/vendor/local/include/glib-2.0/glib/gcache.h +0 -69
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +0 -86
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +0 -81
- data/vendor/local/include/glib-2.0/glib/gconvert.h +0 -162
- data/vendor/local/include/glib-2.0/glib/gdataset.h +0 -122
- data/vendor/local/include/glib-2.0/glib/gdate.h +0 -263
- data/vendor/local/include/glib-2.0/glib/gdatetime.h +0 -217
- data/vendor/local/include/glib-2.0/glib/gdir.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gerror.h +0 -98
- data/vendor/local/include/glib-2.0/glib/gfileutils.h +0 -128
- data/vendor/local/include/glib-2.0/glib/ghash.h +0 -166
- data/vendor/local/include/glib-2.0/glib/ghook.h +0 -181
- data/vendor/local/include/glib-2.0/glib/ghostutils.h +0 -40
- data/vendor/local/include/glib-2.0/glib/gi18n-lib.h +0 -38
- data/vendor/local/include/glib-2.0/glib/gi18n.h +0 -34
- data/vendor/local/include/glib-2.0/glib/giochannel.h +0 -366
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +0 -266
- data/vendor/local/include/glib-2.0/glib/glist.h +0 -120
- data/vendor/local/include/glib-2.0/glib/gmacros.h +0 -284
- data/vendor/local/include/glib-2.0/glib/gmain.h +0 -531
- data/vendor/local/include/glib-2.0/glib/gmappedfile.h +0 -49
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +0 -163
- data/vendor/local/include/glib-2.0/glib/gmem.h +0 -309
- data/vendor/local/include/glib-2.0/glib/gmessages.h +0 -343
- data/vendor/local/include/glib-2.0/glib/gnode.h +0 -290
- data/vendor/local/include/glib-2.0/glib/goption.h +0 -370
- data/vendor/local/include/glib-2.0/glib/gpattern.h +0 -49
- data/vendor/local/include/glib-2.0/glib/gpoll.h +0 -117
- data/vendor/local/include/glib-2.0/glib/gprimes.h +0 -51
- data/vendor/local/include/glib-2.0/glib/gprintf.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gqsort.h +0 -46
- data/vendor/local/include/glib-2.0/glib/gquark.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gqueue.h +0 -127
- data/vendor/local/include/glib-2.0/glib/grand.h +0 -85
- data/vendor/local/include/glib-2.0/glib/gregex.h +0 -471
- data/vendor/local/include/glib-2.0/glib/grel.h +0 -101
- data/vendor/local/include/glib-2.0/glib/gscanner.h +0 -278
- data/vendor/local/include/glib-2.0/glib/gsequence.h +0 -128
- data/vendor/local/include/glib-2.0/glib/gshell.h +0 -55
- data/vendor/local/include/glib-2.0/glib/gslice.h +0 -86
- data/vendor/local/include/glib-2.0/glib/gslist.h +0 -114
- data/vendor/local/include/glib-2.0/glib/gspawn.h +0 -139
- data/vendor/local/include/glib-2.0/glib/gstdio.h +0 -147
- data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +0 -269
- data/vendor/local/include/glib-2.0/glib/gstring.h +0 -178
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +0 -297
- data/vendor/local/include/glib-2.0/glib/gthread.h +0 -407
- data/vendor/local/include/glib-2.0/glib/gthreadpool.h +0 -114
- data/vendor/local/include/glib-2.0/glib/gtimer.h +0 -65
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +0 -44
- data/vendor/local/include/glib-2.0/glib/gtree.h +0 -91
- data/vendor/local/include/glib-2.0/glib/gtypes.h +0 -451
- data/vendor/local/include/glib-2.0/glib/gunicode.h +0 -421
- data/vendor/local/include/glib-2.0/glib/gurifuncs.h +0 -81
- data/vendor/local/include/glib-2.0/glib/gutils.h +0 -490
- data/vendor/local/include/glib-2.0/glib/gvariant.h +0 -248
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +0 -334
- data/vendor/local/include/glib-2.0/glib/gwin32.h +0 -114
- data/vendor/local/include/glib-2.0/gmodule.h +0 -101
- data/vendor/local/include/glib-2.0/gobject/gbinding.h +0 -136
- data/vendor/local/include/glib-2.0/gobject/gboxed.h +0 -248
- data/vendor/local/include/glib-2.0/gobject/gclosure.h +0 -251
- data/vendor/local/include/glib-2.0/gobject/genums.h +0 -261
- data/vendor/local/include/glib-2.0/gobject/gmarshal.h +0 -186
- data/vendor/local/include/glib-2.0/gobject/gobject.h +0 -567
- data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +0 -193
- data/vendor/local/include/glib-2.0/gobject/gparam.h +0 -415
- data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +0 -1137
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +0 -509
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +0 -51
- data/vendor/local/include/glib-2.0/gobject/gtype.h +0 -1736
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +0 -263
- data/vendor/local/include/glib-2.0/gobject/gtypeplugin.h +0 -134
- data/vendor/local/include/glib-2.0/gobject/gvalue.h +0 -159
- data/vendor/local/include/glib-2.0/gobject/gvaluearray.h +0 -77
- data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +0 -227
- data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +0 -260
- data/vendor/local/include/libintl.h +0 -464
- data/vendor/local/lib/GNU.Gettext.dll +0 -0
- data/vendor/local/lib/gio-2.0.def +0 -1143
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +0 -1452
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +0 -284
- data/vendor/local/lib/gmodule-2.0.def +0 -11
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +0 -370
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.def +0 -3
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/intl.lib +0 -0
- data/vendor/local/lib/libasprintf.dll.a +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/libintl.def +0 -31
- data/vendor/local/lib/libintl.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +0 -15
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +0 -11
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +0 -15
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +0 -14
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +0 -14
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +0 -11
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +0 -11
- data/vendor/local/manifest/gettext-runtime-dev_0.18.1.1-2_win32.mft +0 -81
- data/vendor/local/manifest/gettext-runtime_0.18.1.1-2_win32.mft +0 -3
- data/vendor/local/manifest/glib-dev_2.26.0-2_win32.mft +0 -570
- data/vendor/local/manifest/glib_2.26.0-2_win32.mft +0 -102
- data/vendor/local/share/aclocal/glib-2.0.m4 +0 -211
- data/vendor/local/share/aclocal/glib-gettext.m4 +0 -432
- data/vendor/local/share/doc/gettext/bind_textdomain_codeset.3.html +0 -165
- data/vendor/local/share/doc/gettext/bindtextdomain.3.html +0 -160
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext.html +0 -8
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceManager.html +0 -305
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceSet.html +0 -356
- data/vendor/local/share/doc/gettext/csharpdoc/begin.html +0 -11
- data/vendor/local/share/doc/gettext/csharpdoc/index.html +0 -10
- data/vendor/local/share/doc/gettext/csharpdoc/namespaces.html +0 -6
- data/vendor/local/share/doc/gettext/envsubst.1.html +0 -213
- data/vendor/local/share/doc/gettext/gettext.1.html +0 -266
- data/vendor/local/share/doc/gettext/gettext.3.html +0 -186
- data/vendor/local/share/doc/gettext/ngettext.1.html +0 -280
- data/vendor/local/share/doc/gettext/ngettext.3.html +0 -143
- data/vendor/local/share/doc/gettext/textdomain.3.html +0 -150
- data/vendor/local/share/doc/glib-2.26.0/COPYING +0 -482
- data/vendor/local/share/doc/glib-dev-2.26.0/COPYING +0 -482
- data/vendor/local/share/doc/libasprintf/autosprintf_all.html +0 -174
- data/vendor/local/share/glib-2.0/gdb/glib.py +0 -249
- data/vendor/local/share/glib-2.0/gdb/gobject.py +0 -305
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +0 -111
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +0 -279
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +0 -60
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +0 -1403
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +0 -733
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +0 -343
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +0 -563
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +0 -291
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +0 -620
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +0 -245
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +0 -423
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +0 -398
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +0 -254
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +0 -6211
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +0 -1833
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +0 -618
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +0 -2050
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +0 -1124
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +0 -1215
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +0 -540
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +0 -1416
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +0 -272
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +0 -206
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +0 -7462
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +0 -120
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +0 -516
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +0 -312
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +0 -155
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +0 -3144
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +0 -262
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +0 -353
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +0 -188
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +0 -189
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +0 -261
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +0 -479
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +0 -331
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +0 -717
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +0 -196
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +0 -388
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +0 -808
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +0 -185
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +0 -393
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +0 -1465
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +0 -848
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +0 -343
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +0 -311
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +0 -1012
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +0 -560
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +0 -312
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +0 -348
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +0 -787
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +0 -350
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +0 -2424
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +0 -609
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +0 -1193
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +0 -107
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +0 -2438
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +0 -297
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +0 -1292
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +0 -513
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +0 -337
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +0 -275
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +0 -745
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +0 -258
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +0 -165
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +0 -377
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +0 -197
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +0 -298
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +0 -222
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +0 -389
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +0 -288
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +0 -237
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +0 -237
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +0 -491
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +0 -274
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +0 -1028
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +0 -705
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +0 -252
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +0 -170
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +0 -65
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +0 -153
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +0 -155
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +0 -1084
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +0 -223
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +0 -1598
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +0 -112
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +0 -6250
- data/vendor/local/share/gtk-doc/html/gio/async.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +0 -207
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +0 -180
- data/vendor/local/share/gtk-doc/html/gio/ch24.html +0 -75
- data/vendor/local/share/gtk-doc/html/gio/ch25.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +0 -57
- data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +0 -59
- data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +0 -46
- data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +0 -48
- data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +0 -277
- data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +0 -95
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +0 -70
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +0 -130
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +0 -202
- data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +0 -96
- data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +0 -823
- data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +0 -828
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +0 -109
- data/vendor/local/share/gtk-doc/html/gio/extending.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +0 -38
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +0 -33
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +0 -59
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +0 -243
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +0 -316
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +0 -1117
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +0 -216
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +0 -339
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +0 -473
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +0 -391
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +0 -908
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +0 -933
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +0 -409
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +0 -297
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +0 -313
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +0 -736
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +0 -909
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +0 -666
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +0 -123
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +0 -53
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +0 -1736
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +0 -2006
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +0 -102
- data/vendor/local/share/gtk-doc/html/gio/gvfs-overview.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +0 -53
- data/vendor/local/share/gtk-doc/html/gio/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/icons.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/index.html +0 -435
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +0 -2513
- data/vendor/local/share/gtk-doc/html/gio/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +0 -62
- data/vendor/local/share/gtk-doc/html/gio/networking.html +0 -69
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +0 -390
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/settings.html +0 -38
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +0 -92
- data/vendor/local/share/gtk-doc/html/gio/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/gio/tools.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/types.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/utils.html +0 -33
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +0 -47
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +0 -77
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +0 -180
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +0 -312
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +0 -559
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +0 -362
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +0 -102
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +0 -124
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +0 -83
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +0 -194
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +0 -420
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +0 -359
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +0 -396
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +0 -417
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +0 -158
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +0 -419
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +0 -8214
- data/vendor/local/share/gtk-doc/html/glib/file-name-encodings.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +0 -893
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +0 -818
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +0 -414
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +0 -466
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +0 -802
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +0 -372
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +0 -500
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +0 -2056
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +0 -560
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +0 -1686
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +0 -398
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +0 -1094
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +0 -1671
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +0 -460
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +0 -528
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +0 -2045
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +0 -1278
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +0 -1406
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +0 -548
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +0 -1026
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +0 -1852
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +0 -2201
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +0 -239
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +0 -4278
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +0 -1864
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +0 -295
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +0 -1512
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +0 -1367
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +0 -229
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +0 -692
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +0 -2196
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +0 -2740
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +0 -612
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +0 -1451
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +0 -389
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +0 -1033
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +0 -141
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +0 -706
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +0 -510
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +0 -748
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +0 -1105
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +0 -1552
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +0 -1468
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +0 -194
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +0 -2745
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +0 -752
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +0 -269
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +0 -578
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +0 -532
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +0 -1353
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +0 -238
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +0 -1282
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +0 -1213
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +0 -924
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +0 -470
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +0 -301
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +0 -2960
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +0 -1291
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +0 -1805
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +0 -3478
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +0 -606
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +0 -3411
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +0 -245
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +0 -188
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +0 -263
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +0 -400
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +0 -3448
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +0 -253
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +0 -438
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +0 -476
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +0 -466
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +0 -159
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +0 -118
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +0 -64
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +0 -160
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +0 -120
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +0 -59
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +0 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +0 -2217
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +0 -121
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +0 -319
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +0 -118
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +0 -2183
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +0 -2671
- data/vendor/local/share/gtk-doc/html/glib/glib.html +0 -80
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +0 -72
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +0 -131
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +0 -1288
- data/vendor/local/share/gtk-doc/html/glib/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +0 -344
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +0 -2846
- data/vendor/local/share/gtk-doc/html/glib/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/mainloop-states.gif +0 -0
- data/vendor/local/share/gtk-doc/html/glib/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/glib/tools.html +0 -41
- data/vendor/local/share/gtk-doc/html/glib/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +0 -803
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +0 -710
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +0 -453
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +0 -47
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +0 -85
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +0 -51
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +0 -46
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +0 -38
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +0 -46
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +0 -73
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +0 -201
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +0 -178
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +0 -42
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +0 -42
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +0 -50
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +0 -2721
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +0 -136
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +0 -113
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +0 -293
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +0 -263
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +0 -92
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +0 -214
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +0 -361
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +0 -307
- data/vendor/local/share/gtk-doc/html/gobject/glue.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +0 -417
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +0 -2412
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +0 -847
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +0 -1433
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +0 -776
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +0 -2741
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +0 -5555
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +0 -2875
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +0 -4460
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +0 -416
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +0 -260
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +0 -234
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +0 -270
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +0 -117
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +0 -762
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +0 -801
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +0 -143
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +0 -287
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +0 -316
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +0 -76
- data/vendor/local/share/gtk-doc/html/gobject/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +0 -100
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +0 -86
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +0 -113
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +0 -122
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +0 -257
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +0 -283
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +0 -125
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +0 -167
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +0 -160
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +0 -121
- data/vendor/local/share/gtk-doc/html/gobject/index.html +0 -192
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +0 -786
- data/vendor/local/share/gtk-doc/html/gobject/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +0 -72
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +0 -80
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +0 -66
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +0 -85
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +0 -47
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +0 -377
- data/vendor/local/share/gtk-doc/html/gobject/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +0 -35
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +0 -40
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +0 -63
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +0 -43
- data/vendor/local/share/gtk-doc/html/gobject/up.png +0 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/am/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en@boldquot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@quot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/locale.alias +0 -77
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/envsubst.1 +0 -54
- data/vendor/local/share/man/man1/gettext.1 +0 -69
- data/vendor/local/share/man/man1/glib-genmarshal.1 +0 -312
- data/vendor/local/share/man/man1/glib-mkenums.1 +0 -246
- data/vendor/local/share/man/man1/gobject-query.1 +0 -83
- data/vendor/local/share/man/man1/ngettext.1 +0 -68
- data/vendor/local/share/man/man3/bind_textdomain_codeset.3 +0 -72
- data/vendor/local/share/man/man3/bindtextdomain.3 +0 -69
- data/vendor/local/share/man/man3/dcgettext.3 +0 -1
- data/vendor/local/share/man/man3/dcngettext.3 +0 -1
- data/vendor/local/share/man/man3/dgettext.3 +0 -1
- data/vendor/local/share/man/man3/dngettext.3 +0 -1
- data/vendor/local/share/man/man3/gettext.3 +0 -99
- data/vendor/local/share/man/man3/ngettext.3 +0 -60
- data/vendor/local/share/man/man3/textdomain.3 +0 -57
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.log +0 -10423
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.sh +0 -457
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.log +0 -2867
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.sh +0 -64
@@ -1,389 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Limits of Basic Types</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
-
<link rel="home" href="index.html" title="GLib Reference Manual">
|
8
|
-
<link rel="up" href="glib-fundamentals.html" title="GLib Fundamentals">
|
9
|
-
<link rel="prev" href="glib-Basic-Types.html" title="Basic Types">
|
10
|
-
<link rel="next" href="glib-Standard-Macros.html" title="Standard Macros">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
-
<tr valign="middle">
|
17
|
-
<td><a accesskey="p" href="glib-Basic-Types.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
-
<td><a accesskey="u" href="glib-fundamentals.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
-
<th width="100%" align="center">GLib Reference Manual</th>
|
21
|
-
<td><a accesskey="n" href="glib-Standard-Macros.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
-
</tr>
|
23
|
-
<tr><td colspan="5" class="shortcuts">
|
24
|
-
<a href="#glib-Limits-of-Basic-Types.synopsis" class="shortcut">Top</a>
|
25
|
-
|
|
26
|
-
<a href="#glib-Limits-of-Basic-Types.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
29
|
-
<div class="refentry">
|
30
|
-
<a name="glib-Limits-of-Basic-Types"></a><div class="titlepage"></div>
|
31
|
-
<div class="refnamediv"><table width="100%"><tr>
|
32
|
-
<td valign="top">
|
33
|
-
<h2><span class="refentrytitle"><a name="glib-Limits-of-Basic-Types.top_of_page"></a>Limits of Basic Types</span></h2>
|
34
|
-
<p>Limits of Basic Types — portable method of determining the limits of the standard types</p>
|
35
|
-
</td>
|
36
|
-
<td valign="top" align="right"></td>
|
37
|
-
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv">
|
39
|
-
<a name="glib-Limits-of-Basic-Types.synopsis"></a><h2>Synopsis</h2>
|
40
|
-
<pre class="synopsis">
|
41
|
-
#include <glib.h>
|
42
|
-
|
43
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT:CAPS" title="G_MININT">G_MININT</a>
|
44
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT:CAPS" title="G_MAXINT">G_MAXINT</a>
|
45
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT:CAPS" title="G_MAXUINT">G_MAXUINT</a>
|
46
|
-
|
47
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINSHORT:CAPS" title="G_MINSHORT">G_MINSHORT</a>
|
48
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSHORT:CAPS" title="G_MAXSHORT">G_MAXSHORT</a>
|
49
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUSHORT:CAPS" title="G_MAXUSHORT">G_MAXUSHORT</a>
|
50
|
-
|
51
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINLONG:CAPS" title="G_MINLONG">G_MINLONG</a>
|
52
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXLONG:CAPS" title="G_MAXLONG">G_MAXLONG</a>
|
53
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXULONG:CAPS" title="G_MAXULONG">G_MAXULONG</a>
|
54
|
-
|
55
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT8:CAPS" title="G_MININT8">G_MININT8</a>
|
56
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT8:CAPS" title="G_MAXINT8">G_MAXINT8</a>
|
57
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT8:CAPS" title="G_MAXUINT8">G_MAXUINT8</a>
|
58
|
-
|
59
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT16:CAPS" title="G_MININT16">G_MININT16</a>
|
60
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT16:CAPS" title="G_MAXINT16">G_MAXINT16</a>
|
61
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT16:CAPS" title="G_MAXUINT16">G_MAXUINT16</a>
|
62
|
-
|
63
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT32:CAPS" title="G_MININT32">G_MININT32</a>
|
64
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT32:CAPS" title="G_MAXINT32">G_MAXINT32</a>
|
65
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT32:CAPS" title="G_MAXUINT32">G_MAXUINT32</a>
|
66
|
-
|
67
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MININT64:CAPS" title="G_MININT64">G_MININT64</a>
|
68
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXINT64:CAPS" title="G_MAXINT64">G_MAXINT64</a>
|
69
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXUINT64:CAPS" title="G_MAXUINT64">G_MAXUINT64</a>
|
70
|
-
|
71
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSIZE:CAPS" title="G_MAXSIZE">G_MAXSIZE</a>
|
72
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINSSIZE:CAPS" title="G_MINSSIZE">G_MINSSIZE</a>
|
73
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXSSIZE:CAPS" title="G_MAXSSIZE">G_MAXSSIZE</a>
|
74
|
-
|
75
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINOFFSET:CAPS" title="G_MINOFFSET">G_MINOFFSET</a>
|
76
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXOFFSET:CAPS" title="G_MAXOFFSET">G_MAXOFFSET</a>
|
77
|
-
|
78
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINFLOAT:CAPS" title="G_MINFLOAT">G_MINFLOAT</a>
|
79
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXFLOAT:CAPS" title="G_MAXFLOAT">G_MAXFLOAT</a>
|
80
|
-
|
81
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MINDOUBLE:CAPS" title="G_MINDOUBLE">G_MINDOUBLE</a>
|
82
|
-
#define <a class="link" href="glib-Limits-of-Basic-Types.html#G-MAXDOUBLE:CAPS" title="G_MAXDOUBLE">G_MAXDOUBLE</a>
|
83
|
-
</pre>
|
84
|
-
</div>
|
85
|
-
<div class="refsect1">
|
86
|
-
<a name="glib-Limits-of-Basic-Types.description"></a><h2>Description</h2>
|
87
|
-
<p>
|
88
|
-
These macros provide a portable method to determine the limits of some of
|
89
|
-
the standard integer and floating point types.
|
90
|
-
</p>
|
91
|
-
</div>
|
92
|
-
<div class="refsect1">
|
93
|
-
<a name="glib-Limits-of-Basic-Types.details"></a><h2>Details</h2>
|
94
|
-
<div class="refsect2">
|
95
|
-
<a name="G-MININT:CAPS"></a><h3>G_MININT</h3>
|
96
|
-
<pre class="programlisting">#define G_MININT INT_MIN
|
97
|
-
</pre>
|
98
|
-
<p>
|
99
|
-
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a>.
|
100
|
-
</p>
|
101
|
-
</div>
|
102
|
-
<hr>
|
103
|
-
<div class="refsect2">
|
104
|
-
<a name="G-MAXINT:CAPS"></a><h3>G_MAXINT</h3>
|
105
|
-
<pre class="programlisting">#define G_MAXINT INT_MAX
|
106
|
-
</pre>
|
107
|
-
<p>
|
108
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a>.
|
109
|
-
</p>
|
110
|
-
</div>
|
111
|
-
<hr>
|
112
|
-
<div class="refsect2">
|
113
|
-
<a name="G-MAXUINT:CAPS"></a><h3>G_MAXUINT</h3>
|
114
|
-
<pre class="programlisting">#define G_MAXUINT UINT_MAX
|
115
|
-
</pre>
|
116
|
-
<p>
|
117
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a>.
|
118
|
-
</p>
|
119
|
-
</div>
|
120
|
-
<hr>
|
121
|
-
<div class="refsect2">
|
122
|
-
<a name="G-MINSHORT:CAPS"></a><h3>G_MINSHORT</h3>
|
123
|
-
<pre class="programlisting">#define G_MINSHORT SHRT_MIN
|
124
|
-
</pre>
|
125
|
-
<p>
|
126
|
-
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gshort" title="gshort"><span class="type">gshort</span></a>.
|
127
|
-
</p>
|
128
|
-
</div>
|
129
|
-
<hr>
|
130
|
-
<div class="refsect2">
|
131
|
-
<a name="G-MAXSHORT:CAPS"></a><h3>G_MAXSHORT</h3>
|
132
|
-
<pre class="programlisting">#define G_MAXSHORT SHRT_MAX
|
133
|
-
</pre>
|
134
|
-
<p>
|
135
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gshort" title="gshort"><span class="type">gshort</span></a>.
|
136
|
-
</p>
|
137
|
-
</div>
|
138
|
-
<hr>
|
139
|
-
<div class="refsect2">
|
140
|
-
<a name="G-MAXUSHORT:CAPS"></a><h3>G_MAXUSHORT</h3>
|
141
|
-
<pre class="programlisting">#define G_MAXUSHORT USHRT_MAX
|
142
|
-
</pre>
|
143
|
-
<p>
|
144
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gushort" title="gushort"><span class="type">gushort</span></a>.
|
145
|
-
</p>
|
146
|
-
</div>
|
147
|
-
<hr>
|
148
|
-
<div class="refsect2">
|
149
|
-
<a name="G-MINLONG:CAPS"></a><h3>G_MINLONG</h3>
|
150
|
-
<pre class="programlisting">#define G_MINLONG LONG_MIN
|
151
|
-
</pre>
|
152
|
-
<p>
|
153
|
-
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a>.
|
154
|
-
</p>
|
155
|
-
</div>
|
156
|
-
<hr>
|
157
|
-
<div class="refsect2">
|
158
|
-
<a name="G-MAXLONG:CAPS"></a><h3>G_MAXLONG</h3>
|
159
|
-
<pre class="programlisting">#define G_MAXLONG LONG_MAX
|
160
|
-
</pre>
|
161
|
-
<p>
|
162
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a>.
|
163
|
-
</p>
|
164
|
-
</div>
|
165
|
-
<hr>
|
166
|
-
<div class="refsect2">
|
167
|
-
<a name="G-MAXULONG:CAPS"></a><h3>G_MAXULONG</h3>
|
168
|
-
<pre class="programlisting">#define G_MAXULONG ULONG_MAX
|
169
|
-
</pre>
|
170
|
-
<p>
|
171
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gulong" title="gulong"><span class="type">gulong</span></a>.
|
172
|
-
</p>
|
173
|
-
</div>
|
174
|
-
<hr>
|
175
|
-
<div class="refsect2">
|
176
|
-
<a name="G-MININT8:CAPS"></a><h3>G_MININT8</h3>
|
177
|
-
<pre class="programlisting">#define G_MININT8 ((gint8) 0x80)
|
178
|
-
</pre>
|
179
|
-
<p>
|
180
|
-
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint8" title="gint8"><span class="type">gint8</span></a>.
|
181
|
-
</p>
|
182
|
-
<p class="since">Since 2.4</p>
|
183
|
-
</div>
|
184
|
-
<hr>
|
185
|
-
<div class="refsect2">
|
186
|
-
<a name="G-MAXINT8:CAPS"></a><h3>G_MAXINT8</h3>
|
187
|
-
<pre class="programlisting">#define G_MAXINT8 ((gint8) 0x7f)
|
188
|
-
</pre>
|
189
|
-
<p>
|
190
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint8" title="gint8"><span class="type">gint8</span></a>.
|
191
|
-
</p>
|
192
|
-
<p class="since">Since 2.4</p>
|
193
|
-
</div>
|
194
|
-
<hr>
|
195
|
-
<div class="refsect2">
|
196
|
-
<a name="G-MAXUINT8:CAPS"></a><h3>G_MAXUINT8</h3>
|
197
|
-
<pre class="programlisting">#define G_MAXUINT8 ((guint8) 0xff)
|
198
|
-
</pre>
|
199
|
-
<p>
|
200
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint8" title="guint8"><span class="type">guint8</span></a>.
|
201
|
-
</p>
|
202
|
-
<p class="since">Since 2.4</p>
|
203
|
-
</div>
|
204
|
-
<hr>
|
205
|
-
<div class="refsect2">
|
206
|
-
<a name="G-MININT16:CAPS"></a><h3>G_MININT16</h3>
|
207
|
-
<pre class="programlisting">#define G_MININT16 ((gint16) 0x8000)
|
208
|
-
</pre>
|
209
|
-
<p>
|
210
|
-
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint16" title="gint16"><span class="type">gint16</span></a>.
|
211
|
-
</p>
|
212
|
-
<p class="since">Since 2.4</p>
|
213
|
-
</div>
|
214
|
-
<hr>
|
215
|
-
<div class="refsect2">
|
216
|
-
<a name="G-MAXINT16:CAPS"></a><h3>G_MAXINT16</h3>
|
217
|
-
<pre class="programlisting">#define G_MAXINT16 ((gint16) 0x7fff)
|
218
|
-
</pre>
|
219
|
-
<p>
|
220
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint16" title="gint16"><span class="type">gint16</span></a>.
|
221
|
-
</p>
|
222
|
-
<p class="since">Since 2.4</p>
|
223
|
-
</div>
|
224
|
-
<hr>
|
225
|
-
<div class="refsect2">
|
226
|
-
<a name="G-MAXUINT16:CAPS"></a><h3>G_MAXUINT16</h3>
|
227
|
-
<pre class="programlisting">#define G_MAXUINT16 ((guint16) 0xffff)
|
228
|
-
</pre>
|
229
|
-
<p>
|
230
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint16" title="guint16"><span class="type">guint16</span></a>.
|
231
|
-
</p>
|
232
|
-
<p class="since">Since 2.4</p>
|
233
|
-
</div>
|
234
|
-
<hr>
|
235
|
-
<div class="refsect2">
|
236
|
-
<a name="G-MININT32:CAPS"></a><h3>G_MININT32</h3>
|
237
|
-
<pre class="programlisting">#define G_MININT32 ((gint32) 0x80000000)
|
238
|
-
</pre>
|
239
|
-
<p>
|
240
|
-
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint32" title="gint32"><span class="type">gint32</span></a>.
|
241
|
-
</p>
|
242
|
-
<p class="since">Since 2.4</p>
|
243
|
-
</div>
|
244
|
-
<hr>
|
245
|
-
<div class="refsect2">
|
246
|
-
<a name="G-MAXINT32:CAPS"></a><h3>G_MAXINT32</h3>
|
247
|
-
<pre class="programlisting">#define G_MAXINT32 ((gint32) 0x7fffffff)
|
248
|
-
</pre>
|
249
|
-
<p>
|
250
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint32" title="gint32"><span class="type">gint32</span></a>.
|
251
|
-
</p>
|
252
|
-
<p class="since">Since 2.4</p>
|
253
|
-
</div>
|
254
|
-
<hr>
|
255
|
-
<div class="refsect2">
|
256
|
-
<a name="G-MAXUINT32:CAPS"></a><h3>G_MAXUINT32</h3>
|
257
|
-
<pre class="programlisting">#define G_MAXUINT32 ((guint32) 0xffffffff)
|
258
|
-
</pre>
|
259
|
-
<p>
|
260
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint32" title="guint32"><span class="type">guint32</span></a>.
|
261
|
-
</p>
|
262
|
-
<p class="since">Since 2.4</p>
|
263
|
-
</div>
|
264
|
-
<hr>
|
265
|
-
<div class="refsect2">
|
266
|
-
<a name="G-MININT64:CAPS"></a><h3>G_MININT64</h3>
|
267
|
-
<pre class="programlisting">#define G_MININT64 ((gint64) G_GINT64_CONSTANT(0x8000000000000000))
|
268
|
-
</pre>
|
269
|
-
<p>
|
270
|
-
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a>.
|
271
|
-
</p>
|
272
|
-
</div>
|
273
|
-
<hr>
|
274
|
-
<div class="refsect2">
|
275
|
-
<a name="G-MAXINT64:CAPS"></a><h3>G_MAXINT64</h3>
|
276
|
-
<pre class="programlisting">#define G_MAXINT64 G_GINT64_CONSTANT(0x7fffffffffffffff)
|
277
|
-
</pre>
|
278
|
-
<p>
|
279
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gint64" title="gint64"><span class="type">gint64</span></a>.
|
280
|
-
</p>
|
281
|
-
</div>
|
282
|
-
<hr>
|
283
|
-
<div class="refsect2">
|
284
|
-
<a name="G-MAXUINT64:CAPS"></a><h3>G_MAXUINT64</h3>
|
285
|
-
<pre class="programlisting">#define G_MAXUINT64 G_GINT64_CONSTANT(0xffffffffffffffffU)
|
286
|
-
</pre>
|
287
|
-
<p>
|
288
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#guint64" title="guint64"><span class="type">guint64</span></a>.
|
289
|
-
</p>
|
290
|
-
</div>
|
291
|
-
<hr>
|
292
|
-
<div class="refsect2">
|
293
|
-
<a name="G-MAXSIZE:CAPS"></a><h3>G_MAXSIZE</h3>
|
294
|
-
<pre class="programlisting">#define G_MAXSIZE G_MAXULONG
|
295
|
-
</pre>
|
296
|
-
<p>
|
297
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a>.
|
298
|
-
</p>
|
299
|
-
<p class="since">Since 2.4</p>
|
300
|
-
</div>
|
301
|
-
<hr>
|
302
|
-
<div class="refsect2">
|
303
|
-
<a name="G-MINSSIZE:CAPS"></a><h3>G_MINSSIZE</h3>
|
304
|
-
<pre class="programlisting">#define G_MINSSIZE G_MINLONG
|
305
|
-
</pre>
|
306
|
-
<p>
|
307
|
-
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a>.
|
308
|
-
</p>
|
309
|
-
<p class="since">Since 2.14</p>
|
310
|
-
</div>
|
311
|
-
<hr>
|
312
|
-
<div class="refsect2">
|
313
|
-
<a name="G-MAXSSIZE:CAPS"></a><h3>G_MAXSSIZE</h3>
|
314
|
-
<pre class="programlisting">#define G_MAXSSIZE G_MAXLONG
|
315
|
-
</pre>
|
316
|
-
<p>
|
317
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a>.
|
318
|
-
</p>
|
319
|
-
<p class="since">Since 2.14</p>
|
320
|
-
</div>
|
321
|
-
<hr>
|
322
|
-
<div class="refsect2">
|
323
|
-
<a name="G-MINOFFSET:CAPS"></a><h3>G_MINOFFSET</h3>
|
324
|
-
<pre class="programlisting">#define G_MINOFFSET G_MININT64
|
325
|
-
</pre>
|
326
|
-
<p>
|
327
|
-
The minimum value which can be held in a <a class="link" href="glib-Basic-Types.html#goffset" title="goffset"><span class="type">goffset</span></a>.
|
328
|
-
</p>
|
329
|
-
</div>
|
330
|
-
<hr>
|
331
|
-
<div class="refsect2">
|
332
|
-
<a name="G-MAXOFFSET:CAPS"></a><h3>G_MAXOFFSET</h3>
|
333
|
-
<pre class="programlisting">#define G_MAXOFFSET G_MAXINT64
|
334
|
-
</pre>
|
335
|
-
<p>
|
336
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#goffset" title="goffset"><span class="type">goffset</span></a>.
|
337
|
-
</p>
|
338
|
-
</div>
|
339
|
-
<hr>
|
340
|
-
<div class="refsect2">
|
341
|
-
<a name="G-MINFLOAT:CAPS"></a><h3>G_MINFLOAT</h3>
|
342
|
-
<pre class="programlisting">#define G_MINFLOAT FLT_MIN
|
343
|
-
</pre>
|
344
|
-
<p>
|
345
|
-
The minimum positive value which can be held in a <a class="link" href="glib-Basic-Types.html#gfloat" title="gfloat"><span class="type">gfloat</span></a>.
|
346
|
-
</p>
|
347
|
-
<p>
|
348
|
-
If you are interested in the smallest value which can be held in a <a class="link" href="glib-Basic-Types.html#gfloat" title="gfloat"><span class="type">gfloat</span></a>,
|
349
|
-
use -G_MAXFLOAT.
|
350
|
-
</p>
|
351
|
-
</div>
|
352
|
-
<hr>
|
353
|
-
<div class="refsect2">
|
354
|
-
<a name="G-MAXFLOAT:CAPS"></a><h3>G_MAXFLOAT</h3>
|
355
|
-
<pre class="programlisting">#define G_MAXFLOAT FLT_MAX
|
356
|
-
</pre>
|
357
|
-
<p>
|
358
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gfloat" title="gfloat"><span class="type">gfloat</span></a>.
|
359
|
-
</p>
|
360
|
-
</div>
|
361
|
-
<hr>
|
362
|
-
<div class="refsect2">
|
363
|
-
<a name="G-MINDOUBLE:CAPS"></a><h3>G_MINDOUBLE</h3>
|
364
|
-
<pre class="programlisting">#define G_MINDOUBLE DBL_MIN
|
365
|
-
</pre>
|
366
|
-
<p>
|
367
|
-
The minimum positive value which can be held in a <a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a>.
|
368
|
-
</p>
|
369
|
-
<p>
|
370
|
-
If you are interested in the smallest value which can be held in a <a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a>,
|
371
|
-
use -G_MAXDOUBLE.
|
372
|
-
</p>
|
373
|
-
</div>
|
374
|
-
<hr>
|
375
|
-
<div class="refsect2">
|
376
|
-
<a name="G-MAXDOUBLE:CAPS"></a><h3>G_MAXDOUBLE</h3>
|
377
|
-
<pre class="programlisting">#define G_MAXDOUBLE DBL_MAX
|
378
|
-
</pre>
|
379
|
-
<p>
|
380
|
-
The maximum value which can be held in a <a class="link" href="glib-Basic-Types.html#gdouble" title="gdouble"><span class="type">gdouble</span></a>.
|
381
|
-
</p>
|
382
|
-
</div>
|
383
|
-
</div>
|
384
|
-
</div>
|
385
|
-
<div class="footer">
|
386
|
-
<hr>
|
387
|
-
Generated by GTK-Doc V1.15.1</div>
|
388
|
-
</body>
|
389
|
-
</html>
|
@@ -1,1033 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Memory Allocation</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
-
<link rel="home" href="index.html" title="GLib Reference Manual">
|
8
|
-
<link rel="up" href="glib-core.html" title="GLib Core Application Support">
|
9
|
-
<link rel="prev" href="glib-Dynamic-Loading-of-Modules.html" title="Dynamic Loading of Modules">
|
10
|
-
<link rel="next" href="glib-IO-Channels.html" title="IO Channels">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
-
<tr valign="middle">
|
17
|
-
<td><a accesskey="p" href="glib-Dynamic-Loading-of-Modules.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
-
<td><a accesskey="u" href="glib-core.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
-
<th width="100%" align="center">GLib Reference Manual</th>
|
21
|
-
<td><a accesskey="n" href="glib-IO-Channels.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
-
</tr>
|
23
|
-
<tr><td colspan="5" class="shortcuts">
|
24
|
-
<a href="#glib-Memory-Allocation.synopsis" class="shortcut">Top</a>
|
25
|
-
|
|
26
|
-
<a href="#glib-Memory-Allocation.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
29
|
-
<div class="refentry">
|
30
|
-
<a name="glib-Memory-Allocation"></a><div class="titlepage"></div>
|
31
|
-
<div class="refnamediv"><table width="100%"><tr>
|
32
|
-
<td valign="top">
|
33
|
-
<h2><span class="refentrytitle"><a name="glib-Memory-Allocation.top_of_page"></a>Memory Allocation</span></h2>
|
34
|
-
<p>Memory Allocation — general memory-handling</p>
|
35
|
-
</td>
|
36
|
-
<td valign="top" align="right"></td>
|
37
|
-
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv">
|
39
|
-
<a name="glib-Memory-Allocation.synopsis"></a><h2>Synopsis</h2>
|
40
|
-
<pre class="synopsis">
|
41
|
-
#include <glib.h>
|
42
|
-
|
43
|
-
#define <a class="link" href="glib-Memory-Allocation.html#g-new" title="g_new()">g_new</a> (struct_type,
|
44
|
-
n_structs)
|
45
|
-
#define <a class="link" href="glib-Memory-Allocation.html#g-new0" title="g_new0()">g_new0</a> (struct_type,
|
46
|
-
n_structs)
|
47
|
-
#define <a class="link" href="glib-Memory-Allocation.html#g-renew" title="g_renew()">g_renew</a> (struct_type,
|
48
|
-
mem,
|
49
|
-
n_structs)
|
50
|
-
#define <a class="link" href="glib-Memory-Allocation.html#g-try-new" title="g_try_new()">g_try_new</a> (struct_type,
|
51
|
-
n_structs)
|
52
|
-
#define <a class="link" href="glib-Memory-Allocation.html#g-try-new0" title="g_try_new0()">g_try_new0</a> (struct_type,
|
53
|
-
n_structs)
|
54
|
-
#define <a class="link" href="glib-Memory-Allocation.html#g-try-renew" title="g_try_renew()">g_try_renew</a> (struct_type,
|
55
|
-
mem,
|
56
|
-
n_structs)
|
57
|
-
|
58
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-malloc" title="g_malloc ()">g_malloc</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);
|
59
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-malloc0" title="g_malloc0 ()">g_malloc0</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);
|
60
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-realloc" title="g_realloc ()">g_realloc</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>,
|
61
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);
|
62
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-try-malloc" title="g_try_malloc ()">g_try_malloc</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);
|
63
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-try-malloc0" title="g_try_malloc0 ()">g_try_malloc0</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);
|
64
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-try-realloc" title="g_try_realloc ()">g_try_realloc</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>,
|
65
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);
|
66
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-malloc-n" title="g_malloc_n ()">g_malloc_n</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
67
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);
|
68
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-malloc0-n" title="g_malloc0_n ()">g_malloc0_n</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
69
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);
|
70
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-realloc-n" title="g_realloc_n ()">g_realloc_n</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>,
|
71
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
72
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);
|
73
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-try-malloc-n" title="g_try_malloc_n ()">g_try_malloc_n</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
74
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);
|
75
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-try-malloc0-n" title="g_try_malloc0_n ()">g_try_malloc0_n</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
76
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);
|
77
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-try-realloc-n" title="g_try_realloc_n ()">g_try_realloc_n</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>,
|
78
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
79
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);
|
80
|
-
|
81
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()">g_free</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>);
|
82
|
-
extern gboolean <a class="link" href="glib-Memory-Allocation.html#g-mem-gc-friendly" title="g_mem_gc_friendly">g_mem_gc_friendly</a>;
|
83
|
-
|
84
|
-
#define <a class="link" href="glib-Memory-Allocation.html#g-alloca" title="g_alloca()">g_alloca</a> (size)
|
85
|
-
#define <a class="link" href="glib-Memory-Allocation.html#g-newa" title="g_newa()">g_newa</a> (struct_type,
|
86
|
-
n_structs)
|
87
|
-
|
88
|
-
#define <a class="link" href="glib-Memory-Allocation.html#g-memmove" title="g_memmove()">g_memmove</a> (dest,
|
89
|
-
src,
|
90
|
-
len)
|
91
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Allocation.html#g-memdup" title="g_memdup ()">g_memdup</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> mem</code></em>,
|
92
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> byte_size</code></em>);
|
93
|
-
|
94
|
-
<a class="link" href="glib-Memory-Allocation.html#GMemVTable" title="GMemVTable">GMemVTable</a>;
|
95
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Memory-Allocation.html#g-mem-set-vtable" title="g_mem_set_vtable ()">g_mem_set_vtable</a> (<em class="parameter"><code><a class="link" href="glib-Memory-Allocation.html#GMemVTable" title="GMemVTable"><span class="type">GMemVTable</span></a> *vtable</code></em>);
|
96
|
-
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Memory-Allocation.html#g-mem-is-system-malloc" title="g_mem_is_system_malloc ()">g_mem_is_system_malloc</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
97
|
-
|
98
|
-
extern GMemVTable *<a class="link" href="glib-Memory-Allocation.html#glib-mem-profiler-table" title="glib_mem_profiler_table">glib_mem_profiler_table</a>;
|
99
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Memory-Allocation.html#g-mem-profile" title="g_mem_profile ()">g_mem_profile</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
100
|
-
</pre>
|
101
|
-
</div>
|
102
|
-
<div class="refsect1">
|
103
|
-
<a name="glib-Memory-Allocation.description"></a><h2>Description</h2>
|
104
|
-
<p>
|
105
|
-
These functions provide support for allocating and freeing memory.
|
106
|
-
</p>
|
107
|
-
<p>
|
108
|
-
</p>
|
109
|
-
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
|
110
|
-
<h3 class="title">Note</h3>
|
111
|
-
If any call to allocate memory fails, the application is terminated.
|
112
|
-
This also means that there is no need to check if the call succeeded.
|
113
|
-
</div>
|
114
|
-
<p>
|
115
|
-
</p>
|
116
|
-
<p>
|
117
|
-
</p>
|
118
|
-
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
|
119
|
-
<h3 class="title">Note</h3>
|
120
|
-
It's important to match <a class="link" href="glib-Memory-Allocation.html#g-malloc" title="g_malloc ()"><code class="function">g_malloc()</code></a> with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>, plain <code class="function">malloc()</code> with <code class="function">free()</code>,
|
121
|
-
and (if you're using C++) new with delete and new[] with delete[]. Otherwise
|
122
|
-
bad things can happen, since these allocators may use different memory
|
123
|
-
pools (and new/delete call constructors and destructors). See also
|
124
|
-
<a class="link" href="glib-Memory-Allocation.html#g-mem-set-vtable" title="g_mem_set_vtable ()"><code class="function">g_mem_set_vtable()</code></a>.
|
125
|
-
</div>
|
126
|
-
<p>
|
127
|
-
</p>
|
128
|
-
</div>
|
129
|
-
<div class="refsect1">
|
130
|
-
<a name="glib-Memory-Allocation.details"></a><h2>Details</h2>
|
131
|
-
<div class="refsect2">
|
132
|
-
<a name="g-new"></a><h3>g_new()</h3>
|
133
|
-
<pre class="programlisting">#define g_new(struct_type, n_structs)</pre>
|
134
|
-
<p>
|
135
|
-
Allocates <em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>.
|
136
|
-
The returned pointer is cast to a pointer to the given type.
|
137
|
-
If <em class="parameter"><code>n_structs</code></em> is 0 it returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
138
|
-
Care is taken to avoid overflow when calculating the size of the allocated block.
|
139
|
-
</p>
|
140
|
-
<p>
|
141
|
-
Since the returned pointer is already casted to the right type,
|
142
|
-
it is normally unnecessary to cast it explicitly, and doing
|
143
|
-
so might hide memory allocation errors.
|
144
|
-
</p>
|
145
|
-
<div class="variablelist"><table border="0">
|
146
|
-
<col align="left" valign="top">
|
147
|
-
<tbody>
|
148
|
-
<tr>
|
149
|
-
<td><p><span class="term"><em class="parameter"><code>struct_type</code></em> :</span></p></td>
|
150
|
-
<td>the type of the elements to allocate
|
151
|
-
</td>
|
152
|
-
</tr>
|
153
|
-
<tr>
|
154
|
-
<td><p><span class="term"><em class="parameter"><code>n_structs</code></em> :</span></p></td>
|
155
|
-
<td>the number of elements to allocate
|
156
|
-
</td>
|
157
|
-
</tr>
|
158
|
-
<tr>
|
159
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
160
|
-
<td> a pointer to the allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em>
|
161
|
-
</td>
|
162
|
-
</tr>
|
163
|
-
</tbody>
|
164
|
-
</table></div>
|
165
|
-
</div>
|
166
|
-
<hr>
|
167
|
-
<div class="refsect2">
|
168
|
-
<a name="g-new0"></a><h3>g_new0()</h3>
|
169
|
-
<pre class="programlisting">#define g_new0(struct_type, n_structs)</pre>
|
170
|
-
<p>
|
171
|
-
Allocates <em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>, initialized to 0's.
|
172
|
-
The returned pointer is cast to a pointer to the given type.
|
173
|
-
If <em class="parameter"><code>n_structs</code></em> is 0 it returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
174
|
-
Care is taken to avoid overflow when calculating the size of the allocated block.
|
175
|
-
</p>
|
176
|
-
<p>
|
177
|
-
Since the returned pointer is already casted to the right type,
|
178
|
-
it is normally unnecessary to cast it explicitly, and doing
|
179
|
-
so might hide memory allocation errors.
|
180
|
-
</p>
|
181
|
-
<div class="variablelist"><table border="0">
|
182
|
-
<col align="left" valign="top">
|
183
|
-
<tbody>
|
184
|
-
<tr>
|
185
|
-
<td><p><span class="term"><em class="parameter"><code>struct_type</code></em> :</span></p></td>
|
186
|
-
<td>the type of the elements to allocate.
|
187
|
-
</td>
|
188
|
-
</tr>
|
189
|
-
<tr>
|
190
|
-
<td><p><span class="term"><em class="parameter"><code>n_structs</code></em> :</span></p></td>
|
191
|
-
<td>the number of elements to allocate.
|
192
|
-
</td>
|
193
|
-
</tr>
|
194
|
-
<tr>
|
195
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
196
|
-
<td> a pointer to the allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em>.
|
197
|
-
</td>
|
198
|
-
</tr>
|
199
|
-
</tbody>
|
200
|
-
</table></div>
|
201
|
-
</div>
|
202
|
-
<hr>
|
203
|
-
<div class="refsect2">
|
204
|
-
<a name="g-renew"></a><h3>g_renew()</h3>
|
205
|
-
<pre class="programlisting">#define g_renew(struct_type, mem, n_structs)</pre>
|
206
|
-
<p>
|
207
|
-
Reallocates the memory pointed to by <em class="parameter"><code>mem</code></em>, so that it now has space for
|
208
|
-
<em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>. It returns the new address of
|
209
|
-
the memory, which may have been moved.
|
210
|
-
Care is taken to avoid overflow when calculating the size of the allocated block.
|
211
|
-
</p>
|
212
|
-
<div class="variablelist"><table border="0">
|
213
|
-
<col align="left" valign="top">
|
214
|
-
<tbody>
|
215
|
-
<tr>
|
216
|
-
<td><p><span class="term"><em class="parameter"><code>struct_type</code></em> :</span></p></td>
|
217
|
-
<td>the type of the elements to allocate
|
218
|
-
</td>
|
219
|
-
</tr>
|
220
|
-
<tr>
|
221
|
-
<td><p><span class="term"><em class="parameter"><code>mem</code></em> :</span></p></td>
|
222
|
-
<td>the currently allocated memory
|
223
|
-
</td>
|
224
|
-
</tr>
|
225
|
-
<tr>
|
226
|
-
<td><p><span class="term"><em class="parameter"><code>n_structs</code></em> :</span></p></td>
|
227
|
-
<td>the number of elements to allocate
|
228
|
-
</td>
|
229
|
-
</tr>
|
230
|
-
<tr>
|
231
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
232
|
-
<td> a pointer to the new allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em>
|
233
|
-
</td>
|
234
|
-
</tr>
|
235
|
-
</tbody>
|
236
|
-
</table></div>
|
237
|
-
</div>
|
238
|
-
<hr>
|
239
|
-
<div class="refsect2">
|
240
|
-
<a name="g-try-new"></a><h3>g_try_new()</h3>
|
241
|
-
<pre class="programlisting">#define g_try_new(struct_type, n_structs)</pre>
|
242
|
-
<p>
|
243
|
-
Attempts to allocate <em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>, and returns
|
244
|
-
<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on failure. Contrast with <a class="link" href="glib-Memory-Allocation.html#g-new" title="g_new()"><code class="function">g_new()</code></a>, which aborts the program on failure.
|
245
|
-
The returned pointer is cast to a pointer to the given type.
|
246
|
-
The function returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> when <em class="parameter"><code>n_structs</code></em> is 0 of if an overflow occurs.
|
247
|
-
</p>
|
248
|
-
<div class="variablelist"><table border="0">
|
249
|
-
<col align="left" valign="top">
|
250
|
-
<tbody>
|
251
|
-
<tr>
|
252
|
-
<td><p><span class="term"><em class="parameter"><code>struct_type</code></em> :</span></p></td>
|
253
|
-
<td>the type of the elements to allocate
|
254
|
-
</td>
|
255
|
-
</tr>
|
256
|
-
<tr>
|
257
|
-
<td><p><span class="term"><em class="parameter"><code>n_structs</code></em> :</span></p></td>
|
258
|
-
<td>the number of elements to allocate
|
259
|
-
</td>
|
260
|
-
</tr>
|
261
|
-
<tr>
|
262
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
263
|
-
<td> a pointer to the allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em>
|
264
|
-
</td>
|
265
|
-
</tr>
|
266
|
-
</tbody>
|
267
|
-
</table></div>
|
268
|
-
<p class="since">Since 2.8</p>
|
269
|
-
</div>
|
270
|
-
<hr>
|
271
|
-
<div class="refsect2">
|
272
|
-
<a name="g-try-new0"></a><h3>g_try_new0()</h3>
|
273
|
-
<pre class="programlisting">#define g_try_new0(struct_type, n_structs)</pre>
|
274
|
-
<p>
|
275
|
-
Attempts to allocate <em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>, initialized
|
276
|
-
to 0's, and returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on failure. Contrast with <a class="link" href="glib-Memory-Allocation.html#g-new0" title="g_new0()"><code class="function">g_new0()</code></a>, which aborts
|
277
|
-
the program on failure.
|
278
|
-
The returned pointer is cast to a pointer to the given type.
|
279
|
-
The function returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> when <em class="parameter"><code>n_structs</code></em> is 0 of if an overflow occurs.
|
280
|
-
</p>
|
281
|
-
<div class="variablelist"><table border="0">
|
282
|
-
<col align="left" valign="top">
|
283
|
-
<tbody>
|
284
|
-
<tr>
|
285
|
-
<td><p><span class="term"><em class="parameter"><code>struct_type</code></em> :</span></p></td>
|
286
|
-
<td>the type of the elements to allocate
|
287
|
-
</td>
|
288
|
-
</tr>
|
289
|
-
<tr>
|
290
|
-
<td><p><span class="term"><em class="parameter"><code>n_structs</code></em> :</span></p></td>
|
291
|
-
<td>the number of elements to allocate
|
292
|
-
</td>
|
293
|
-
</tr>
|
294
|
-
<tr>
|
295
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
296
|
-
<td> a pointer to the allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em>
|
297
|
-
</td>
|
298
|
-
</tr>
|
299
|
-
</tbody>
|
300
|
-
</table></div>
|
301
|
-
<p class="since">Since 2.8</p>
|
302
|
-
</div>
|
303
|
-
<hr>
|
304
|
-
<div class="refsect2">
|
305
|
-
<a name="g-try-renew"></a><h3>g_try_renew()</h3>
|
306
|
-
<pre class="programlisting">#define g_try_renew(struct_type, mem, n_structs)</pre>
|
307
|
-
<p>
|
308
|
-
Attempts to reallocate the memory pointed to by <em class="parameter"><code>mem</code></em>, so that it now has
|
309
|
-
space for <em class="parameter"><code>n_structs</code></em> elements of type <em class="parameter"><code>struct_type</code></em>, and returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on
|
310
|
-
failure. Contrast with <a class="link" href="glib-Memory-Allocation.html#g-renew" title="g_renew()"><code class="function">g_renew()</code></a>, which aborts the program on failure.
|
311
|
-
It returns the new address of the memory, which may have been moved.
|
312
|
-
The function returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if an overflow occurs.
|
313
|
-
</p>
|
314
|
-
<div class="variablelist"><table border="0">
|
315
|
-
<col align="left" valign="top">
|
316
|
-
<tbody>
|
317
|
-
<tr>
|
318
|
-
<td><p><span class="term"><em class="parameter"><code>struct_type</code></em> :</span></p></td>
|
319
|
-
<td>the type of the elements to allocate
|
320
|
-
</td>
|
321
|
-
</tr>
|
322
|
-
<tr>
|
323
|
-
<td><p><span class="term"><em class="parameter"><code>mem</code></em> :</span></p></td>
|
324
|
-
<td>the currently allocated memory
|
325
|
-
</td>
|
326
|
-
</tr>
|
327
|
-
<tr>
|
328
|
-
<td><p><span class="term"><em class="parameter"><code>n_structs</code></em> :</span></p></td>
|
329
|
-
<td>the number of elements to allocate
|
330
|
-
</td>
|
331
|
-
</tr>
|
332
|
-
<tr>
|
333
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
334
|
-
<td> a pointer to the new allocated memory, cast to a pointer to <em class="parameter"><code>struct_type</code></em>
|
335
|
-
</td>
|
336
|
-
</tr>
|
337
|
-
</tbody>
|
338
|
-
</table></div>
|
339
|
-
<p class="since">Since 2.8</p>
|
340
|
-
</div>
|
341
|
-
<hr>
|
342
|
-
<div class="refsect2">
|
343
|
-
<a name="g-malloc"></a><h3>g_malloc ()</h3>
|
344
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_malloc (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);</pre>
|
345
|
-
<p>
|
346
|
-
Allocates <em class="parameter"><code>n_bytes</code></em> bytes of memory.
|
347
|
-
If <em class="parameter"><code>n_bytes</code></em> is 0 it returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
348
|
-
</p>
|
349
|
-
<div class="variablelist"><table border="0">
|
350
|
-
<col align="left" valign="top">
|
351
|
-
<tbody>
|
352
|
-
<tr>
|
353
|
-
<td><p><span class="term"><em class="parameter"><code>n_bytes</code></em> :</span></p></td>
|
354
|
-
<td>the number of bytes to allocate
|
355
|
-
</td>
|
356
|
-
</tr>
|
357
|
-
<tr>
|
358
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
359
|
-
<td> a pointer to the allocated memory
|
360
|
-
</td>
|
361
|
-
</tr>
|
362
|
-
</tbody>
|
363
|
-
</table></div>
|
364
|
-
</div>
|
365
|
-
<hr>
|
366
|
-
<div class="refsect2">
|
367
|
-
<a name="g-malloc0"></a><h3>g_malloc0 ()</h3>
|
368
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_malloc0 (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);</pre>
|
369
|
-
<p>
|
370
|
-
Allocates <em class="parameter"><code>n_bytes</code></em> bytes of memory, initialized to 0's.
|
371
|
-
If <em class="parameter"><code>n_bytes</code></em> is 0 it returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
372
|
-
</p>
|
373
|
-
<div class="variablelist"><table border="0">
|
374
|
-
<col align="left" valign="top">
|
375
|
-
<tbody>
|
376
|
-
<tr>
|
377
|
-
<td><p><span class="term"><em class="parameter"><code>n_bytes</code></em> :</span></p></td>
|
378
|
-
<td>the number of bytes to allocate
|
379
|
-
</td>
|
380
|
-
</tr>
|
381
|
-
<tr>
|
382
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
383
|
-
<td> a pointer to the allocated memory
|
384
|
-
</td>
|
385
|
-
</tr>
|
386
|
-
</tbody>
|
387
|
-
</table></div>
|
388
|
-
</div>
|
389
|
-
<hr>
|
390
|
-
<div class="refsect2">
|
391
|
-
<a name="g-realloc"></a><h3>g_realloc ()</h3>
|
392
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_realloc (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>,
|
393
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);</pre>
|
394
|
-
<p>
|
395
|
-
Reallocates the memory pointed to by <em class="parameter"><code>mem</code></em>, so that it now has space for
|
396
|
-
<em class="parameter"><code>n_bytes</code></em> bytes of memory. It returns the new address of the memory, which may
|
397
|
-
have been moved. <em class="parameter"><code>mem</code></em> may be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, in which case it's considered to
|
398
|
-
have zero-length. <em class="parameter"><code>n_bytes</code></em> may be 0, in which case <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> will be returned
|
399
|
-
and <em class="parameter"><code>mem</code></em> will be freed unless it is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
400
|
-
</p>
|
401
|
-
<div class="variablelist"><table border="0">
|
402
|
-
<col align="left" valign="top">
|
403
|
-
<tbody>
|
404
|
-
<tr>
|
405
|
-
<td><p><span class="term"><em class="parameter"><code>mem</code></em> :</span></p></td>
|
406
|
-
<td>the memory to reallocate
|
407
|
-
</td>
|
408
|
-
</tr>
|
409
|
-
<tr>
|
410
|
-
<td><p><span class="term"><em class="parameter"><code>n_bytes</code></em> :</span></p></td>
|
411
|
-
<td>new size of the memory in bytes
|
412
|
-
</td>
|
413
|
-
</tr>
|
414
|
-
<tr>
|
415
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
416
|
-
<td> the new address of the allocated memory
|
417
|
-
</td>
|
418
|
-
</tr>
|
419
|
-
</tbody>
|
420
|
-
</table></div>
|
421
|
-
</div>
|
422
|
-
<hr>
|
423
|
-
<div class="refsect2">
|
424
|
-
<a name="g-try-malloc"></a><h3>g_try_malloc ()</h3>
|
425
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_try_malloc (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);</pre>
|
426
|
-
<p>
|
427
|
-
Attempts to allocate <em class="parameter"><code>n_bytes</code></em>, and returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on failure.
|
428
|
-
Contrast with <a class="link" href="glib-Memory-Allocation.html#g-malloc" title="g_malloc ()"><code class="function">g_malloc()</code></a>, which aborts the program on failure.
|
429
|
-
</p>
|
430
|
-
<div class="variablelist"><table border="0">
|
431
|
-
<col align="left" valign="top">
|
432
|
-
<tbody>
|
433
|
-
<tr>
|
434
|
-
<td><p><span class="term"><em class="parameter"><code>n_bytes</code></em> :</span></p></td>
|
435
|
-
<td>number of bytes to allocate.
|
436
|
-
</td>
|
437
|
-
</tr>
|
438
|
-
<tr>
|
439
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
440
|
-
<td> the allocated memory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
441
|
-
</td>
|
442
|
-
</tr>
|
443
|
-
</tbody>
|
444
|
-
</table></div>
|
445
|
-
</div>
|
446
|
-
<hr>
|
447
|
-
<div class="refsect2">
|
448
|
-
<a name="g-try-malloc0"></a><h3>g_try_malloc0 ()</h3>
|
449
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_try_malloc0 (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);</pre>
|
450
|
-
<p>
|
451
|
-
Attempts to allocate <em class="parameter"><code>n_bytes</code></em>, initialized to 0's, and returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on
|
452
|
-
failure. Contrast with <a class="link" href="glib-Memory-Allocation.html#g-malloc0" title="g_malloc0 ()"><code class="function">g_malloc0()</code></a>, which aborts the program on failure.
|
453
|
-
</p>
|
454
|
-
<div class="variablelist"><table border="0">
|
455
|
-
<col align="left" valign="top">
|
456
|
-
<tbody>
|
457
|
-
<tr>
|
458
|
-
<td><p><span class="term"><em class="parameter"><code>n_bytes</code></em> :</span></p></td>
|
459
|
-
<td>number of bytes to allocate
|
460
|
-
</td>
|
461
|
-
</tr>
|
462
|
-
<tr>
|
463
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
464
|
-
<td> the allocated memory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
465
|
-
</td>
|
466
|
-
</tr>
|
467
|
-
</tbody>
|
468
|
-
</table></div>
|
469
|
-
<p class="since">Since 2.8</p>
|
470
|
-
</div>
|
471
|
-
<hr>
|
472
|
-
<div class="refsect2">
|
473
|
-
<a name="g-try-realloc"></a><h3>g_try_realloc ()</h3>
|
474
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_try_realloc (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>,
|
475
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_bytes</code></em>);</pre>
|
476
|
-
<p>
|
477
|
-
Attempts to realloc <em class="parameter"><code>mem</code></em> to a new size, <em class="parameter"><code>n_bytes</code></em>, and returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
478
|
-
on failure. Contrast with <a class="link" href="glib-Memory-Allocation.html#g-realloc" title="g_realloc ()"><code class="function">g_realloc()</code></a>, which aborts the program
|
479
|
-
on failure. If <em class="parameter"><code>mem</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, behaves the same as <a class="link" href="glib-Memory-Allocation.html#g-try-malloc" title="g_try_malloc ()"><code class="function">g_try_malloc()</code></a>.
|
480
|
-
</p>
|
481
|
-
<div class="variablelist"><table border="0">
|
482
|
-
<col align="left" valign="top">
|
483
|
-
<tbody>
|
484
|
-
<tr>
|
485
|
-
<td><p><span class="term"><em class="parameter"><code>mem</code></em> :</span></p></td>
|
486
|
-
<td>previously-allocated memory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
487
|
-
</td>
|
488
|
-
</tr>
|
489
|
-
<tr>
|
490
|
-
<td><p><span class="term"><em class="parameter"><code>n_bytes</code></em> :</span></p></td>
|
491
|
-
<td>number of bytes to allocate.
|
492
|
-
</td>
|
493
|
-
</tr>
|
494
|
-
<tr>
|
495
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
496
|
-
<td> the allocated memory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
497
|
-
</td>
|
498
|
-
</tr>
|
499
|
-
</tbody>
|
500
|
-
</table></div>
|
501
|
-
</div>
|
502
|
-
<hr>
|
503
|
-
<div class="refsect2">
|
504
|
-
<a name="g-malloc-n"></a><h3>g_malloc_n ()</h3>
|
505
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_malloc_n (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
506
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);</pre>
|
507
|
-
<p>
|
508
|
-
This function is similar to <a class="link" href="glib-Memory-Allocation.html#g-malloc" title="g_malloc ()"><code class="function">g_malloc()</code></a>, allocating (<em class="parameter"><code>n_blocks</code></em> * <em class="parameter"><code>n_block_bytes</code></em>) bytes,
|
509
|
-
but care is taken to detect possible overflow during multiplication.
|
510
|
-
</p>
|
511
|
-
<div class="variablelist"><table border="0">
|
512
|
-
<col align="left" valign="top">
|
513
|
-
<tbody>
|
514
|
-
<tr>
|
515
|
-
<td><p><span class="term"><em class="parameter"><code>n_blocks</code></em> :</span></p></td>
|
516
|
-
<td>the number of blocks to allocate
|
517
|
-
</td>
|
518
|
-
</tr>
|
519
|
-
<tr>
|
520
|
-
<td><p><span class="term"><em class="parameter"><code>n_block_bytes</code></em> :</span></p></td>
|
521
|
-
<td>the size of each block in bytes
|
522
|
-
</td>
|
523
|
-
</tr>
|
524
|
-
<tr>
|
525
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
526
|
-
<td> a pointer to the allocated memory
|
527
|
-
</td>
|
528
|
-
</tr>
|
529
|
-
</tbody>
|
530
|
-
</table></div>
|
531
|
-
<p class="since">Since 2.24</p>
|
532
|
-
</div>
|
533
|
-
<hr>
|
534
|
-
<div class="refsect2">
|
535
|
-
<a name="g-malloc0-n"></a><h3>g_malloc0_n ()</h3>
|
536
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_malloc0_n (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
537
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);</pre>
|
538
|
-
<p>
|
539
|
-
This function is similar to <a class="link" href="glib-Memory-Allocation.html#g-malloc0" title="g_malloc0 ()"><code class="function">g_malloc0()</code></a>, allocating (<em class="parameter"><code>n_blocks</code></em> * <em class="parameter"><code>n_block_bytes</code></em>) bytes,
|
540
|
-
but care is taken to detect possible overflow during multiplication.
|
541
|
-
</p>
|
542
|
-
<div class="variablelist"><table border="0">
|
543
|
-
<col align="left" valign="top">
|
544
|
-
<tbody>
|
545
|
-
<tr>
|
546
|
-
<td><p><span class="term"><em class="parameter"><code>n_blocks</code></em> :</span></p></td>
|
547
|
-
<td>the number of blocks to allocate
|
548
|
-
</td>
|
549
|
-
</tr>
|
550
|
-
<tr>
|
551
|
-
<td><p><span class="term"><em class="parameter"><code>n_block_bytes</code></em> :</span></p></td>
|
552
|
-
<td>the size of each block in bytes
|
553
|
-
</td>
|
554
|
-
</tr>
|
555
|
-
<tr>
|
556
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
557
|
-
<td> a pointer to the allocated memory
|
558
|
-
</td>
|
559
|
-
</tr>
|
560
|
-
</tbody>
|
561
|
-
</table></div>
|
562
|
-
<p class="since">Since 2.24</p>
|
563
|
-
</div>
|
564
|
-
<hr>
|
565
|
-
<div class="refsect2">
|
566
|
-
<a name="g-realloc-n"></a><h3>g_realloc_n ()</h3>
|
567
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_realloc_n (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>,
|
568
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
569
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);</pre>
|
570
|
-
<p>
|
571
|
-
This function is similar to <a class="link" href="glib-Memory-Allocation.html#g-realloc" title="g_realloc ()"><code class="function">g_realloc()</code></a>, allocating (<em class="parameter"><code>n_blocks</code></em> * <em class="parameter"><code>n_block_bytes</code></em>) bytes,
|
572
|
-
but care is taken to detect possible overflow during multiplication.
|
573
|
-
</p>
|
574
|
-
<div class="variablelist"><table border="0">
|
575
|
-
<col align="left" valign="top">
|
576
|
-
<tbody>
|
577
|
-
<tr>
|
578
|
-
<td><p><span class="term"><em class="parameter"><code>mem</code></em> :</span></p></td>
|
579
|
-
<td>the memory to reallocate
|
580
|
-
</td>
|
581
|
-
</tr>
|
582
|
-
<tr>
|
583
|
-
<td><p><span class="term"><em class="parameter"><code>n_blocks</code></em> :</span></p></td>
|
584
|
-
<td>the number of blocks to allocate
|
585
|
-
</td>
|
586
|
-
</tr>
|
587
|
-
<tr>
|
588
|
-
<td><p><span class="term"><em class="parameter"><code>n_block_bytes</code></em> :</span></p></td>
|
589
|
-
<td>the size of each block in bytes
|
590
|
-
</td>
|
591
|
-
</tr>
|
592
|
-
<tr>
|
593
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
594
|
-
<td> the new address of the allocated memory
|
595
|
-
</td>
|
596
|
-
</tr>
|
597
|
-
</tbody>
|
598
|
-
</table></div>
|
599
|
-
<p class="since">Since 2.24</p>
|
600
|
-
</div>
|
601
|
-
<hr>
|
602
|
-
<div class="refsect2">
|
603
|
-
<a name="g-try-malloc-n"></a><h3>g_try_malloc_n ()</h3>
|
604
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_try_malloc_n (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
605
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);</pre>
|
606
|
-
<p>
|
607
|
-
This function is similar to <a class="link" href="glib-Memory-Allocation.html#g-try-malloc" title="g_try_malloc ()"><code class="function">g_try_malloc()</code></a>, allocating (<em class="parameter"><code>n_blocks</code></em> * <em class="parameter"><code>n_block_bytes</code></em>) bytes,
|
608
|
-
but care is taken to detect possible overflow during multiplication.
|
609
|
-
</p>
|
610
|
-
<div class="variablelist"><table border="0">
|
611
|
-
<col align="left" valign="top">
|
612
|
-
<tbody>
|
613
|
-
<tr>
|
614
|
-
<td><p><span class="term"><em class="parameter"><code>n_blocks</code></em> :</span></p></td>
|
615
|
-
<td>the number of blocks to allocate
|
616
|
-
</td>
|
617
|
-
</tr>
|
618
|
-
<tr>
|
619
|
-
<td><p><span class="term"><em class="parameter"><code>n_block_bytes</code></em> :</span></p></td>
|
620
|
-
<td>the size of each block in bytes
|
621
|
-
</td>
|
622
|
-
</tr>
|
623
|
-
<tr>
|
624
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
625
|
-
<td> the allocated memory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
626
|
-
</td>
|
627
|
-
</tr>
|
628
|
-
</tbody>
|
629
|
-
</table></div>
|
630
|
-
<p class="since">Since 2.24</p>
|
631
|
-
</div>
|
632
|
-
<hr>
|
633
|
-
<div class="refsect2">
|
634
|
-
<a name="g-try-malloc0-n"></a><h3>g_try_malloc0_n ()</h3>
|
635
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_try_malloc0_n (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
636
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);</pre>
|
637
|
-
<p>
|
638
|
-
This function is similar to <a class="link" href="glib-Memory-Allocation.html#g-try-malloc0" title="g_try_malloc0 ()"><code class="function">g_try_malloc0()</code></a>, allocating (<em class="parameter"><code>n_blocks</code></em> * <em class="parameter"><code>n_block_bytes</code></em>) bytes,
|
639
|
-
but care is taken to detect possible overflow during multiplication.
|
640
|
-
</p>
|
641
|
-
<div class="variablelist"><table border="0">
|
642
|
-
<col align="left" valign="top">
|
643
|
-
<tbody>
|
644
|
-
<tr>
|
645
|
-
<td><p><span class="term"><em class="parameter"><code>n_blocks</code></em> :</span></p></td>
|
646
|
-
<td>the number of blocks to allocate
|
647
|
-
</td>
|
648
|
-
</tr>
|
649
|
-
<tr>
|
650
|
-
<td><p><span class="term"><em class="parameter"><code>n_block_bytes</code></em> :</span></p></td>
|
651
|
-
<td>the size of each block in bytes
|
652
|
-
</td>
|
653
|
-
</tr>
|
654
|
-
<tr>
|
655
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
656
|
-
<td> the allocated memory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
657
|
-
</td>
|
658
|
-
</tr>
|
659
|
-
</tbody>
|
660
|
-
</table></div>
|
661
|
-
<p class="since">Since 2.24</p>
|
662
|
-
</div>
|
663
|
-
<hr>
|
664
|
-
<div class="refsect2">
|
665
|
-
<a name="g-try-realloc-n"></a><h3>g_try_realloc_n ()</h3>
|
666
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_try_realloc_n (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>,
|
667
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_blocks</code></em>,
|
668
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n_block_bytes</code></em>);</pre>
|
669
|
-
<p>
|
670
|
-
This function is similar to <a class="link" href="glib-Memory-Allocation.html#g-try-realloc" title="g_try_realloc ()"><code class="function">g_try_realloc()</code></a>, allocating (<em class="parameter"><code>n_blocks</code></em> * <em class="parameter"><code>n_block_bytes</code></em>) bytes,
|
671
|
-
but care is taken to detect possible overflow during multiplication.
|
672
|
-
</p>
|
673
|
-
<div class="variablelist"><table border="0">
|
674
|
-
<col align="left" valign="top">
|
675
|
-
<tbody>
|
676
|
-
<tr>
|
677
|
-
<td><p><span class="term"><em class="parameter"><code>mem</code></em> :</span></p></td>
|
678
|
-
<td>previously-allocated memory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
679
|
-
</td>
|
680
|
-
</tr>
|
681
|
-
<tr>
|
682
|
-
<td><p><span class="term"><em class="parameter"><code>n_blocks</code></em> :</span></p></td>
|
683
|
-
<td>the number of blocks to allocate
|
684
|
-
</td>
|
685
|
-
</tr>
|
686
|
-
<tr>
|
687
|
-
<td><p><span class="term"><em class="parameter"><code>n_block_bytes</code></em> :</span></p></td>
|
688
|
-
<td>the size of each block in bytes
|
689
|
-
</td>
|
690
|
-
</tr>
|
691
|
-
<tr>
|
692
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
693
|
-
<td> the allocated memory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
694
|
-
</td>
|
695
|
-
</tr>
|
696
|
-
</tbody>
|
697
|
-
</table></div>
|
698
|
-
<p class="since">Since 2.24</p>
|
699
|
-
</div>
|
700
|
-
<hr>
|
701
|
-
<div class="refsect2">
|
702
|
-
<a name="g-free"></a><h3>g_free ()</h3>
|
703
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_free (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>);</pre>
|
704
|
-
<p>
|
705
|
-
Frees the memory pointed to by <em class="parameter"><code>mem</code></em>.
|
706
|
-
If <em class="parameter"><code>mem</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> it simply returns.
|
707
|
-
</p>
|
708
|
-
<div class="variablelist"><table border="0">
|
709
|
-
<col align="left" valign="top">
|
710
|
-
<tbody><tr>
|
711
|
-
<td><p><span class="term"><em class="parameter"><code>mem</code></em> :</span></p></td>
|
712
|
-
<td>the memory to free
|
713
|
-
</td>
|
714
|
-
</tr></tbody>
|
715
|
-
</table></div>
|
716
|
-
</div>
|
717
|
-
<hr>
|
718
|
-
<div class="refsect2">
|
719
|
-
<a name="g-mem-gc-friendly"></a><h3>g_mem_gc_friendly</h3>
|
720
|
-
<pre class="programlisting">extern gboolean g_mem_gc_friendly;
|
721
|
-
</pre>
|
722
|
-
<p>
|
723
|
-
This variable is <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the <code class="envar">G_DEBUG</code> environment variable
|
724
|
-
includes the key <a class="link" href="glib-running.html#G_DEBUG" title="G_DEBUG">gc-friendly</a>.
|
725
|
-
</p>
|
726
|
-
</div>
|
727
|
-
<hr>
|
728
|
-
<div class="refsect2">
|
729
|
-
<a name="g-alloca"></a><h3>g_alloca()</h3>
|
730
|
-
<pre class="programlisting">#define g_alloca(size)</pre>
|
731
|
-
<p>
|
732
|
-
Allocates <em class="parameter"><code>size</code></em> bytes on the stack; these bytes will be freed when the current
|
733
|
-
stack frame is cleaned up. This macro essentially just wraps the <code class="function">alloca()</code>
|
734
|
-
function present on most UNIX variants.
|
735
|
-
Thus it provides the same advantages and pitfalls as <code class="function">alloca()</code>:
|
736
|
-
</p>
|
737
|
-
<div class="variablelist"><table border="0">
|
738
|
-
<col align="left" valign="top">
|
739
|
-
<tbody>
|
740
|
-
<tr>
|
741
|
-
<td><p><span class="term"></span></p></td>
|
742
|
-
<td><p>
|
743
|
-
+ <code class="function">alloca()</code> is very fast, as on most systems it's implemented by just adjusting
|
744
|
-
the stack pointer register.
|
745
|
-
</p></td>
|
746
|
-
</tr>
|
747
|
-
<tr>
|
748
|
-
<td><p><span class="term"></span></p></td>
|
749
|
-
<td><p>
|
750
|
-
+ It doesn't cause any memory fragmentation, within its scope, separate <code class="function">alloca()</code>
|
751
|
-
blocks just build up and are released together at function end.
|
752
|
-
</p></td>
|
753
|
-
</tr>
|
754
|
-
<tr>
|
755
|
-
<td><p><span class="term"></span></p></td>
|
756
|
-
<td><p>
|
757
|
-
- Allocation sizes have to fit into the current stack frame. For instance in a
|
758
|
-
threaded environment on Linux, the per-thread stack size is limited to 2 Megabytes,
|
759
|
-
so be sparse with <code class="function">alloca()</code> uses.
|
760
|
-
</p></td>
|
761
|
-
</tr>
|
762
|
-
<tr>
|
763
|
-
<td><p><span class="term"></span></p></td>
|
764
|
-
<td><p>
|
765
|
-
- Allocation failure due to insufficient stack space is not indicated with a <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
766
|
-
return like e.g. with <code class="function">malloc()</code>. Instead, most systems probably handle it the same
|
767
|
-
way as out of stack space situations from infinite function recursion, i.e.
|
768
|
-
with a segmentation fault.
|
769
|
-
</p></td>
|
770
|
-
</tr>
|
771
|
-
<tr>
|
772
|
-
<td><p><span class="term"></span></p></td>
|
773
|
-
<td><p>
|
774
|
-
- Special care has to be taken when mixing <code class="function">alloca()</code> with GNU C variable sized arrays.
|
775
|
-
Stack space allocated with <code class="function">alloca()</code> in the same scope as a variable sized array
|
776
|
-
will be freed together with the variable sized array upon exit of that scope, and
|
777
|
-
not upon exit of the enclosing function scope.
|
778
|
-
</p></td>
|
779
|
-
</tr>
|
780
|
-
</tbody>
|
781
|
-
</table></div>
|
782
|
-
<p>
|
783
|
-
</p>
|
784
|
-
<div class="variablelist"><table border="0">
|
785
|
-
<col align="left" valign="top">
|
786
|
-
<tbody>
|
787
|
-
<tr>
|
788
|
-
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
789
|
-
<td>number of bytes to allocate.
|
790
|
-
</td>
|
791
|
-
</tr>
|
792
|
-
<tr>
|
793
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
794
|
-
<td> space for <em class="parameter"><code>size</code></em> bytes, allocated on the stack
|
795
|
-
</td>
|
796
|
-
</tr>
|
797
|
-
</tbody>
|
798
|
-
</table></div>
|
799
|
-
</div>
|
800
|
-
<hr>
|
801
|
-
<div class="refsect2">
|
802
|
-
<a name="g-newa"></a><h3>g_newa()</h3>
|
803
|
-
<pre class="programlisting">#define g_newa(struct_type, n_structs)</pre>
|
804
|
-
<p>
|
805
|
-
Wraps <a class="link" href="glib-Memory-Allocation.html#g-alloca" title="g_alloca()"><code class="function">g_alloca()</code></a> in a more typesafe manner.
|
806
|
-
</p>
|
807
|
-
<div class="variablelist"><table border="0">
|
808
|
-
<col align="left" valign="top">
|
809
|
-
<tbody>
|
810
|
-
<tr>
|
811
|
-
<td><p><span class="term"><em class="parameter"><code>struct_type</code></em> :</span></p></td>
|
812
|
-
<td>Type of memory chunks to be allocated
|
813
|
-
</td>
|
814
|
-
</tr>
|
815
|
-
<tr>
|
816
|
-
<td><p><span class="term"><em class="parameter"><code>n_structs</code></em> :</span></p></td>
|
817
|
-
<td>Number of chunks to be allocated
|
818
|
-
</td>
|
819
|
-
</tr>
|
820
|
-
<tr>
|
821
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
822
|
-
<td> Pointer to stack space for <em class="parameter"><code>n_structs</code></em> chunks of type <em class="parameter"><code>struct_type</code></em>
|
823
|
-
</td>
|
824
|
-
</tr>
|
825
|
-
</tbody>
|
826
|
-
</table></div>
|
827
|
-
</div>
|
828
|
-
<hr>
|
829
|
-
<div class="refsect2">
|
830
|
-
<a name="g-memmove"></a><h3>g_memmove()</h3>
|
831
|
-
<pre class="programlisting">#define g_memmove(dest,src,len)</pre>
|
832
|
-
<p>
|
833
|
-
Copies a block of memory <em class="parameter"><code>len</code></em> bytes long, from <em class="parameter"><code>src</code></em> to <em class="parameter"><code>dest</code></em>.
|
834
|
-
The source and destination areas may overlap.
|
835
|
-
</p>
|
836
|
-
<p>
|
837
|
-
In order to use this function, you must include
|
838
|
-
<code class="filename">string.h</code> yourself, because this macro will
|
839
|
-
typically simply resolve to <code class="function">memmove()</code> and GLib does not include
|
840
|
-
<code class="filename">string.h</code> for you.
|
841
|
-
</p>
|
842
|
-
<div class="variablelist"><table border="0">
|
843
|
-
<col align="left" valign="top">
|
844
|
-
<tbody>
|
845
|
-
<tr>
|
846
|
-
<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td>
|
847
|
-
<td>the destination address to copy the bytes to.
|
848
|
-
</td>
|
849
|
-
</tr>
|
850
|
-
<tr>
|
851
|
-
<td><p><span class="term"><em class="parameter"><code>src</code></em> :</span></p></td>
|
852
|
-
<td>the source address to copy the bytes from.
|
853
|
-
</td>
|
854
|
-
</tr>
|
855
|
-
<tr>
|
856
|
-
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
857
|
-
<td>the number of bytes to copy.
|
858
|
-
</td>
|
859
|
-
</tr>
|
860
|
-
</tbody>
|
861
|
-
</table></div>
|
862
|
-
</div>
|
863
|
-
<hr>
|
864
|
-
<div class="refsect2">
|
865
|
-
<a name="g-memdup"></a><h3>g_memdup ()</h3>
|
866
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_memdup (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> mem</code></em>,
|
867
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> byte_size</code></em>);</pre>
|
868
|
-
<p>
|
869
|
-
Allocates <em class="parameter"><code>byte_size</code></em> bytes of memory, and copies <em class="parameter"><code>byte_size</code></em> bytes into it
|
870
|
-
from <em class="parameter"><code>mem</code></em>. If <em class="parameter"><code>mem</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> it returns <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
871
|
-
</p>
|
872
|
-
<div class="variablelist"><table border="0">
|
873
|
-
<col align="left" valign="top">
|
874
|
-
<tbody>
|
875
|
-
<tr>
|
876
|
-
<td><p><span class="term"><em class="parameter"><code>mem</code></em> :</span></p></td>
|
877
|
-
<td>the memory to copy.
|
878
|
-
</td>
|
879
|
-
</tr>
|
880
|
-
<tr>
|
881
|
-
<td><p><span class="term"><em class="parameter"><code>byte_size</code></em> :</span></p></td>
|
882
|
-
<td>the number of bytes to copy.
|
883
|
-
</td>
|
884
|
-
</tr>
|
885
|
-
<tr>
|
886
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
887
|
-
<td> a pointer to the newly-allocated copy of the memory, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if <em class="parameter"><code>mem</code></em>
|
888
|
-
is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
889
|
-
</td>
|
890
|
-
</tr>
|
891
|
-
</tbody>
|
892
|
-
</table></div>
|
893
|
-
</div>
|
894
|
-
<hr>
|
895
|
-
<div class="refsect2">
|
896
|
-
<a name="GMemVTable"></a><h3>GMemVTable</h3>
|
897
|
-
<pre class="programlisting">typedef struct {
|
898
|
-
gpointer (*malloc) (gsize n_bytes);
|
899
|
-
gpointer (*realloc) (gpointer mem,
|
900
|
-
gsize n_bytes);
|
901
|
-
void (*free) (gpointer mem);
|
902
|
-
/* optional; set to NULL if not used ! */
|
903
|
-
gpointer (*calloc) (gsize n_blocks,
|
904
|
-
gsize n_block_bytes);
|
905
|
-
gpointer (*try_malloc) (gsize n_bytes);
|
906
|
-
gpointer (*try_realloc) (gpointer mem,
|
907
|
-
gsize n_bytes);
|
908
|
-
} GMemVTable;
|
909
|
-
</pre>
|
910
|
-
<p>
|
911
|
-
A set of functions used to perform memory allocation. The same <a class="link" href="glib-Memory-Allocation.html#GMemVTable" title="GMemVTable"><span class="type">GMemVTable</span></a> must
|
912
|
-
be used for all allocations in the same program; a call to <a class="link" href="glib-Memory-Allocation.html#g-mem-set-vtable" title="g_mem_set_vtable ()"><code class="function">g_mem_set_vtable()</code></a>,
|
913
|
-
if it exists, should be prior to any use of GLib.
|
914
|
-
</p>
|
915
|
-
<div class="variablelist"><table border="0">
|
916
|
-
<col align="left" valign="top">
|
917
|
-
<tbody>
|
918
|
-
<tr>
|
919
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GMemVTable.malloc"></a>malloc</code></em> ()</span></p></td>
|
920
|
-
<td>function to use for allocating memory.
|
921
|
-
</td>
|
922
|
-
</tr>
|
923
|
-
<tr>
|
924
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GMemVTable.realloc"></a>realloc</code></em> ()</span></p></td>
|
925
|
-
<td>function to use for reallocating memory.
|
926
|
-
</td>
|
927
|
-
</tr>
|
928
|
-
<tr>
|
929
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GMemVTable.free"></a>free</code></em> ()</span></p></td>
|
930
|
-
<td>function to use to free memory.
|
931
|
-
</td>
|
932
|
-
</tr>
|
933
|
-
<tr>
|
934
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GMemVTable.calloc"></a>calloc</code></em> ()</span></p></td>
|
935
|
-
<td>function to use for allocating zero-filled memory.
|
936
|
-
</td>
|
937
|
-
</tr>
|
938
|
-
<tr>
|
939
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GMemVTable.try-malloc"></a>try_malloc</code></em> ()</span></p></td>
|
940
|
-
<td>function to use for allocating memory without a default error handler.
|
941
|
-
</td>
|
942
|
-
</tr>
|
943
|
-
<tr>
|
944
|
-
<td><p><span class="term"><em class="structfield"><code><a name="GMemVTable.try-realloc"></a>try_realloc</code></em> ()</span></p></td>
|
945
|
-
<td>function to use for reallocating memory without a default error handler.
|
946
|
-
</td>
|
947
|
-
</tr>
|
948
|
-
</tbody>
|
949
|
-
</table></div>
|
950
|
-
</div>
|
951
|
-
<hr>
|
952
|
-
<div class="refsect2">
|
953
|
-
<a name="g-mem-set-vtable"></a><h3>g_mem_set_vtable ()</h3>
|
954
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_mem_set_vtable (<em class="parameter"><code><a class="link" href="glib-Memory-Allocation.html#GMemVTable" title="GMemVTable"><span class="type">GMemVTable</span></a> *vtable</code></em>);</pre>
|
955
|
-
<p>
|
956
|
-
Sets the <a class="link" href="glib-Memory-Allocation.html#GMemVTable" title="GMemVTable"><span class="type">GMemVTable</span></a> to use for memory allocation. You can use this to provide
|
957
|
-
custom memory allocation routines. <span class="emphasis"><em>This function must be called
|
958
|
-
before using any other GLib functions.</em></span> The <em class="parameter"><code>vtable</code></em> only needs to
|
959
|
-
provide <code class="function">malloc()</code>, <code class="function">realloc()</code>, and <code class="function">free()</code> functions; GLib can provide default
|
960
|
-
implementations of the others. The <code class="function">malloc()</code> and <code class="function">realloc()</code> implementations
|
961
|
-
should return <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on failure, GLib will handle error-checking for you.
|
962
|
-
<em class="parameter"><code>vtable</code></em> is copied, so need not persist after this function has been called.
|
963
|
-
</p>
|
964
|
-
<div class="variablelist"><table border="0">
|
965
|
-
<col align="left" valign="top">
|
966
|
-
<tbody><tr>
|
967
|
-
<td><p><span class="term"><em class="parameter"><code>vtable</code></em> :</span></p></td>
|
968
|
-
<td>table of memory allocation routines.
|
969
|
-
</td>
|
970
|
-
</tr></tbody>
|
971
|
-
</table></div>
|
972
|
-
</div>
|
973
|
-
<hr>
|
974
|
-
<div class="refsect2">
|
975
|
-
<a name="g-mem-is-system-malloc"></a><h3>g_mem_is_system_malloc ()</h3>
|
976
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_mem_is_system_malloc (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
977
|
-
<p>
|
978
|
-
Checks whether the allocator used by <a class="link" href="glib-Memory-Allocation.html#g-malloc" title="g_malloc ()"><code class="function">g_malloc()</code></a> is the system's
|
979
|
-
malloc implementation. If it returns <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> memory allocated with
|
980
|
-
<code class="function">malloc()</code> can be used interchangeable with memory allocated using <a class="link" href="glib-Memory-Allocation.html#g-malloc" title="g_malloc ()"><code class="function">g_malloc()</code></a>.
|
981
|
-
This function is useful for avoiding an extra copy of allocated memory returned
|
982
|
-
by a non-GLib-based API.
|
983
|
-
</p>
|
984
|
-
<p>
|
985
|
-
A different allocator can be set using <a class="link" href="glib-Memory-Allocation.html#g-mem-set-vtable" title="g_mem_set_vtable ()"><code class="function">g_mem_set_vtable()</code></a>.
|
986
|
-
</p>
|
987
|
-
<div class="variablelist"><table border="0">
|
988
|
-
<col align="left" valign="top">
|
989
|
-
<tbody><tr>
|
990
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
991
|
-
<td> if <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>, <code class="function">malloc()</code> and <a class="link" href="glib-Memory-Allocation.html#g-malloc" title="g_malloc ()"><code class="function">g_malloc()</code></a> can be mixed.
|
992
|
-
</td>
|
993
|
-
</tr></tbody>
|
994
|
-
</table></div>
|
995
|
-
</div>
|
996
|
-
<hr>
|
997
|
-
<div class="refsect2">
|
998
|
-
<a name="glib-mem-profiler-table"></a><h3>glib_mem_profiler_table</h3>
|
999
|
-
<pre class="programlisting">extern GMemVTable *glib_mem_profiler_table;
|
1000
|
-
</pre>
|
1001
|
-
<p>
|
1002
|
-
A <a class="link" href="glib-Memory-Allocation.html#GMemVTable" title="GMemVTable"><span class="type">GMemVTable</span></a> containing profiling variants of the memory
|
1003
|
-
allocation functions. Use them together with <a class="link" href="glib-Memory-Allocation.html#g-mem-profile" title="g_mem_profile ()"><code class="function">g_mem_profile()</code></a>
|
1004
|
-
in order to get information about the memory allocation pattern
|
1005
|
-
of your program.
|
1006
|
-
</p>
|
1007
|
-
</div>
|
1008
|
-
<hr>
|
1009
|
-
<div class="refsect2">
|
1010
|
-
<a name="g-mem-profile"></a><h3>g_mem_profile ()</h3>
|
1011
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_mem_profile (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1012
|
-
<p>
|
1013
|
-
Outputs a summary of memory usage.
|
1014
|
-
</p>
|
1015
|
-
<p>
|
1016
|
-
It outputs the frequency of allocations of different sizes,
|
1017
|
-
the total number of bytes which have been allocated,
|
1018
|
-
the total number of bytes which have been freed,
|
1019
|
-
and the difference between the previous two values, i.e. the number of bytes
|
1020
|
-
still in use.
|
1021
|
-
</p>
|
1022
|
-
<p>
|
1023
|
-
Note that this function will not output anything unless you have
|
1024
|
-
previously installed the <a class="link" href="glib-Memory-Allocation.html#glib-mem-profiler-table" title="glib_mem_profiler_table"><span class="type">glib_mem_profiler_table</span></a> with <a class="link" href="glib-Memory-Allocation.html#g-mem-set-vtable" title="g_mem_set_vtable ()"><code class="function">g_mem_set_vtable()</code></a>.
|
1025
|
-
</p>
|
1026
|
-
</div>
|
1027
|
-
</div>
|
1028
|
-
</div>
|
1029
|
-
<div class="footer">
|
1030
|
-
<hr>
|
1031
|
-
Generated by GTK-Doc V1.15.1</div>
|
1032
|
-
</body>
|
1033
|
-
</html>
|