mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +02:00
cleanups of the structure fields (binary incompatible).
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org> * glib.h (GScanner): cleanups of the structure fields (binary incompatible).
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h (GScanner): cleanups of the structure fields (binary
|
||||||
|
incompatible).
|
||||||
|
|
||||||
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
||||||
|
|
||||||
* glib.h: add new hash and equal functions g_int_*. complement
|
* glib.h: add new hash and equal functions g_int_*. complement
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h (GScanner): cleanups of the structure fields (binary
|
||||||
|
incompatible).
|
||||||
|
|
||||||
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
||||||
|
|
||||||
* glib.h: add new hash and equal functions g_int_*. complement
|
* glib.h: add new hash and equal functions g_int_*. complement
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h (GScanner): cleanups of the structure fields (binary
|
||||||
|
incompatible).
|
||||||
|
|
||||||
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
||||||
|
|
||||||
* glib.h: add new hash and equal functions g_int_*. complement
|
* glib.h: add new hash and equal functions g_int_*. complement
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h (GScanner): cleanups of the structure fields (binary
|
||||||
|
incompatible).
|
||||||
|
|
||||||
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
||||||
|
|
||||||
* glib.h: add new hash and equal functions g_int_*. complement
|
* glib.h: add new hash and equal functions g_int_*. complement
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h (GScanner): cleanups of the structure fields (binary
|
||||||
|
incompatible).
|
||||||
|
|
||||||
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
||||||
|
|
||||||
* glib.h: add new hash and equal functions g_int_*. complement
|
* glib.h: add new hash and equal functions g_int_*. complement
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h (GScanner): cleanups of the structure fields (binary
|
||||||
|
incompatible).
|
||||||
|
|
||||||
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
||||||
|
|
||||||
* glib.h: add new hash and equal functions g_int_*. complement
|
* glib.h: add new hash and equal functions g_int_*. complement
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h (GScanner): cleanups of the structure fields (binary
|
||||||
|
incompatible).
|
||||||
|
|
||||||
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
||||||
|
|
||||||
* glib.h: add new hash and equal functions g_int_*. complement
|
* glib.h: add new hash and equal functions g_int_*. complement
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 12 15:39:06 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h (GScanner): cleanups of the structure fields (binary
|
||||||
|
incompatible).
|
||||||
|
|
||||||
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
Fri Jun 12 00:39:28 1998 Josh MacDonald <jmacd@icw.EECS.Berkeley.EDU>
|
||||||
|
|
||||||
* glib.h: add new hash and equal functions g_int_*. complement
|
* glib.h: add new hash and equal functions g_int_*. complement
|
||||||
|
26
glib.h
26
glib.h
@@ -1118,30 +1118,42 @@ struct _GScannerConfig
|
|||||||
|
|
||||||
struct _GScanner
|
struct _GScanner
|
||||||
{
|
{
|
||||||
/* unused portions */
|
/* unused fields */
|
||||||
gpointer user_data;
|
gpointer user_data;
|
||||||
const gchar *input_name;
|
|
||||||
guint parse_errors;
|
|
||||||
guint max_parse_errors;
|
guint max_parse_errors;
|
||||||
|
|
||||||
/* maintained/used by the g_scanner_*() functions */
|
/* g_scanner_error() increments this field */
|
||||||
|
guint parse_errors;
|
||||||
|
|
||||||
|
/* name of input stream, featured by the default message handler */
|
||||||
|
const gchar *input_name;
|
||||||
|
|
||||||
|
/* data pointer for derived structures */
|
||||||
|
gpointer derived_data;
|
||||||
|
|
||||||
|
/* link into the scanner configuration */
|
||||||
GScannerConfig *config;
|
GScannerConfig *config;
|
||||||
|
|
||||||
|
/* fields filled in after g_scanner_get_next_token() */
|
||||||
GTokenType token;
|
GTokenType token;
|
||||||
GValue value;
|
GValue value;
|
||||||
guint line;
|
guint line;
|
||||||
guint position;
|
guint position;
|
||||||
|
|
||||||
/* to be considered private */
|
/* fields filled in after g_scanner_peek_next_token() */
|
||||||
GTokenType next_token;
|
GTokenType next_token;
|
||||||
GValue next_value;
|
GValue next_value;
|
||||||
guint next_line;
|
guint next_line;
|
||||||
guint next_position;
|
guint next_position;
|
||||||
|
|
||||||
|
/* to be considered private */
|
||||||
GHashTable *symbol_table;
|
GHashTable *symbol_table;
|
||||||
const gchar *text;
|
const gchar *text;
|
||||||
guint text_len;
|
guint text_len;
|
||||||
gint input_fd;
|
gint input_fd;
|
||||||
gint peeked_char;
|
gint peeked_char;
|
||||||
|
|
||||||
|
/* handler function for _warn and _error */
|
||||||
GScannerMsgFunc msg_handler;
|
GScannerMsgFunc msg_handler;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
26
glib/glib.h
26
glib/glib.h
@@ -1118,30 +1118,42 @@ struct _GScannerConfig
|
|||||||
|
|
||||||
struct _GScanner
|
struct _GScanner
|
||||||
{
|
{
|
||||||
/* unused portions */
|
/* unused fields */
|
||||||
gpointer user_data;
|
gpointer user_data;
|
||||||
const gchar *input_name;
|
|
||||||
guint parse_errors;
|
|
||||||
guint max_parse_errors;
|
guint max_parse_errors;
|
||||||
|
|
||||||
/* maintained/used by the g_scanner_*() functions */
|
/* g_scanner_error() increments this field */
|
||||||
|
guint parse_errors;
|
||||||
|
|
||||||
|
/* name of input stream, featured by the default message handler */
|
||||||
|
const gchar *input_name;
|
||||||
|
|
||||||
|
/* data pointer for derived structures */
|
||||||
|
gpointer derived_data;
|
||||||
|
|
||||||
|
/* link into the scanner configuration */
|
||||||
GScannerConfig *config;
|
GScannerConfig *config;
|
||||||
|
|
||||||
|
/* fields filled in after g_scanner_get_next_token() */
|
||||||
GTokenType token;
|
GTokenType token;
|
||||||
GValue value;
|
GValue value;
|
||||||
guint line;
|
guint line;
|
||||||
guint position;
|
guint position;
|
||||||
|
|
||||||
/* to be considered private */
|
/* fields filled in after g_scanner_peek_next_token() */
|
||||||
GTokenType next_token;
|
GTokenType next_token;
|
||||||
GValue next_value;
|
GValue next_value;
|
||||||
guint next_line;
|
guint next_line;
|
||||||
guint next_position;
|
guint next_position;
|
||||||
|
|
||||||
|
/* to be considered private */
|
||||||
GHashTable *symbol_table;
|
GHashTable *symbol_table;
|
||||||
const gchar *text;
|
const gchar *text;
|
||||||
guint text_len;
|
guint text_len;
|
||||||
gint input_fd;
|
gint input_fd;
|
||||||
gint peeked_char;
|
gint peeked_char;
|
||||||
|
|
||||||
|
/* handler function for _warn and _error */
|
||||||
GScannerMsgFunc msg_handler;
|
GScannerMsgFunc msg_handler;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -159,9 +159,10 @@ g_scanner_new (GScannerConfig *config_templ)
|
|||||||
scanner = g_new0 (GScanner, 1);
|
scanner = g_new0 (GScanner, 1);
|
||||||
|
|
||||||
scanner->user_data = NULL;
|
scanner->user_data = NULL;
|
||||||
scanner->input_name = NULL;
|
|
||||||
scanner->parse_errors = 0;
|
|
||||||
scanner->max_parse_errors = 0;
|
scanner->max_parse_errors = 0;
|
||||||
|
scanner->parse_errors = 0;
|
||||||
|
scanner->input_name = NULL;
|
||||||
|
scanner->derived_data = NULL;
|
||||||
|
|
||||||
scanner->config = g_new0 (GScannerConfig, 1);
|
scanner->config = g_new0 (GScannerConfig, 1);
|
||||||
|
|
||||||
@@ -199,7 +200,7 @@ g_scanner_new (GScannerConfig *config_templ)
|
|||||||
scanner->next_value.v_int = 0;
|
scanner->next_value.v_int = 0;
|
||||||
scanner->next_line = 1;
|
scanner->next_line = 1;
|
||||||
scanner->next_position = 0;
|
scanner->next_position = 0;
|
||||||
|
|
||||||
scanner->symbol_table = g_hash_table_new (g_str_hash, g_str_equal);
|
scanner->symbol_table = g_hash_table_new (g_str_hash, g_str_equal);
|
||||||
scanner->text = NULL;
|
scanner->text = NULL;
|
||||||
scanner->text_len = 0;
|
scanner->text_len = 0;
|
||||||
|
@@ -159,9 +159,10 @@ g_scanner_new (GScannerConfig *config_templ)
|
|||||||
scanner = g_new0 (GScanner, 1);
|
scanner = g_new0 (GScanner, 1);
|
||||||
|
|
||||||
scanner->user_data = NULL;
|
scanner->user_data = NULL;
|
||||||
scanner->input_name = NULL;
|
|
||||||
scanner->parse_errors = 0;
|
|
||||||
scanner->max_parse_errors = 0;
|
scanner->max_parse_errors = 0;
|
||||||
|
scanner->parse_errors = 0;
|
||||||
|
scanner->input_name = NULL;
|
||||||
|
scanner->derived_data = NULL;
|
||||||
|
|
||||||
scanner->config = g_new0 (GScannerConfig, 1);
|
scanner->config = g_new0 (GScannerConfig, 1);
|
||||||
|
|
||||||
@@ -199,7 +200,7 @@ g_scanner_new (GScannerConfig *config_templ)
|
|||||||
scanner->next_value.v_int = 0;
|
scanner->next_value.v_int = 0;
|
||||||
scanner->next_line = 1;
|
scanner->next_line = 1;
|
||||||
scanner->next_position = 0;
|
scanner->next_position = 0;
|
||||||
|
|
||||||
scanner->symbol_table = g_hash_table_new (g_str_hash, g_str_equal);
|
scanner->symbol_table = g_hash_table_new (g_str_hash, g_str_equal);
|
||||||
scanner->text = NULL;
|
scanner->text = NULL;
|
||||||
scanner->text_len = 0;
|
scanner->text_len = 0;
|
||||||
|
Reference in New Issue
Block a user