} RecordDataString;
static RecordDataTree *
-record_data_tree_new (RecordDataTree *parent, RecordTreeType type, const char *data)
+record_data_tree_new (RecordDataTree *parent,
+ RecordTreeType type,
+ const char *data)
{
RecordDataTree *tree = g_slice_new0 (RecordDataTree);
}
static const char *
-record_data_string_lookup (GHashTable *strings, const char *str, gssize len)
+record_data_string_lookup (GHashTable *strings,
+ const char *str,
+ gssize len)
{
char *copy = NULL;
RecordDataString *s;
static void
marshal_uint32 (GString *str,
- guint32 v)
+ guint32 v)
{
/*
We encode in a variable length format similar to
}
static void
-marshal_string (GString *marshaled,
+marshal_string (GString *marshaled,
GHashTable *strings,
const char *string)
{
}
static void
-marshal_tree (GString *marshaled,
- GHashTable *strings,
+marshal_tree (GString *marshaled,
+ GHashTable *strings,
RecordDataTree *tree)
{
GList *l;
* returns: A `GBytes` with the precompiled data
**/
GBytes *
-_gtk_buildable_parser_precompile (const char *text,
- gssize text_len,
- GError **error)
+_gtk_buildable_parser_precompile (const char *text,
+ gssize text_len,
+ GError **error)
{
GMarkupParseContext *ctx;
RecordData data = { 0 };
}
static const char *
-demarshal_string (const char **tree, const char *strings)
+demarshal_string (const char **tree,
+ const char *strings)
{
guint32 offset = demarshal_uint32 (tree);
}
static gboolean
-replay_start_element (GtkBuildableParseContext *context,
- const char **tree,
- const char *strings,
- GError **error)
+replay_start_element (GtkBuildableParseContext *context,
+ const char **tree,
+ const char *strings,
+ GError **error)
{
const char *element_name;
guint32 i, n_attrs;
}
static gboolean
-replay_end_element (GtkBuildableParseContext *context,
- const char **tree,
- const char *strings,
- GError **error)
+replay_end_element (GtkBuildableParseContext *context,
+ const char **tree,
+ const char *strings,
+ GError **error)
{
GError *tmp_error = NULL;
}
static gboolean
-replay_text (GtkBuildableParseContext *context,
- const char **tree,
- const char *strings,
- GError **error)
+replay_text (GtkBuildableParseContext *context,
+ const char **tree,
+ const char *strings,
+ GError **error)
{
const char *text;
GError *tmp_error = NULL;
}
gboolean
-_gtk_buildable_parser_is_precompiled (const char *data,
- gssize data_len)
+_gtk_buildable_parser_is_precompiled (const char *data,
+ gssize data_len)
{
return
data_len > 4 &&
}
gboolean
-_gtk_buildable_parser_replay_precompiled (GtkBuildableParseContext *context,
- const char *data,
- gssize data_len,
- GError **error)
+_gtk_buildable_parser_replay_precompiled (GtkBuildableParseContext *context,
+ const char *data,
+ gssize data_len,
+ GError **error)
{
const char *data_end = data + data_len;
guint32 type, len;