@revizly/sharp-libvips-dev 1.0.61 → 1.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cplusplus/VError.cpp +28 -0
- package/include/expat.h +13 -6
- package/include/expat_config.h +3 -3
- package/include/ffi.h +3 -3
- package/include/gio-unix-2.0/gio/gdesktopappinfo.h +40 -23
- package/include/gio-unix-2.0/gio/gunixmounts.h +3 -3
- package/include/glib-2.0/gio/gasyncinitable.h +32 -32
- package/include/glib-2.0/gio/gasyncresult.h +4 -4
- package/include/glib-2.0/gio/gbufferedinputstream.h +28 -28
- package/include/glib-2.0/gio/gbufferedoutputstream.h +3 -3
- package/include/glib-2.0/gio/gcancellable.h +6 -6
- package/include/glib-2.0/gio/gcharsetconverter.h +3 -3
- package/include/glib-2.0/gio/gconverter.h +16 -16
- package/include/glib-2.0/gio/gdatainputstream.h +3 -3
- package/include/glib-2.0/gio/gdataoutputstream.h +25 -25
- package/include/glib-2.0/gio/gfile.h +369 -369
- package/include/glib-2.0/gio/gfileattribute.h +4 -4
- package/include/glib-2.0/gio/gfileenumerator.h +18 -18
- package/include/glib-2.0/gio/gfileinfo.h +63 -63
- package/include/glib-2.0/gio/gfileinputstream.h +11 -11
- package/include/glib-2.0/gio/gfileiostream.h +11 -11
- package/include/glib-2.0/gio/gfilemonitor.h +1 -1
- package/include/glib-2.0/gio/gfileoutputstream.h +8 -8
- package/include/glib-2.0/gio/gicon.h +1 -1
- package/include/glib-2.0/gio/ginetaddress.h +1 -1
- package/include/glib-2.0/gio/ginetaddressmask.h +5 -5
- package/include/glib-2.0/gio/ginitable.h +16 -16
- package/include/glib-2.0/gio/ginputstream.h +47 -47
- package/include/glib-2.0/gio/gio-visibility.h +34 -0
- package/include/glib-2.0/gio/gioenums.h +3 -1
- package/include/glib-2.0/gio/giomodule.h +5 -5
- package/include/glib-2.0/gio/gioscheduler.h +10 -10
- package/include/glib-2.0/gio/giostream.h +16 -16
- package/include/glib-2.0/gio/giotypes.h +13 -12
- package/include/glib-2.0/gio/gloadableicon.h +13 -13
- package/include/glib-2.0/gio/gmemoryinputstream.h +1 -1
- package/include/glib-2.0/gio/gmountoperation.h +14 -14
- package/include/glib-2.0/gio/gnetworkaddress.h +5 -5
- package/include/glib-2.0/gio/gnetworkmonitor.h +10 -10
- package/include/glib-2.0/gio/gnetworkservice.h +2 -2
- package/include/glib-2.0/gio/goutputstream.h +76 -76
- package/include/glib-2.0/gio/gpollableinputstream.h +9 -9
- package/include/glib-2.0/gio/gpollableoutputstream.h +18 -18
- package/include/glib-2.0/gio/gpollableutils.h +18 -18
- package/include/glib-2.0/gio/gproxy.h +25 -25
- package/include/glib-2.0/gio/gproxyaddress.h +6 -6
- package/include/glib-2.0/gio/gproxyresolver.h +25 -25
- package/include/glib-2.0/gio/gresource.h +26 -26
- package/include/glib-2.0/gio/gseekable.h +16 -16
- package/include/glib-2.0/gio/gsimpleasyncresult.h +40 -40
- package/include/glib-2.0/gio/gsocket.h +103 -103
- package/include/glib-2.0/gio/gsocketaddress.h +2 -2
- package/include/glib-2.0/gio/gsocketaddressenumerator.h +14 -14
- package/include/glib-2.0/gio/gsocketclient.h +25 -25
- package/include/glib-2.0/gio/gsocketconnection.h +16 -16
- package/include/glib-2.0/gio/gsocketcontrolmessage.h +8 -8
- package/include/glib-2.0/gio/gsocketlistener.h +15 -15
- package/include/glib-2.0/gio/gsocketservice.h +1 -1
- package/include/glib-2.0/gio/gsrvtarget.h +3 -3
- package/include/glib-2.0/gio/gtcpconnection.h +1 -1
- package/include/glib-2.0/gio/gtcpwrapperconnection.h +1 -1
- package/include/glib-2.0/gio/gtlsbackend.h +1 -1
- package/include/glib-2.0/gio/gtlscertificate.h +10 -10
- package/include/glib-2.0/gio/gtlsclientconnection.h +5 -5
- package/include/glib-2.0/gio/gtlsconnection.h +23 -23
- package/include/glib-2.0/gio/gtlsserverconnection.h +2 -2
- package/include/glib-2.0/gio/gvfs.h +14 -14
- package/include/glib-2.0/gio/gvolume.h +8 -8
- package/include/glib-2.0/gio/gvolumemonitor.h +1 -1
- package/include/glib-2.0/gio/gzlibcompressor.h +1 -1
- package/include/glib-2.0/girepository/gi-visibility.h +34 -0
- package/include/glib-2.0/glib/deprecated/gmain.h +1 -1
- package/include/glib-2.0/glib/deprecated/grel.h +1 -1
- package/include/glib-2.0/glib/deprecated/gthread.h +1 -1
- package/include/glib-2.0/glib/galloca.h +2 -2
- package/include/glib-2.0/glib/garray.h +56 -56
- package/include/glib-2.0/glib/gbookmarkfile.h +93 -93
- package/include/glib-2.0/glib/gconvert.h +43 -43
- package/include/glib-2.0/glib/gdataset.h +14 -14
- package/include/glib-2.0/glib/gdate.h +17 -17
- package/include/glib-2.0/glib/gdir.h +2 -2
- package/include/glib-2.0/glib/gerror.h +1 -1
- package/include/glib-2.0/glib/ghook.h +103 -103
- package/include/glib-2.0/glib/giochannel.h +90 -90
- package/include/glib-2.0/glib/gkeyfile.h +112 -111
- package/include/glib-2.0/glib/glib-visibility.h +34 -0
- package/include/glib-2.0/glib/glist.h +37 -37
- package/include/glib-2.0/glib/gmacros.h +84 -27
- package/include/glib-2.0/glib/gmain.h +10 -10
- package/include/glib-2.0/glib/gmappedfile.h +4 -4
- package/include/glib-2.0/glib/gmarkup.h +2 -2
- package/include/glib-2.0/glib/gmem.h +68 -68
- package/include/glib-2.0/glib/gmessages.h +14 -14
- package/include/glib-2.0/glib/gnode.h +76 -76
- package/include/glib-2.0/glib/goption.h +45 -45
- package/include/glib-2.0/glib/gpattern.h +6 -6
- package/include/glib-2.0/glib/gpoll.h +6 -6
- package/include/glib-2.0/glib/gprimes.h +2 -2
- package/include/glib-2.0/glib/gprintf.h +10 -10
- package/include/glib-2.0/glib/gqsort.h +5 -5
- package/include/glib-2.0/glib/gquark.h +9 -5
- package/include/glib-2.0/glib/gqueue.h +1 -1
- package/include/glib-2.0/glib/grand.h +12 -12
- package/include/glib-2.0/glib/gscanner.h +138 -138
- package/include/glib-2.0/glib/gslice.h +15 -15
- package/include/glib-2.0/glib/gslist.h +34 -34
- package/include/glib-2.0/glib/gspawn.h +1 -1
- package/include/glib-2.0/glib/gstdio.h +16 -10
- package/include/glib-2.0/glib/gstrfuncs.h +63 -63
- package/include/glib-2.0/glib/gtestutils.h +2 -2
- package/include/glib-2.0/glib/gtimer.h +9 -9
- package/include/glib-2.0/glib/gtree.h +3 -3
- package/include/glib-2.0/glib/gtypes.h +166 -166
- package/include/glib-2.0/glib/gutils.h +35 -33
- package/include/glib-2.0/glib/gversionmacros.h +9 -0
- package/include/glib-2.0/glib-object.h +1 -1
- package/include/glib-2.0/glib.h +1 -1
- package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
- package/include/glib-2.0/gmodule.h +12 -12
- package/include/glib-2.0/gobject/gclosure.h +82 -82
- package/include/glib-2.0/gobject/genums.h +43 -43
- package/include/glib-2.0/gobject/gmarshal.h +2 -2
- package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
- package/include/glib-2.0/gobject/gobject.h +97 -97
- package/include/glib-2.0/gobject/gobjectnotifyqueue.c +12 -12
- package/include/glib-2.0/gobject/gparam.h +96 -96
- package/include/glib-2.0/gobject/gparamspecs.h +157 -157
- package/include/glib-2.0/gobject/gsignal.h +189 -189
- package/include/glib-2.0/gobject/gsourceclosure.h +1 -1
- package/include/glib-2.0/gobject/gtype.h +139 -139
- package/include/glib-2.0/gobject/gtypemodule.h +5 -5
- package/include/glib-2.0/gobject/gtypeplugin.h +32 -32
- package/include/glib-2.0/gobject/gvalue.h +34 -34
- package/include/glib-2.0/gobject/gvaluearray.h +21 -21
- package/include/glib-2.0/gobject/gvaluecollector.h +117 -117
- package/include/glib-2.0/gobject/gvaluetypes.h +74 -74
- package/include/harfbuzz/hb-font.h +22 -0
- package/include/harfbuzz/hb-ot-layout.h +11 -0
- package/include/harfbuzz/hb-version.h +2 -2
- package/include/libimagequant.h +4 -0
- package/include/vips/VError8.h +3 -4
- package/include/vips/VImage8.h +12 -0
- package/include/vips/util.h +15 -1
- package/package.json +1 -1
- package/versions.json +5 -5
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* This library is distributed in the hope that it will be useful,
|
|
12
12
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14
14
|
* Lesser General Public License for more details.
|
|
15
15
|
*
|
|
16
16
|
* You should have received a copy of the GNU Lesser General Public
|
|
@@ -50,7 +50,7 @@ GLIB_AVAILABLE_IN_ALL
|
|
|
50
50
|
GRand* g_rand_new_with_seed (guint32 seed);
|
|
51
51
|
GLIB_AVAILABLE_IN_ALL
|
|
52
52
|
GRand* g_rand_new_with_seed_array (const guint32 *seed,
|
|
53
|
-
|
|
53
|
+
guint seed_length);
|
|
54
54
|
GLIB_AVAILABLE_IN_ALL
|
|
55
55
|
GRand* g_rand_new (void);
|
|
56
56
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -59,11 +59,11 @@ GLIB_AVAILABLE_IN_ALL
|
|
|
59
59
|
GRand* g_rand_copy (GRand *rand_);
|
|
60
60
|
GLIB_AVAILABLE_IN_ALL
|
|
61
61
|
void g_rand_set_seed (GRand *rand_,
|
|
62
|
-
|
|
62
|
+
guint32 seed);
|
|
63
63
|
GLIB_AVAILABLE_IN_ALL
|
|
64
|
-
void
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
void g_rand_set_seed_array (GRand *rand_,
|
|
65
|
+
const guint32 *seed,
|
|
66
|
+
guint seed_length);
|
|
67
67
|
|
|
68
68
|
#define g_rand_boolean(rand_) ((g_rand_int (rand_) & (1 << 15)) != 0)
|
|
69
69
|
|
|
@@ -71,14 +71,14 @@ GLIB_AVAILABLE_IN_ALL
|
|
|
71
71
|
guint32 g_rand_int (GRand *rand_);
|
|
72
72
|
GLIB_AVAILABLE_IN_ALL
|
|
73
73
|
gint32 g_rand_int_range (GRand *rand_,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
gint32 begin,
|
|
75
|
+
gint32 end);
|
|
76
76
|
GLIB_AVAILABLE_IN_ALL
|
|
77
77
|
gdouble g_rand_double (GRand *rand_);
|
|
78
78
|
GLIB_AVAILABLE_IN_ALL
|
|
79
79
|
gdouble g_rand_double_range (GRand *rand_,
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
gdouble begin,
|
|
81
|
+
gdouble end);
|
|
82
82
|
GLIB_AVAILABLE_IN_ALL
|
|
83
83
|
void g_random_set_seed (guint32 seed);
|
|
84
84
|
|
|
@@ -88,12 +88,12 @@ GLIB_AVAILABLE_IN_ALL
|
|
|
88
88
|
guint32 g_random_int (void);
|
|
89
89
|
GLIB_AVAILABLE_IN_ALL
|
|
90
90
|
gint32 g_random_int_range (gint32 begin,
|
|
91
|
-
|
|
91
|
+
gint32 end);
|
|
92
92
|
GLIB_AVAILABLE_IN_ALL
|
|
93
93
|
gdouble g_random_double (void);
|
|
94
94
|
GLIB_AVAILABLE_IN_ALL
|
|
95
95
|
gdouble g_random_double_range (gdouble begin,
|
|
96
|
-
|
|
96
|
+
gdouble end);
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
G_END_DECLS
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* This library is distributed in the hope that it will be useful,
|
|
12
12
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14
14
|
* Lesser General Public License for more details.
|
|
15
15
|
*
|
|
16
16
|
* You should have received a copy of the GNU Lesser General Public
|
|
@@ -36,29 +36,29 @@
|
|
|
36
36
|
|
|
37
37
|
G_BEGIN_DECLS
|
|
38
38
|
|
|
39
|
-
typedef struct _GScanner
|
|
40
|
-
typedef struct _GScannerConfig
|
|
39
|
+
typedef struct _GScanner GScanner;
|
|
40
|
+
typedef struct _GScannerConfig GScannerConfig;
|
|
41
41
|
typedef union _GTokenValue GTokenValue;
|
|
42
42
|
|
|
43
|
-
typedef void
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
typedef void (*GScannerMsgFunc) (GScanner *scanner,
|
|
44
|
+
gchar *message,
|
|
45
|
+
gboolean error);
|
|
46
46
|
|
|
47
47
|
/* GScanner: Flexible lexical scanner for general purpose.
|
|
48
48
|
*/
|
|
49
49
|
|
|
50
50
|
/* Character sets */
|
|
51
|
-
#define G_CSET_A_2_Z
|
|
52
|
-
#define G_CSET_a_2_z
|
|
53
|
-
#define G_CSET_DIGITS
|
|
54
|
-
#define G_CSET_LATINC
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
#define G_CSET_LATINS
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
#define G_CSET_A_2_Z "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
52
|
+
#define G_CSET_a_2_z "abcdefghijklmnopqrstuvwxyz"
|
|
53
|
+
#define G_CSET_DIGITS "0123456789"
|
|
54
|
+
#define G_CSET_LATINC "\300\301\302\303\304\305\306"\
|
|
55
|
+
"\307\310\311\312\313\314\315\316\317\320"\
|
|
56
|
+
"\321\322\323\324\325\326"\
|
|
57
|
+
"\330\331\332\333\334\335\336"
|
|
58
|
+
#define G_CSET_LATINS "\337\340\341\342\343\344\345\346"\
|
|
59
|
+
"\347\350\351\352\353\354\355\356\357\360"\
|
|
60
|
+
"\361\362\363\364\365\366"\
|
|
61
|
+
"\370\371\372\373\374\375\376\377"
|
|
62
62
|
|
|
63
63
|
/* Error types */
|
|
64
64
|
typedef enum
|
|
@@ -76,18 +76,18 @@ typedef enum
|
|
|
76
76
|
/* Token types */
|
|
77
77
|
typedef enum
|
|
78
78
|
{
|
|
79
|
-
G_TOKEN_EOF
|
|
79
|
+
G_TOKEN_EOF = 0,
|
|
80
80
|
|
|
81
|
-
G_TOKEN_LEFT_PAREN
|
|
82
|
-
G_TOKEN_RIGHT_PAREN
|
|
83
|
-
G_TOKEN_LEFT_CURLY
|
|
84
|
-
G_TOKEN_RIGHT_CURLY
|
|
85
|
-
G_TOKEN_LEFT_BRACE
|
|
86
|
-
G_TOKEN_RIGHT_BRACE
|
|
87
|
-
G_TOKEN_EQUAL_SIGN
|
|
88
|
-
G_TOKEN_COMMA
|
|
81
|
+
G_TOKEN_LEFT_PAREN = '(',
|
|
82
|
+
G_TOKEN_RIGHT_PAREN = ')',
|
|
83
|
+
G_TOKEN_LEFT_CURLY = '{',
|
|
84
|
+
G_TOKEN_RIGHT_CURLY = '}',
|
|
85
|
+
G_TOKEN_LEFT_BRACE = '[',
|
|
86
|
+
G_TOKEN_RIGHT_BRACE = ']',
|
|
87
|
+
G_TOKEN_EQUAL_SIGN = '=',
|
|
88
|
+
G_TOKEN_COMMA = ',',
|
|
89
89
|
|
|
90
|
-
G_TOKEN_NONE
|
|
90
|
+
G_TOKEN_NONE = 256,
|
|
91
91
|
|
|
92
92
|
G_TOKEN_ERROR,
|
|
93
93
|
|
|
@@ -110,184 +110,184 @@ typedef enum
|
|
|
110
110
|
G_TOKEN_LAST
|
|
111
111
|
} GTokenType;
|
|
112
112
|
|
|
113
|
-
union
|
|
113
|
+
union _GTokenValue
|
|
114
114
|
{
|
|
115
|
-
gpointer
|
|
116
|
-
gchar
|
|
117
|
-
gulong
|
|
118
|
-
gulong
|
|
119
|
-
gulong
|
|
115
|
+
gpointer v_symbol;
|
|
116
|
+
gchar *v_identifier;
|
|
117
|
+
gulong v_binary;
|
|
118
|
+
gulong v_octal;
|
|
119
|
+
gulong v_int;
|
|
120
120
|
guint64 v_int64;
|
|
121
|
-
gdouble
|
|
122
|
-
gulong
|
|
123
|
-
gchar
|
|
124
|
-
gchar
|
|
125
|
-
guchar
|
|
126
|
-
guint
|
|
121
|
+
gdouble v_float;
|
|
122
|
+
gulong v_hex;
|
|
123
|
+
gchar *v_string;
|
|
124
|
+
gchar *v_comment;
|
|
125
|
+
guchar v_char;
|
|
126
|
+
guint v_error;
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
-
struct
|
|
129
|
+
struct _GScannerConfig
|
|
130
130
|
{
|
|
131
131
|
/* Character sets
|
|
132
132
|
*/
|
|
133
|
-
gchar
|
|
134
|
-
gchar
|
|
135
|
-
gchar
|
|
136
|
-
gchar
|
|
133
|
+
gchar *cset_skip_characters; /* default: " \t\n" */
|
|
134
|
+
gchar *cset_identifier_first;
|
|
135
|
+
gchar *cset_identifier_nth;
|
|
136
|
+
gchar *cpair_comment_single; /* default: "#\n" */
|
|
137
137
|
|
|
138
138
|
/* Should symbol lookup work case sensitive?
|
|
139
139
|
*/
|
|
140
|
-
guint
|
|
140
|
+
guint case_sensitive : 1;
|
|
141
141
|
|
|
142
142
|
/* Boolean values to be adjusted "on the fly"
|
|
143
143
|
* to configure scanning behaviour.
|
|
144
144
|
*/
|
|
145
|
-
guint
|
|
146
|
-
guint
|
|
147
|
-
guint
|
|
148
|
-
guint
|
|
149
|
-
guint
|
|
150
|
-
guint
|
|
151
|
-
guint
|
|
152
|
-
guint
|
|
153
|
-
guint
|
|
154
|
-
guint
|
|
155
|
-
guint
|
|
156
|
-
guint
|
|
157
|
-
guint
|
|
158
|
-
guint
|
|
159
|
-
guint
|
|
160
|
-
guint
|
|
161
|
-
guint
|
|
162
|
-
guint
|
|
163
|
-
guint
|
|
164
|
-
guint
|
|
165
|
-
guint
|
|
145
|
+
guint skip_comment_multi : 1; /* C like comment */
|
|
146
|
+
guint skip_comment_single : 1; /* single line comment */
|
|
147
|
+
guint scan_comment_multi : 1; /* scan multi line comments? */
|
|
148
|
+
guint scan_identifier : 1;
|
|
149
|
+
guint scan_identifier_1char : 1;
|
|
150
|
+
guint scan_identifier_NULL : 1;
|
|
151
|
+
guint scan_symbols : 1;
|
|
152
|
+
guint scan_binary : 1;
|
|
153
|
+
guint scan_octal : 1;
|
|
154
|
+
guint scan_float : 1;
|
|
155
|
+
guint scan_hex : 1; /* '0x0ff0' */
|
|
156
|
+
guint scan_hex_dollar : 1; /* '$0ff0' */
|
|
157
|
+
guint scan_string_sq : 1; /* string: 'anything' */
|
|
158
|
+
guint scan_string_dq : 1; /* string: "\\-escapes!\n" */
|
|
159
|
+
guint numbers_2_int : 1; /* bin, octal, hex => int */
|
|
160
|
+
guint int_2_float : 1; /* int => G_TOKEN_FLOAT? */
|
|
161
|
+
guint identifier_2_string : 1;
|
|
162
|
+
guint char_2_token : 1; /* return G_TOKEN_CHAR? */
|
|
163
|
+
guint symbol_2_token : 1;
|
|
164
|
+
guint scope_0_fallback : 1; /* try scope 0 on lookups? */
|
|
165
|
+
guint store_int64 : 1; /* use value.v_int64 rather than v_int */
|
|
166
166
|
|
|
167
167
|
/*< private >*/
|
|
168
|
-
guint
|
|
168
|
+
guint padding_dummy;
|
|
169
169
|
};
|
|
170
170
|
|
|
171
|
-
struct
|
|
171
|
+
struct _GScanner
|
|
172
172
|
{
|
|
173
173
|
/* unused fields */
|
|
174
|
-
gpointer
|
|
175
|
-
guint
|
|
174
|
+
gpointer user_data;
|
|
175
|
+
guint max_parse_errors;
|
|
176
176
|
|
|
177
177
|
/* g_scanner_error() increments this field */
|
|
178
|
-
guint
|
|
178
|
+
guint parse_errors;
|
|
179
179
|
|
|
180
180
|
/* name of input stream, featured by the default message handler */
|
|
181
|
-
const gchar
|
|
181
|
+
const gchar *input_name;
|
|
182
182
|
|
|
183
183
|
/* quarked data */
|
|
184
|
-
GData
|
|
184
|
+
GData *qdata;
|
|
185
185
|
|
|
186
186
|
/* link into the scanner configuration */
|
|
187
|
-
GScannerConfig
|
|
187
|
+
GScannerConfig *config;
|
|
188
188
|
|
|
189
189
|
/* fields filled in after g_scanner_get_next_token() */
|
|
190
|
-
GTokenType
|
|
191
|
-
GTokenValue
|
|
192
|
-
guint
|
|
193
|
-
guint
|
|
190
|
+
GTokenType token;
|
|
191
|
+
GTokenValue value;
|
|
192
|
+
guint line;
|
|
193
|
+
guint position;
|
|
194
194
|
|
|
195
195
|
/* fields filled in after g_scanner_peek_next_token() */
|
|
196
|
-
GTokenType
|
|
197
|
-
GTokenValue
|
|
198
|
-
guint
|
|
199
|
-
guint
|
|
196
|
+
GTokenType next_token;
|
|
197
|
+
GTokenValue next_value;
|
|
198
|
+
guint next_line;
|
|
199
|
+
guint next_position;
|
|
200
200
|
|
|
201
201
|
/*< private >*/
|
|
202
202
|
/* to be considered private */
|
|
203
|
-
GHashTable
|
|
204
|
-
gint
|
|
205
|
-
const gchar
|
|
206
|
-
const gchar
|
|
207
|
-
gchar
|
|
208
|
-
guint
|
|
203
|
+
GHashTable *symbol_table;
|
|
204
|
+
gint input_fd;
|
|
205
|
+
const gchar *text;
|
|
206
|
+
const gchar *text_end;
|
|
207
|
+
gchar *buffer;
|
|
208
|
+
guint scope_id;
|
|
209
209
|
|
|
210
210
|
/*< public >*/
|
|
211
211
|
/* handler function for _warn and _error */
|
|
212
|
-
GScannerMsgFunc
|
|
212
|
+
GScannerMsgFunc msg_handler;
|
|
213
213
|
};
|
|
214
214
|
|
|
215
215
|
GLIB_AVAILABLE_IN_ALL
|
|
216
|
-
GScanner*
|
|
216
|
+
GScanner* g_scanner_new (const GScannerConfig *config_templ);
|
|
217
217
|
GLIB_AVAILABLE_IN_ALL
|
|
218
|
-
void
|
|
218
|
+
void g_scanner_destroy (GScanner *scanner);
|
|
219
219
|
GLIB_AVAILABLE_IN_ALL
|
|
220
|
-
void
|
|
221
|
-
|
|
220
|
+
void g_scanner_input_file (GScanner *scanner,
|
|
221
|
+
gint input_fd);
|
|
222
222
|
GLIB_AVAILABLE_IN_ALL
|
|
223
|
-
void
|
|
223
|
+
void g_scanner_sync_file_offset (GScanner *scanner);
|
|
224
224
|
GLIB_AVAILABLE_IN_ALL
|
|
225
|
-
void
|
|
226
|
-
|
|
227
|
-
|
|
225
|
+
void g_scanner_input_text (GScanner *scanner,
|
|
226
|
+
const gchar *text,
|
|
227
|
+
guint text_len);
|
|
228
228
|
GLIB_AVAILABLE_IN_ALL
|
|
229
|
-
GTokenType
|
|
229
|
+
GTokenType g_scanner_get_next_token (GScanner *scanner);
|
|
230
230
|
GLIB_AVAILABLE_IN_ALL
|
|
231
|
-
GTokenType
|
|
231
|
+
GTokenType g_scanner_peek_next_token (GScanner *scanner);
|
|
232
232
|
GLIB_AVAILABLE_IN_ALL
|
|
233
|
-
GTokenType
|
|
233
|
+
GTokenType g_scanner_cur_token (GScanner *scanner);
|
|
234
234
|
GLIB_AVAILABLE_IN_ALL
|
|
235
|
-
GTokenValue
|
|
235
|
+
GTokenValue g_scanner_cur_value (GScanner *scanner);
|
|
236
236
|
GLIB_AVAILABLE_IN_ALL
|
|
237
|
-
guint
|
|
237
|
+
guint g_scanner_cur_line (GScanner *scanner);
|
|
238
238
|
GLIB_AVAILABLE_IN_ALL
|
|
239
|
-
guint
|
|
239
|
+
guint g_scanner_cur_position (GScanner *scanner);
|
|
240
240
|
GLIB_AVAILABLE_IN_ALL
|
|
241
|
-
gboolean
|
|
241
|
+
gboolean g_scanner_eof (GScanner *scanner);
|
|
242
242
|
GLIB_AVAILABLE_IN_ALL
|
|
243
|
-
guint
|
|
244
|
-
|
|
243
|
+
guint g_scanner_set_scope (GScanner *scanner,
|
|
244
|
+
guint scope_id);
|
|
245
245
|
GLIB_AVAILABLE_IN_ALL
|
|
246
|
-
void
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
246
|
+
void g_scanner_scope_add_symbol (GScanner *scanner,
|
|
247
|
+
guint scope_id,
|
|
248
|
+
const gchar *symbol,
|
|
249
|
+
gpointer value);
|
|
250
250
|
GLIB_AVAILABLE_IN_ALL
|
|
251
|
-
void
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
void g_scanner_scope_remove_symbol (GScanner *scanner,
|
|
252
|
+
guint scope_id,
|
|
253
|
+
const gchar *symbol);
|
|
254
254
|
GLIB_AVAILABLE_IN_ALL
|
|
255
|
-
gpointer
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
gpointer g_scanner_scope_lookup_symbol (GScanner *scanner,
|
|
256
|
+
guint scope_id,
|
|
257
|
+
const gchar *symbol);
|
|
258
258
|
GLIB_AVAILABLE_IN_ALL
|
|
259
|
-
void
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
259
|
+
void g_scanner_scope_foreach_symbol (GScanner *scanner,
|
|
260
|
+
guint scope_id,
|
|
261
|
+
GHFunc func,
|
|
262
|
+
gpointer user_data);
|
|
263
263
|
GLIB_AVAILABLE_IN_ALL
|
|
264
|
-
gpointer
|
|
265
|
-
|
|
264
|
+
gpointer g_scanner_lookup_symbol (GScanner *scanner,
|
|
265
|
+
const gchar *symbol);
|
|
266
266
|
GLIB_AVAILABLE_IN_ALL
|
|
267
|
-
void
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
267
|
+
void g_scanner_unexp_token (GScanner *scanner,
|
|
268
|
+
GTokenType expected_token,
|
|
269
|
+
const gchar *identifier_spec,
|
|
270
|
+
const gchar *symbol_spec,
|
|
271
|
+
const gchar *symbol_name,
|
|
272
|
+
const gchar *message,
|
|
273
|
+
gint is_error);
|
|
274
274
|
GLIB_AVAILABLE_IN_ALL
|
|
275
|
-
void
|
|
276
|
-
|
|
277
|
-
|
|
275
|
+
void g_scanner_error (GScanner *scanner,
|
|
276
|
+
const gchar *format,
|
|
277
|
+
...) G_GNUC_PRINTF (2,3);
|
|
278
278
|
GLIB_AVAILABLE_IN_ALL
|
|
279
|
-
void
|
|
280
|
-
|
|
281
|
-
|
|
279
|
+
void g_scanner_warn (GScanner *scanner,
|
|
280
|
+
const gchar *format,
|
|
281
|
+
...) G_GNUC_PRINTF (2,3);
|
|
282
282
|
|
|
283
283
|
/* keep downward source compatibility */
|
|
284
|
-
#define
|
|
284
|
+
#define g_scanner_add_symbol( scanner, symbol, value ) G_STMT_START { \
|
|
285
285
|
g_scanner_scope_add_symbol ((scanner), 0, (symbol), (value)); \
|
|
286
286
|
} G_STMT_END GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_scanner_scope_add_symbol)
|
|
287
|
-
#define
|
|
287
|
+
#define g_scanner_remove_symbol( scanner, symbol ) G_STMT_START { \
|
|
288
288
|
g_scanner_scope_remove_symbol ((scanner), 0, (symbol)); \
|
|
289
289
|
} G_STMT_END GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_scanner_scope_remove_symbol)
|
|
290
|
-
#define
|
|
290
|
+
#define g_scanner_foreach_symbol( scanner, func, data ) G_STMT_START { \
|
|
291
291
|
g_scanner_scope_foreach_symbol ((scanner), 0, (func), (data)); \
|
|
292
292
|
} G_STMT_END GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_scanner_scope_foreach_symbol)
|
|
293
293
|
|
|
@@ -32,19 +32,19 @@ G_BEGIN_DECLS
|
|
|
32
32
|
/* slices - fast allocation/release of small memory blocks
|
|
33
33
|
*/
|
|
34
34
|
GLIB_AVAILABLE_IN_ALL
|
|
35
|
-
gpointer g_slice_alloc
|
|
35
|
+
gpointer g_slice_alloc (gsize block_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
|
|
36
36
|
GLIB_AVAILABLE_IN_ALL
|
|
37
|
-
gpointer g_slice_alloc0
|
|
37
|
+
gpointer g_slice_alloc0 (gsize block_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
|
|
38
38
|
GLIB_AVAILABLE_IN_ALL
|
|
39
39
|
gpointer g_slice_copy (gsize block_size,
|
|
40
40
|
gconstpointer mem_block) G_GNUC_ALLOC_SIZE(1);
|
|
41
41
|
GLIB_AVAILABLE_IN_ALL
|
|
42
|
-
void g_slice_free1
|
|
43
|
-
|
|
42
|
+
void g_slice_free1 (gsize block_size,
|
|
43
|
+
gpointer mem_block);
|
|
44
44
|
GLIB_AVAILABLE_IN_ALL
|
|
45
45
|
void g_slice_free_chain_with_offset (gsize block_size,
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
gpointer mem_chain,
|
|
47
|
+
gsize next_offset);
|
|
48
48
|
|
|
49
49
|
#ifndef __GI_SCANNER__
|
|
50
50
|
/* Private helper to give the allocation size for a struct — we want to
|
|
@@ -72,9 +72,9 @@ void g_slice_free_chain_with_offset (gsize block_size,
|
|
|
72
72
|
|
|
73
73
|
/* MemoryBlockType *
|
|
74
74
|
* g_slice_dup (MemoryBlockType,
|
|
75
|
-
*
|
|
75
|
+
* MemoryBlockType *mem_block);
|
|
76
76
|
* g_slice_free (MemoryBlockType,
|
|
77
|
-
*
|
|
77
|
+
* MemoryBlockType *mem_block);
|
|
78
78
|
* g_slice_free_chain (MemoryBlockType,
|
|
79
79
|
* MemoryBlockType *first_chain_block,
|
|
80
80
|
* memory_block_next_field);
|
|
@@ -88,14 +88,14 @@ void g_slice_free_chain_with_offset (gsize block_size,
|
|
|
88
88
|
: ((void) ((type*) 0 == (mem)), (type*) 0))
|
|
89
89
|
#define g_slice_free(type, mem) \
|
|
90
90
|
G_STMT_START { \
|
|
91
|
-
if (1) g_slice_free1 (sizeof (type), (mem));
|
|
92
|
-
else (void) ((type*) 0 == (mem));
|
|
91
|
+
if (1) g_slice_free1 (sizeof (type), (mem)); \
|
|
92
|
+
else (void) ((type*) 0 == (mem)); \
|
|
93
93
|
} G_STMT_END
|
|
94
94
|
#define g_slice_free_chain(type, mem_chain, next) \
|
|
95
95
|
G_STMT_START { \
|
|
96
|
-
if (1) g_slice_free_chain_with_offset (sizeof (type),
|
|
97
|
-
(mem_chain), G_STRUCT_OFFSET (type, next));
|
|
98
|
-
else (void) ((type*) 0 == (mem_chain));
|
|
96
|
+
if (1) g_slice_free_chain_with_offset (sizeof (type), \
|
|
97
|
+
(mem_chain), G_STRUCT_OFFSET (type, next)); \
|
|
98
|
+
else (void) ((type*) 0 == (mem_chain)); \
|
|
99
99
|
} G_STMT_END
|
|
100
100
|
|
|
101
101
|
/* --- internal debugging API --- */
|
|
@@ -109,9 +109,9 @@ typedef enum {
|
|
|
109
109
|
} GSliceConfig;
|
|
110
110
|
|
|
111
111
|
GLIB_DEPRECATED_IN_2_34
|
|
112
|
-
void g_slice_set_config
|
|
112
|
+
void g_slice_set_config (GSliceConfig ckey, gint64 value);
|
|
113
113
|
GLIB_DEPRECATED_IN_2_34
|
|
114
|
-
gint64 g_slice_get_config
|
|
114
|
+
gint64 g_slice_get_config (GSliceConfig ckey);
|
|
115
115
|
GLIB_DEPRECATED_IN_2_34
|
|
116
116
|
gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
|
|
117
117
|
|