tracker-0.16.2/src/libtracker-data/tracker-turtle-reader.c

Location Tool Test ID Function Issue
tracker-turtle-reader.c:313:7 gcc unused-but-set-variable tracker_turtle_reader_construct variable '_tmp9__length1' set but not used
tracker-turtle-reader.c:383:2 clang-analyzer Value stored to '_tmp9__length1' is never read
tracker-turtle-reader.c:625:8 gcc unused-but-set-variable tracker_turtle_reader_generate_bnodeid variable '_tmp6__length1' set but not used
tracker-turtle-reader.c:656:3 clang-analyzer Value stored to '_tmp6__length1' is never read
tracker-turtle-reader.c:750:25 clang-analyzer Value stored to 'begin' during its initialization is never read
tracker-turtle-reader.c:751:25 clang-analyzer Value stored to 'end' during its initialization is never read
tracker-turtle-reader.c:766:8 gcc unused-but-set-variable tracker_turtle_reader_next_token variable '_tmp13__length1' set but not used
tracker-turtle-reader.c:801:3 clang-analyzer Value stored to '_tmp7__length1' is never read
tracker-turtle-reader.c:811:3 clang-analyzer Value stored to '_tmp10__length1' is never read
tracker-turtle-reader.c:821:3 clang-analyzer Value stored to '_tmp13__length1' is never read
tracker-turtle-reader.c:835:2 clang-analyzer Value stored to '_tmp16__length1' is never read
tracker-turtle-reader.c:853:7 gcc unused-but-set-variable tracker_turtle_reader_current variable '_tmp0__length1' set but not used
tracker-turtle-reader.c:862:2 clang-analyzer Value stored to '_tmp0__length1' is never read
tracker-turtle-reader.c:934:7 gcc unused-but-set-variable tracker_turtle_reader_get_error variable '_tmp5__length1' set but not used
tracker-turtle-reader.c:951:2 clang-analyzer Value stored to '_tmp0__length1' is never read
tracker-turtle-reader.c:963:2 clang-analyzer Value stored to '_tmp5__length1' is never read
tracker-turtle-reader.c:1090:7 gcc unused-but-set-variable tracker_turtle_reader_get_last_string variable '_tmp10__length1' set but not used
tracker-turtle-reader.c:1105:2 clang-analyzer Value stored to '_tmp1__length1' is never read
tracker-turtle-reader.c:1117:2 clang-analyzer Value stored to '_tmp6__length1' is never read
tracker-turtle-reader.c:1127:2 clang-analyzer Value stored to '_tmp10__length1' is never read
tracker-turtle-reader.c:2656:15 gcc unused-but-set-variable tracker_turtle_reader_next variable '_tmp119__length1' set but not used
tracker-turtle-reader.c:2662:10 clang-analyzer Value stored to '_tmp116_' is never read
tracker-turtle-reader.c:2664:10 clang-analyzer Value stored to '_tmp116__length1' is never read
tracker-turtle-reader.c:2672:10 clang-analyzer Value stored to '_tmp119_' is never read
tracker-turtle-reader.c:2674:10 clang-analyzer Value stored to '_tmp119__length1' is never read
tracker-turtle-reader.c:3654:7 clang-analyzer Value stored to '_tmp208_' is never read
tracker-turtle-reader.c:3703:8 clang-analyzer Value stored to '_tmp210__length1' is never read
tracker-turtle-reader.c:3705:8 clang-analyzer Value stored to '_tmp211_' is never read
tracker-turtle-reader.c:3719:8 clang-analyzer Value stored to '_tmp214__length1' is never read
tracker-turtle-reader.c:3721:8 clang-analyzer Value stored to '_tmp215_' is never read
   1 /* tracker-turtle-reader.c generated by valac 0.18.1, the Vala compiler
   2  * generated from tracker-turtle-reader.vala, do not modify */
   3 
   4 /*
   5  * Copyright (C) 2009, Nokia
   6  *
   7  * This library is free software; you can redistribute it and/or
   8  * modify it under the terms of the GNU Lesser General Public
   9  * License as published by the Free Software Foundation; either
  10  * version 2.1 of the License, or (at your option) any later version.
  11  *
  12  * This library is distributed in the hope that it will be useful,
  13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15  * Lesser General Public License for more details.
  16  *
  17  * You should have received a copy of the GNU Lesser General Public
  18  * License along with this library; if not, write to the
  19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  20  * Boston, MA  02110-1301, USA.
  21  */
  22 
  23 #include <glib.h>
  24 #include <glib-object.h>
  25 #include <stdlib.h>
  26 #include <string.h>
  27 #include "libtracker-sparql/tracker-sparql.h"
  28 #include "libtracker-common/tracker-date-time.h"
  29 #include "libtracker-data/tracker-db-interface.h"
  30 #include "libtracker-data/tracker-data-query.h"
  31 #include "libtracker-data/tracker-data-update.h"
  32 #include "libtracker-data/tracker-data-backup.h"
  33 
  34 
  35 #define TRACKER_TYPE_TURTLE_READER (tracker_turtle_reader_get_type ())
  36 #define TRACKER_TURTLE_READER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_TURTLE_READER, TrackerTurtleReader))
  37 #define TRACKER_TURTLE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_TURTLE_READER, TrackerTurtleReaderClass))
  38 #define TRACKER_IS_TURTLE_READER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_TURTLE_READER))
  39 #define TRACKER_IS_TURTLE_READER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_TURTLE_READER))
  40 #define TRACKER_TURTLE_READER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_TURTLE_READER, TrackerTurtleReaderClass))
  41 
  42 typedef struct _TrackerTurtleReader TrackerTurtleReader;
  43 typedef struct _TrackerTurtleReaderClass TrackerTurtleReaderClass;
  44 typedef struct _TrackerTurtleReaderPrivate TrackerTurtleReaderPrivate;
  45 
  46 #define TRACKER_TYPE_SPARQL_SCANNER (tracker_sparql_scanner_get_type ())
  47 #define TRACKER_SPARQL_SCANNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_SPARQL_SCANNER, TrackerSparqlScanner))
  48 #define TRACKER_SPARQL_SCANNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_SPARQL_SCANNER, TrackerSparqlScannerClass))
  49 #define TRACKER_IS_SPARQL_SCANNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_SPARQL_SCANNER))
  50 #define TRACKER_IS_SPARQL_SCANNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_SPARQL_SCANNER))
  51 #define TRACKER_SPARQL_SCANNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_SPARQL_SCANNER, TrackerSparqlScannerClass))
  52 
  53 typedef struct _TrackerSparqlScanner TrackerSparqlScanner;
  54 typedef struct _TrackerSparqlScannerClass TrackerSparqlScannerClass;
  55 
  56 #define TRACKER_TURTLE_READER_TYPE_TOKEN_INFO (tracker_turtle_reader_token_info_get_type ())
  57 
  58 #define TRACKER_TYPE_SPARQL_TOKEN_TYPE (tracker_sparql_token_type_get_type ())
  59 
  60 #define TRACKER_TYPE_SOURCE_LOCATION (tracker_source_location_get_type ())
  61 typedef struct _TrackerSourceLocation TrackerSourceLocation;
  62 typedef struct _TrackerTurtleReaderTokenInfo TrackerTurtleReaderTokenInfo;
  63 
  64 #define TRACKER_TURTLE_READER_TYPE_STATE (tracker_turtle_reader_state_get_type ())
  65 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
  66 #define _g_free0(var) (var = (g_free (var), NULL))
  67 #define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
  68 #define _g_mapped_file_unref0(var) ((var == NULL) ? NULL : (var = (g_mapped_file_unref (var), NULL)))
  69 #define _g_checksum_free0(var) ((var == NULL) ? NULL : (var = (g_checksum_free (var), NULL)))
  70 #define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
  71 #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
  72 
  73 struct _TrackerTurtleReader {
  74 	GObject parent_instance;
  75 	TrackerTurtleReaderPrivate * priv;
  76 };
  77 
  78 struct _TrackerTurtleReaderClass {
  79 	GObjectClass parent_class;
  80 };
  81 
  82 typedef enum  {
  83 	TRACKER_SPARQL_TOKEN_TYPE_NONE,
  84 	TRACKER_SPARQL_TOKEN_TYPE_A,
  85 	TRACKER_SPARQL_TOKEN_TYPE_AS,
  86 	TRACKER_SPARQL_TOKEN_TYPE_ASC,
  87 	TRACKER_SPARQL_TOKEN_TYPE_ASK,
  88 	TRACKER_SPARQL_TOKEN_TYPE_ATBASE,
  89 	TRACKER_SPARQL_TOKEN_TYPE_ATPREFIX,
  90 	TRACKER_SPARQL_TOKEN_TYPE_AVG,
  91 	TRACKER_SPARQL_TOKEN_TYPE_BASE,
  92 	TRACKER_SPARQL_TOKEN_TYPE_BLANK_NODE,
  93 	TRACKER_SPARQL_TOKEN_TYPE_BOUND,
  94 	TRACKER_SPARQL_TOKEN_TYPE_BY,
  95 	TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACE,
  96 	TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACKET,
  97 	TRACKER_SPARQL_TOKEN_TYPE_CLOSE_PARENS,
  98 	TRACKER_SPARQL_TOKEN_TYPE_COALESCE,
  99 	TRACKER_SPARQL_TOKEN_TYPE_COLON,
 100 	TRACKER_SPARQL_TOKEN_TYPE_COMMA,
 101 	TRACKER_SPARQL_TOKEN_TYPE_CONSTRUCT,
 102 	TRACKER_SPARQL_TOKEN_TYPE_COUNT,
 103 	TRACKER_SPARQL_TOKEN_TYPE_DATA,
 104 	TRACKER_SPARQL_TOKEN_TYPE_DATATYPE,
 105 	TRACKER_SPARQL_TOKEN_TYPE_DECIMAL,
 106 	TRACKER_SPARQL_TOKEN_TYPE_DELETE,
 107 	TRACKER_SPARQL_TOKEN_TYPE_DESC,
 108 	TRACKER_SPARQL_TOKEN_TYPE_DESCRIBE,
 109 	TRACKER_SPARQL_TOKEN_TYPE_DISTINCT,
 110 	TRACKER_SPARQL_TOKEN_TYPE_DIV,
 111 	TRACKER_SPARQL_TOKEN_TYPE_DOT,
 112 	TRACKER_SPARQL_TOKEN_TYPE_DOUBLE,
 113 	TRACKER_SPARQL_TOKEN_TYPE_DOUBLE_CIRCUMFLEX,
 114 	TRACKER_SPARQL_TOKEN_TYPE_DROP,
 115 	TRACKER_SPARQL_TOKEN_TYPE_EOF,
 116 	TRACKER_SPARQL_TOKEN_TYPE_EXISTS,
 117 	TRACKER_SPARQL_TOKEN_TYPE_FALSE,
 118 	TRACKER_SPARQL_TOKEN_TYPE_FILTER,
 119 	TRACKER_SPARQL_TOKEN_TYPE_FROM,
 120 	TRACKER_SPARQL_TOKEN_TYPE_GRAPH,
 121 	TRACKER_SPARQL_TOKEN_TYPE_GROUP,
 122 	TRACKER_SPARQL_TOKEN_TYPE_GROUP_CONCAT,
 123 	TRACKER_SPARQL_TOKEN_TYPE_HAVING,
 124 	TRACKER_SPARQL_TOKEN_TYPE_IF,
 125 	TRACKER_SPARQL_TOKEN_TYPE_INSERT,
 126 	TRACKER_SPARQL_TOKEN_TYPE_INTEGER,
 127 	TRACKER_SPARQL_TOKEN_TYPE_INTO,
 128 	TRACKER_SPARQL_TOKEN_TYPE_IRI_REF,
 129 	TRACKER_SPARQL_TOKEN_TYPE_ISBLANK,
 130 	TRACKER_SPARQL_TOKEN_TYPE_ISIRI,
 131 	TRACKER_SPARQL_TOKEN_TYPE_ISLITERAL,
 132 	TRACKER_SPARQL_TOKEN_TYPE_ISURI,
 133 	TRACKER_SPARQL_TOKEN_TYPE_LANG,
 134 	TRACKER_SPARQL_TOKEN_TYPE_LANGMATCHES,
 135 	TRACKER_SPARQL_TOKEN_TYPE_LIMIT,
 136 	TRACKER_SPARQL_TOKEN_TYPE_MAX,
 137 	TRACKER_SPARQL_TOKEN_TYPE_MIN,
 138 	TRACKER_SPARQL_TOKEN_TYPE_MINUS,
 139 	TRACKER_SPARQL_TOKEN_TYPE_NAMED,
 140 	TRACKER_SPARQL_TOKEN_TYPE_NOT,
 141 	TRACKER_SPARQL_TOKEN_TYPE_NULL,
 142 	TRACKER_SPARQL_TOKEN_TYPE_OFFSET,
 143 	TRACKER_SPARQL_TOKEN_TYPE_OP_AND,
 144 	TRACKER_SPARQL_TOKEN_TYPE_OP_EQ,
 145 	TRACKER_SPARQL_TOKEN_TYPE_OP_GE,
 146 	TRACKER_SPARQL_TOKEN_TYPE_OP_GT,
 147 	TRACKER_SPARQL_TOKEN_TYPE_OP_LE,
 148 	TRACKER_SPARQL_TOKEN_TYPE_OP_LT,
 149 	TRACKER_SPARQL_TOKEN_TYPE_OP_NE,
 150 	TRACKER_SPARQL_TOKEN_TYPE_OP_NEG,
 151 	TRACKER_SPARQL_TOKEN_TYPE_OP_OR,
 152 	TRACKER_SPARQL_TOKEN_TYPE_OP_IN,
 153 	TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACE,
 154 	TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACKET,
 155 	TRACKER_SPARQL_TOKEN_TYPE_OPEN_PARENS,
 156 	TRACKER_SPARQL_TOKEN_TYPE_OPTIONAL,
 157 	TRACKER_SPARQL_TOKEN_TYPE_OR,
 158 	TRACKER_SPARQL_TOKEN_TYPE_ORDER,
 159 	TRACKER_SPARQL_TOKEN_TYPE_PLUS,
 160 	TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX,
 161 	TRACKER_SPARQL_TOKEN_TYPE_PREFIX,
 162 	TRACKER_SPARQL_TOKEN_TYPE_REDUCED,
 163 	TRACKER_SPARQL_TOKEN_TYPE_REGEX,
 164 	TRACKER_SPARQL_TOKEN_TYPE_REPLACE,
 165 	TRACKER_SPARQL_TOKEN_TYPE_SAMETERM,
 166 	TRACKER_SPARQL_TOKEN_TYPE_SELECT,
 167 	TRACKER_SPARQL_TOKEN_TYPE_SEMICOLON,
 168 	TRACKER_SPARQL_TOKEN_TYPE_SILENT,
 169 	TRACKER_SPARQL_TOKEN_TYPE_STAR,
 170 	TRACKER_SPARQL_TOKEN_TYPE_STR,
 171 	TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL1,
 172 	TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL2,
 173 	TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG1,
 174 	TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG2,
 175 	TRACKER_SPARQL_TOKEN_TYPE_SUM,
 176 	TRACKER_SPARQL_TOKEN_TYPE_TRUE,
 177 	TRACKER_SPARQL_TOKEN_TYPE_UNION,
 178 	TRACKER_SPARQL_TOKEN_TYPE_VAR,
 179 	TRACKER_SPARQL_TOKEN_TYPE_WHERE,
 180 	TRACKER_SPARQL_TOKEN_TYPE_WITH
 181 } TrackerSparqlTokenType;
 182 
 183 struct _TrackerSourceLocation {
 184 	gchar* pos;
 185 	gint line;
 186 	gint column;
 187 };
 188 
 189 struct _TrackerTurtleReaderTokenInfo {
 190 	TrackerSparqlTokenType type;
 191 	TrackerSourceLocation begin;
 192 	TrackerSourceLocation end;
 193 };
 194 
 195 typedef enum  {
 196 	TRACKER_TURTLE_READER_STATE_INITIAL,
 197 	TRACKER_TURTLE_READER_STATE_BOS,
 198 	TRACKER_TURTLE_READER_STATE_SUBJECT,
 199 	TRACKER_TURTLE_READER_STATE_PREDICATE,
 200 	TRACKER_TURTLE_READER_STATE_OBJECT
 201 } TrackerTurtleReaderState;
 202 
 203 struct _TrackerTurtleReaderPrivate {
 204 	TrackerSparqlScanner* scanner;
 205 	TrackerTurtleReaderTokenInfo* tokens;
 206 	gint tokens_length1;
 207 	gint _tokens_size_;
 208 	gint index;
 209 	gint size;
 210 	TrackerTurtleReaderState state;
 211 	gchar* _graph;
 212 	gchar* _subject;
 213 	gchar* _predicate;
 214 	gchar* _object;
 215 	gboolean _object_is_uri;
 216 	GHashTable* prefix_map;
 217 	gchar** subject_stack;
 218 	gint subject_stack_length1;
 219 	gint _subject_stack_size_;
 220 	gchar** predicate_stack;
 221 	gint predicate_stack_length1;
 222 	gint _predicate_stack_size_;
 223 	gint bnodeid;
 224 	guchar* base_uuid;
 225 	gint base_uuid_length1;
 226 	gint _base_uuid_size_;
 227 	GMappedFile* mapped_file;
 228 };
 229 
 230 
 231 static gpointer tracker_turtle_reader_parent_class = NULL;
 232 
 233 GType tracker_turtle_reader_get_type (void) G_GNUC_CONST;
 234 GType tracker_sparql_scanner_get_type (void) G_GNUC_CONST;
 235 static GType tracker_turtle_reader_token_info_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
 236 GType tracker_sparql_token_type_get_type (void) G_GNUC_CONST;
 237 GType tracker_source_location_get_type (void) G_GNUC_CONST;
 238 TrackerSourceLocation* tracker_source_location_dup (const TrackerSourceLocation* self);
 239 void tracker_source_location_free (TrackerSourceLocation* self);
 240 static TrackerTurtleReaderTokenInfo* tracker_turtle_reader_token_info_dup (const TrackerTurtleReaderTokenInfo* self);
 241 static void tracker_turtle_reader_token_info_free (TrackerTurtleReaderTokenInfo* self);
 242 static GType tracker_turtle_reader_state_get_type (void) G_GNUC_UNUSED;
 243 #define TRACKER_TURTLE_READER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRACKER_TYPE_TURTLE_READER, TrackerTurtleReaderPrivate))
 244 enum  {
 245 	TRACKER_TURTLE_READER_DUMMY_PROPERTY,
 246 	TRACKER_TURTLE_READER_GRAPH,
 247 	TRACKER_TURTLE_READER_SUBJECT,
 248 	TRACKER_TURTLE_READER_PREDICATE,
 249 	TRACKER_TURTLE_READER_OBJECT,
 250 	TRACKER_TURTLE_READER_OBJECT_IS_URI
 251 };
 252 #define TRACKER_TURTLE_READER_BUFFER_SIZE 32
 253 TrackerTurtleReader* tracker_turtle_reader_new (const gchar* path, GError** error);
 254 TrackerTurtleReader* tracker_turtle_reader_construct (GType object_type, const gchar* path, GError** error);
 255 TrackerSparqlScanner* tracker_sparql_scanner_new (gchar* input, gsize len);
 256 TrackerSparqlScanner* tracker_sparql_scanner_construct (GType object_type, gchar* input, gsize len);
 257 void uuid_generate (guchar* uuid);
 258 static gchar* tracker_turtle_reader_generate_bnodeid (TrackerTurtleReader* self, const gchar* user_bnodeid);
 259 static inline gboolean tracker_turtle_reader_next_token (TrackerTurtleReader* self, GError** error);
 260 TrackerSparqlTokenType tracker_sparql_scanner_read_token (TrackerSparqlScanner* self, TrackerSourceLocation* token_begin, TrackerSourceLocation* token_end, GError** error);
 261 static inline TrackerSparqlTokenType tracker_turtle_reader_current (TrackerTurtleReader* self);
 262 static inline gboolean tracker_turtle_reader_accept (TrackerTurtleReader* self, TrackerSparqlTokenType type, GError** error);
 263 static GError* tracker_turtle_reader_get_error (TrackerTurtleReader* self, const gchar* msg);
 264 static gboolean tracker_turtle_reader_expect (TrackerTurtleReader* self, TrackerSparqlTokenType type, GError** error);
 265 const gchar* tracker_sparql_token_type_to_string (TrackerSparqlTokenType self);
 266 static gchar* tracker_turtle_reader_get_last_string (TrackerTurtleReader* self, gint strip);
 267 static gchar* tracker_turtle_reader_resolve_prefixed_name (TrackerTurtleReader* self, const gchar* prefix, const gchar* local_name, GError** error);
 268 gboolean tracker_turtle_reader_next (TrackerTurtleReader* self, GError** error);
 269 static void tracker_turtle_reader_set_subject (TrackerTurtleReader* self, const gchar* value);
 270 static void tracker_turtle_reader_set_predicate (TrackerTurtleReader* self, const gchar* value);
 271 static void tracker_turtle_reader_set_object (TrackerTurtleReader* self, const gchar* value);
 272 static void tracker_turtle_reader_set_object_is_uri (TrackerTurtleReader* self, gboolean value);
 273 const gchar* tracker_turtle_reader_get_subject (TrackerTurtleReader* self);
 274 static void _vala_array_add12 (gchar*** array, int* length, int* size, gchar* value);
 275 const gchar* tracker_turtle_reader_get_predicate (TrackerTurtleReader* self);
 276 static void _vala_array_add13 (gchar*** array, int* length, int* size, gchar* value);
 277 void tracker_turtle_reader_load (const gchar* path, GError** error);
 278 gboolean tracker_turtle_reader_get_object_is_uri (TrackerTurtleReader* self);
 279 const gchar* tracker_turtle_reader_get_graph (TrackerTurtleReader* self);
 280 const gchar* tracker_turtle_reader_get_object (TrackerTurtleReader* self);
 281 static void tracker_turtle_reader_set_graph (TrackerTurtleReader* self, const gchar* value);
 282 static void tracker_turtle_reader_finalize (GObject* obj);
 283 static void _vala_tracker_turtle_reader_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
 284 static void _vala_tracker_turtle_reader_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
 285 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
 286 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
 287 
 288 
 289 static GType tracker_turtle_reader_state_get_type (void) {
 290 	static volatile gsize tracker_turtle_reader_state_type_id__volatile = 0;
 291 	if (g_once_init_enter (&tracker_turtle_reader_state_type_id__volatile)) {
 292 		static const GEnumValue values[] = {{TRACKER_TURTLE_READER_STATE_INITIAL, "TRACKER_TURTLE_READER_STATE_INITIAL", "initial"}, {TRACKER_TURTLE_READER_STATE_BOS, "TRACKER_TURTLE_READER_STATE_BOS", "bos"}, {TRACKER_TURTLE_READER_STATE_SUBJECT, "TRACKER_TURTLE_READER_STATE_SUBJECT", "subject"}, {TRACKER_TURTLE_READER_STATE_PREDICATE, "TRACKER_TURTLE_READER_STATE_PREDICATE", "predicate"}, {TRACKER_TURTLE_READER_STATE_OBJECT, "TRACKER_TURTLE_READER_STATE_OBJECT", "object"}, {0, NULL, NULL}};
 293 		GType tracker_turtle_reader_state_type_id;
 294 		tracker_turtle_reader_state_type_id = g_enum_register_static ("TrackerTurtleReaderState", values);
 295 		g_once_init_leave (&tracker_turtle_reader_state_type_id__volatile, tracker_turtle_reader_state_type_id);
 296 	}
 297 	return tracker_turtle_reader_state_type_id__volatile;
 298 }
 299 
 300 
 301 TrackerTurtleReader* tracker_turtle_reader_construct (GType object_type, const gchar* path, GError** error) {
 302 	TrackerTurtleReader * self = NULL;
 303 	const gchar* _tmp0_;
 304 	GMappedFile* _tmp1_;
 305 	GMappedFile* _tmp2_;
 306 	GMappedFile* _tmp3_;
 307 	gchar* _tmp4_ = NULL;
 308 	GMappedFile* _tmp5_;
 309 	gsize _tmp6_ = 0UL;
 310 	TrackerSparqlScanner* _tmp7_;
 311 	guchar* _tmp8_ = NULL;
 312 	guchar* _tmp9_;
 313 	gint _tmp9__length1;
variable '_tmp9__length1' set but not used
(emitted by gcc)
314 TrackerTurtleReaderTokenInfo* _tmp10_ = NULL; 315 GHashFunc _tmp11_; 316 GEqualFunc _tmp12_; 317 GDestroyNotify _tmp13_; 318 GDestroyNotify _tmp14_; 319 GHashTable* _tmp15_; 320 GError * _inner_error_ = NULL; 321 #line 67 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 322 g_return_val_if_fail (path != NULL, NULL); 323 #line 67 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 324 self = (TrackerTurtleReader*) g_object_new (object_type, NULL); 325 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 326 _tmp0_ = path; 327 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 328 _tmp1_ = g_mapped_file_new (_tmp0_, FALSE, &_inner_error_); 329 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 330 _tmp2_ = _tmp1_; 331 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 332 if (_inner_error_ != NULL) { 333 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 334 if (_inner_error_->domain == G_FILE_ERROR) { 335 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 336 g_propagate_error (error, _inner_error_); 337 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 338 _g_object_unref0 (self); 339 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 340 return NULL; 341 #line 342 "tracker-turtle-reader.c" 342 } else { 343 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 344 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 345 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 346 g_clear_error (&_inner_error_); 347 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 348 return NULL; 349 #line 350 "tracker-turtle-reader.c" 350 } 351 } 352 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 353 _g_mapped_file_unref0 (self->priv->mapped_file); 354 #line 68 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 355 self->priv->mapped_file = _tmp2_; 356 #line 69 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 357 _tmp3_ = self->priv->mapped_file; 358 #line 69 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 359 _tmp4_ = g_mapped_file_get_contents (_tmp3_); 360 #line 69 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 361 _tmp5_ = self->priv->mapped_file; 362 #line 69 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 363 _tmp6_ = g_mapped_file_get_length (_tmp5_); 364 #line 69 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 365 _tmp7_ = tracker_sparql_scanner_new (_tmp4_, _tmp6_); 366 #line 69 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 367 _g_object_unref0 (self->priv->scanner); 368 #line 69 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 369 self->priv->scanner = _tmp7_; 370 #line 71 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 371 _tmp8_ = g_new0 (guchar, 16); 372 #line 71 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 373 self->priv->base_uuid = (g_free (self->priv->base_uuid), NULL); 374 #line 71 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 375 self->priv->base_uuid = _tmp8_; 376 #line 71 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 377 self->priv->base_uuid_length1 = 16; 378 #line 71 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 379 self->priv->_base_uuid_size_ = self->priv->base_uuid_length1; 380 #line 72 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 381 _tmp9_ = self->priv->base_uuid; 382 #line 72 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 383 _tmp9__length1 = self->priv->base_uuid_length1;
Value stored to '_tmp9__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

384 #line 72 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 385 uuid_generate (_tmp9_); 386 #line 74 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 387 _tmp10_ = g_new0 (TrackerTurtleReaderTokenInfo, TRACKER_TURTLE_READER_BUFFER_SIZE); 388 #line 74 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 389 self->priv->tokens = (g_free (self->priv->tokens), NULL); 390 #line 74 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 391 self->priv->tokens = _tmp10_; 392 #line 74 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 393 self->priv->tokens_length1 = TRACKER_TURTLE_READER_BUFFER_SIZE; 394 #line 74 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 395 self->priv->_tokens_size_ = self->priv->tokens_length1; 396 #line 75 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 397 _tmp11_ = g_str_hash; 398 #line 75 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 399 _tmp12_ = g_str_equal; 400 #line 75 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 401 _tmp13_ = g_free; 402 #line 75 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 403 _tmp14_ = g_free; 404 #line 75 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 405 _tmp15_ = g_hash_table_new_full (_tmp11_, _tmp12_, _tmp13_, _tmp14_); 406 #line 75 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 407 _g_hash_table_unref0 (self->priv->prefix_map); 408 #line 75 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 409 self->priv->prefix_map = _tmp15_; 410 #line 67 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 411 return self; 412 #line 413 "tracker-turtle-reader.c" 413 } 414 415 416 TrackerTurtleReader* tracker_turtle_reader_new (const gchar* path, GError** error) { 417 #line 67 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 418 return tracker_turtle_reader_construct (TRACKER_TYPE_TURTLE_READER, path, error); 419 #line 420 "tracker-turtle-reader.c" 420 } 421 422 423 static glong string_strnlen (gchar* str, glong maxlen) { 424 glong result = 0L; 425 gchar* _tmp0_; 426 glong _tmp1_; 427 gchar* _tmp2_ = NULL; 428 gchar* end; 429 gchar* _tmp3_; 430 #line 1147 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 431 _tmp0_ = str; 432 #line 1147 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 433 _tmp1_ = maxlen; 434 #line 1147 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 435 _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_); 436 #line 1147 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 437 end = _tmp2_; 438 #line 1148 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 439 _tmp3_ = end; 440 #line 1148 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 441 if (_tmp3_ == NULL) { 442 #line 443 "tracker-turtle-reader.c" 443 glong _tmp4_; 444 #line 1149 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 445 _tmp4_ = maxlen; 446 #line 1149 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 447 result = _tmp4_; 448 #line 1149 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 449 return result; 450 #line 451 "tracker-turtle-reader.c" 451 } else { 452 gchar* _tmp5_; 453 gchar* _tmp6_; 454 #line 1151 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 455 _tmp5_ = end; 456 #line 1151 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 457 _tmp6_ = str; 458 #line 1151 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 459 result = (glong) (_tmp5_ - _tmp6_); 460 #line 1151 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 461 return result; 462 #line 463 "tracker-turtle-reader.c" 463 } 464 } 465 466 467 static gchar* string_substring (const gchar* self, glong offset, glong len) { 468 gchar* result = NULL; 469 glong string_length = 0L; 470 gboolean _tmp0_ = FALSE; 471 glong _tmp1_; 472 gboolean _tmp3_; 473 glong _tmp9_; 474 glong _tmp15_; 475 glong _tmp18_; 476 glong _tmp19_; 477 glong _tmp20_; 478 glong _tmp21_; 479 glong _tmp22_; 480 gchar* _tmp23_ = NULL; 481 #line 1158 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 482 g_return_val_if_fail (self != NULL, NULL); 483 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 484 _tmp1_ = offset; 485 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 486 if (_tmp1_ >= ((glong) 0)) { 487 #line 488 "tracker-turtle-reader.c" 488 glong _tmp2_; 489 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 490 _tmp2_ = len; 491 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 492 _tmp0_ = _tmp2_ >= ((glong) 0); 493 #line 494 "tracker-turtle-reader.c" 494 } else { 495 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 496 _tmp0_ = FALSE; 497 #line 498 "tracker-turtle-reader.c" 498 } 499 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 500 _tmp3_ = _tmp0_; 501 #line 1160 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 502 if (_tmp3_) { 503 #line 504 "tracker-turtle-reader.c" 504 glong _tmp4_; 505 glong _tmp5_; 506 glong _tmp6_ = 0L; 507 #line 1162 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 508 _tmp4_ = offset; 509 #line 1162 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 510 _tmp5_ = len; 511 #line 1162 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 512 _tmp6_ = string_strnlen ((gchar*) self, _tmp4_ + _tmp5_); 513 #line 1162 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 514 string_length = _tmp6_; 515 #line 516 "tracker-turtle-reader.c" 516 } else { 517 gint _tmp7_; 518 gint _tmp8_; 519 #line 1164 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 520 _tmp7_ = strlen (self); 521 #line 1164 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 522 _tmp8_ = _tmp7_; 523 #line 1164 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 524 string_length = (glong) _tmp8_; 525 #line 526 "tracker-turtle-reader.c" 526 } 527 #line 1167 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 528 _tmp9_ = offset; 529 #line 1167 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 530 if (_tmp9_ < ((glong) 0)) { 531 #line 532 "tracker-turtle-reader.c" 532 glong _tmp10_; 533 glong _tmp11_; 534 glong _tmp12_; 535 #line 1168 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 536 _tmp10_ = string_length; 537 #line 1168 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 538 _tmp11_ = offset; 539 #line 1168 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 540 offset = _tmp10_ + _tmp11_; 541 #line 1169 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 542 _tmp12_ = offset; 543 #line 1169 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 544 g_return_val_if_fail (_tmp12_ >= ((glong) 0), NULL); 545 #line 546 "tracker-turtle-reader.c" 546 } else { 547 glong _tmp13_; 548 glong _tmp14_; 549 #line 1171 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 550 _tmp13_ = offset; 551 #line 1171 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 552 _tmp14_ = string_length; 553 #line 1171 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 554 g_return_val_if_fail (_tmp13_ <= _tmp14_, NULL); 555 #line 556 "tracker-turtle-reader.c" 556 } 557 #line 1173 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 558 _tmp15_ = len; 559 #line 1173 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 560 if (_tmp15_ < ((glong) 0)) { 561 #line 562 "tracker-turtle-reader.c" 562 glong _tmp16_; 563 glong _tmp17_; 564 #line 1174 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 565 _tmp16_ = string_length; 566 #line 1174 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 567 _tmp17_ = offset; 568 #line 1174 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 569 len = _tmp16_ - _tmp17_; 570 #line 571 "tracker-turtle-reader.c" 571 } 572 #line 1176 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 573 _tmp18_ = offset; 574 #line 1176 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 575 _tmp19_ = len; 576 #line 1176 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 577 _tmp20_ = string_length; 578 #line 1176 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 579 g_return_val_if_fail ((_tmp18_ + _tmp19_) <= _tmp20_, NULL); 580 #line 1177 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 581 _tmp21_ = offset; 582 #line 1177 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 583 _tmp22_ = len; 584 #line 1177 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 585 _tmp23_ = g_strndup (((gchar*) self) + _tmp21_, (gsize) _tmp22_); 586 #line 1177 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 587 result = _tmp23_; 588 #line 1177 "/usr/share/vala-0.18/vapi/glib-2.0.vapi" 589 return result; 590 #line 591 "tracker-turtle-reader.c" 591 } 592 593 594 static gchar* tracker_turtle_reader_generate_bnodeid (TrackerTurtleReader* self, const gchar* user_bnodeid) { 595 gchar* result = NULL; 596 const gchar* _tmp0_; 597 #line 78 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 598 g_return_val_if_fail (self != NULL, NULL); 599 #line 80 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 600 _tmp0_ = user_bnodeid; 601 #line 80 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 602 if (_tmp0_ == NULL) { 603 #line 604 "tracker-turtle-reader.c" 604 gint _tmp1_; 605 gint _tmp2_; 606 gchar* _tmp3_ = NULL; 607 #line 81 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 608 _tmp1_ = self->priv->bnodeid; 609 #line 81 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 610 self->priv->bnodeid = _tmp1_ + 1; 611 #line 81 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 612 _tmp2_ = self->priv->bnodeid; 613 #line 81 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 614 _tmp3_ = g_strdup_printf (":%d", _tmp2_); 615 #line 81 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 616 result = _tmp3_; 617 #line 81 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 618 return result; 619 #line 620 "tracker-turtle-reader.c" 620 } else { 621 GChecksum* _tmp4_; 622 GChecksum* checksum; 623 GChecksum* _tmp5_; 624 guchar* _tmp6_; 625 gint _tmp6__length1;
variable '_tmp6__length1' set but not used
(emitted by gcc)
626 GChecksum* _tmp7_; 627 const gchar* _tmp8_; 628 GChecksum* _tmp9_; 629 const gchar* _tmp10_ = NULL; 630 gchar* _tmp11_; 631 gchar* sha1; 632 const gchar* _tmp12_; 633 const gchar* _tmp13_; 634 gchar* _tmp14_ = NULL; 635 gchar* _tmp15_; 636 const gchar* _tmp16_; 637 gchar* _tmp17_ = NULL; 638 gchar* _tmp18_; 639 const gchar* _tmp19_; 640 gchar* _tmp20_ = NULL; 641 gchar* _tmp21_; 642 const gchar* _tmp22_; 643 gchar* _tmp23_ = NULL; 644 gchar* _tmp24_; 645 gchar* _tmp25_ = NULL; 646 gchar* _tmp26_; 647 #line 83 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 648 _tmp4_ = g_checksum_new (G_CHECKSUM_SHA1); 649 #line 83 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 650 checksum = _tmp4_; 651 #line 85 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 652 _tmp5_ = checksum; 653 #line 85 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 654 _tmp6_ = self->priv->base_uuid; 655 #line 85 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 656 _tmp6__length1 = self->priv->base_uuid_length1;
Value stored to '_tmp6__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

657 #line 85 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 658 g_checksum_update (_tmp5_, _tmp6_, (gsize) 16); 659 #line 87 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 660 _tmp7_ = checksum; 661 #line 87 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 662 _tmp8_ = user_bnodeid; 663 #line 87 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 664 g_checksum_update (_tmp7_, (guchar*) _tmp8_, (gsize) (-1)); 665 #line 89 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 666 _tmp9_ = checksum; 667 #line 89 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 668 _tmp10_ = g_checksum_get_string (_tmp9_); 669 #line 89 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 670 _tmp11_ = g_strdup (_tmp10_); 671 #line 89 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 672 sha1 = _tmp11_; 673 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 674 _tmp12_ = sha1; 675 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 676 _tmp13_ = sha1; 677 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 678 _tmp14_ = string_substring (_tmp13_, (glong) 8, (glong) (-1)); 679 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 680 _tmp15_ = _tmp14_; 681 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 682 _tmp16_ = sha1; 683 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 684 _tmp17_ = string_substring (_tmp16_, (glong) 12, (glong) (-1)); 685 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 686 _tmp18_ = _tmp17_; 687 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 688 _tmp19_ = sha1; 689 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 690 _tmp20_ = string_substring (_tmp19_, (glong) 16, (glong) (-1)); 691 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 692 _tmp21_ = _tmp20_; 693 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 694 _tmp22_ = sha1; 695 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 696 _tmp23_ = string_substring (_tmp22_, (glong) 20, (glong) (-1)); 697 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 698 _tmp24_ = _tmp23_; 699 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 700 _tmp25_ = g_strdup_printf ("urn:uuid:%.8s-%.4s-%.4s-%.4s-%.12s", _tmp12_, _tmp15_, _tmp18_, _tmp21_, _tmp24_); 701 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 702 _tmp26_ = _tmp25_; 703 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 704 _g_free0 (_tmp24_); 705 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 706 _g_free0 (_tmp21_); 707 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 708 _g_free0 (_tmp18_); 709 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 710 _g_free0 (_tmp15_); 711 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 712 result = _tmp26_; 713 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 714 _g_free0 (sha1); 715 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 716 _g_checksum_free0 (checksum); 717 #line 92 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 718 return result; 719 #line 720 "tracker-turtle-reader.c" 720 } 721 } 722 723 724 static inline gboolean tracker_turtle_reader_next_token (TrackerTurtleReader* self, GError** error) { 725 gboolean result = FALSE; 726 gint _tmp0_; 727 gint _tmp1_; 728 gint _tmp2_; 729 TrackerTurtleReaderTokenInfo* _tmp16_; 730 gint _tmp16__length1; 731 gint _tmp17_; 732 TrackerTurtleReaderTokenInfo _tmp18_; 733 TrackerSparqlTokenType _tmp19_; 734 GError * _inner_error_ = NULL; 735 #line 97 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 736 g_return_val_if_fail (self != NULL, FALSE); 737 #line 98 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 738 _tmp0_ = self->priv->index; 739 #line 98 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 740 self->priv->index = (_tmp0_ + 1) % TRACKER_TURTLE_READER_BUFFER_SIZE; 741 #line 99 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 742 _tmp1_ = self->priv->size; 743 #line 99 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 744 self->priv->size = _tmp1_ - 1; 745 #line 100 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 746 _tmp2_ = self->priv->size; 747 #line 100 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 748 if (_tmp2_ <= 0) { 749 #line 750 "tracker-turtle-reader.c" 750 TrackerSourceLocation begin = {0};
Value stored to 'begin' during its initialization is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

751 TrackerSourceLocation end = {0};
Value stored to 'end' during its initialization is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

752 TrackerSparqlScanner* _tmp3_; 753 TrackerSourceLocation _tmp4_ = {0}; 754 TrackerSourceLocation _tmp5_ = {0}; 755 TrackerSparqlTokenType _tmp6_ = 0; 756 TrackerSparqlTokenType type; 757 TrackerTurtleReaderTokenInfo* _tmp7_; 758 gint _tmp7__length1; 759 gint _tmp8_; 760 TrackerSparqlTokenType _tmp9_; 761 TrackerTurtleReaderTokenInfo* _tmp10_; 762 gint _tmp10__length1; 763 gint _tmp11_; 764 TrackerSourceLocation _tmp12_; 765 TrackerTurtleReaderTokenInfo* _tmp13_; 766 gint _tmp13__length1;
variable '_tmp13__length1' set but not used
(emitted by gcc)
767 gint _tmp14_; 768 TrackerSourceLocation _tmp15_; 769 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 770 _tmp3_ = self->priv->scanner; 771 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 772 _tmp6_ = tracker_sparql_scanner_read_token (_tmp3_, &_tmp4_, &_tmp5_, &_inner_error_); 773 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 774 begin = _tmp4_; 775 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 776 end = _tmp5_; 777 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 778 type = _tmp6_; 779 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 780 if (_inner_error_ != NULL) { 781 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 782 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 783 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 784 g_propagate_error (error, _inner_error_); 785 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 786 return FALSE; 787 #line 788 "tracker-turtle-reader.c" 788 } else { 789 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 790 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 791 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 792 g_clear_error (&_inner_error_); 793 #line 102 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 794 return FALSE; 795 #line 796 "tracker-turtle-reader.c" 796 } 797 } 798 #line 103 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 799 _tmp7_ = self->priv->tokens; 800 #line 103 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 801 _tmp7__length1 = self->priv->tokens_length1;
Value stored to '_tmp7__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

802 #line 103 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 803 _tmp8_ = self->priv->index; 804 #line 103 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 805 _tmp9_ = type; 806 #line 103 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 807 _tmp7_[_tmp8_].type = _tmp9_; 808 #line 104 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 809 _tmp10_ = self->priv->tokens; 810 #line 104 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 811 _tmp10__length1 = self->priv->tokens_length1;
Value stored to '_tmp10__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

812 #line 104 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 813 _tmp11_ = self->priv->index; 814 #line 104 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 815 _tmp12_ = begin; 816 #line 104 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 817 _tmp10_[_tmp11_].begin = _tmp12_; 818 #line 105 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 819 _tmp13_ = self->priv->tokens; 820 #line 105 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 821 _tmp13__length1 = self->priv->tokens_length1;
Value stored to '_tmp13__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

822 #line 105 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 823 _tmp14_ = self->priv->index; 824 #line 105 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 825 _tmp15_ = end; 826 #line 105 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 827 _tmp13_[_tmp14_].end = _tmp15_; 828 #line 106 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 829 self->priv->size = 1; 830 #line 831 "tracker-turtle-reader.c" 831 } 832 #line 108 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 833 _tmp16_ = self->priv->tokens; 834 #line 108 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 835 _tmp16__length1 = self->priv->tokens_length1;
Value stored to '_tmp16__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

836 #line 108 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 837 _tmp17_ = self->priv->index; 838 #line 108 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 839 _tmp18_ = _tmp16_[_tmp17_]; 840 #line 108 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 841 _tmp19_ = _tmp18_.type; 842 #line 108 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 843 result = _tmp19_ != TRACKER_SPARQL_TOKEN_TYPE_EOF; 844 #line 108 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 845 return result; 846 #line 847 "tracker-turtle-reader.c" 847 } 848 849 850 static inline TrackerSparqlTokenType tracker_turtle_reader_current (TrackerTurtleReader* self) { 851 TrackerSparqlTokenType result = 0; 852 TrackerTurtleReaderTokenInfo* _tmp0_; 853 gint _tmp0__length1;
variable '_tmp0__length1' set but not used
(emitted by gcc)
854 gint _tmp1_; 855 TrackerTurtleReaderTokenInfo _tmp2_; 856 TrackerSparqlTokenType _tmp3_; 857 #line 111 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 858 g_return_val_if_fail (self != NULL, 0); 859 #line 112 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 860 _tmp0_ = self->priv->tokens; 861 #line 112 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 862 _tmp0__length1 = self->priv->tokens_length1;
Value stored to '_tmp0__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

863 #line 112 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 864 _tmp1_ = self->priv->index; 865 #line 112 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 866 _tmp2_ = _tmp0_[_tmp1_]; 867 #line 112 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 868 _tmp3_ = _tmp2_.type; 869 #line 112 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 870 result = _tmp3_; 871 #line 112 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 872 return result; 873 #line 874 "tracker-turtle-reader.c" 874 } 875 876 877 static inline gboolean tracker_turtle_reader_accept (TrackerTurtleReader* self, TrackerSparqlTokenType type, GError** error) { 878 gboolean result = FALSE; 879 TrackerSparqlTokenType _tmp0_ = 0; 880 TrackerSparqlTokenType _tmp1_; 881 GError * _inner_error_ = NULL; 882 #line 115 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 883 g_return_val_if_fail (self != NULL, FALSE); 884 #line 116 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 885 _tmp0_ = tracker_turtle_reader_current (self); 886 #line 116 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 887 _tmp1_ = type; 888 #line 116 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 889 if (_tmp0_ == _tmp1_) { 890 #line 117 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 891 tracker_turtle_reader_next_token (self, &_inner_error_); 892 #line 117 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 893 if (_inner_error_ != NULL) { 894 #line 117 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 895 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 896 #line 117 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 897 g_propagate_error (error, _inner_error_); 898 #line 117 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 899 return FALSE; 900 #line 901 "tracker-turtle-reader.c" 901 } else { 902 #line 117 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 903 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 904 #line 117 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 905 g_clear_error (&_inner_error_); 906 #line 117 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 907 return FALSE; 908 #line 909 "tracker-turtle-reader.c" 909 } 910 } 911 #line 118 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 912 result = TRUE; 913 #line 118 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 914 return result; 915 #line 916 "tracker-turtle-reader.c" 916 } 917 #line 120 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 918 result = FALSE; 919 #line 120 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 920 return result; 921 #line 922 "tracker-turtle-reader.c" 922 } 923 924 925 static GError* tracker_turtle_reader_get_error (TrackerTurtleReader* self, const gchar* msg) { 926 GError* result = NULL; 927 TrackerTurtleReaderTokenInfo* _tmp0_; 928 gint _tmp0__length1; 929 gint _tmp1_; 930 TrackerTurtleReaderTokenInfo _tmp2_; 931 TrackerSourceLocation _tmp3_; 932 gint _tmp4_; 933 TrackerTurtleReaderTokenInfo* _tmp5_; 934 gint _tmp5__length1;
variable '_tmp5__length1' set but not used
(emitted by gcc)
935 gint _tmp6_; 936 TrackerTurtleReaderTokenInfo _tmp7_; 937 TrackerSourceLocation _tmp8_; 938 gint _tmp9_; 939 const gchar* _tmp10_; 940 gchar* _tmp11_ = NULL; 941 gchar* _tmp12_; 942 GError* _tmp13_; 943 GError* _tmp14_; 944 #line 123 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 945 g_return_val_if_fail (self != NULL, NULL); 946 #line 123 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 947 g_return_val_if_fail (msg != NULL, NULL); 948 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 949 _tmp0_ = self->priv->tokens; 950 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 951 _tmp0__length1 = self->priv->tokens_length1;
Value stored to '_tmp0__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

952 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 953 _tmp1_ = self->priv->index; 954 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 955 _tmp2_ = _tmp0_[_tmp1_]; 956 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 957 _tmp3_ = _tmp2_.begin; 958 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 959 _tmp4_ = _tmp3_.line; 960 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 961 _tmp5_ = self->priv->tokens; 962 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 963 _tmp5__length1 = self->priv->tokens_length1;
Value stored to '_tmp5__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

964 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 965 _tmp6_ = self->priv->index; 966 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 967 _tmp7_ = _tmp5_[_tmp6_]; 968 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 969 _tmp8_ = _tmp7_.begin; 970 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 971 _tmp9_ = _tmp8_.column; 972 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 973 _tmp10_ = msg; 974 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 975 _tmp11_ = g_strdup_printf ("%d.%d: syntax error, %s", _tmp4_, _tmp9_, _tmp10_); 976 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 977 _tmp12_ = _tmp11_; 978 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 979 _tmp13_ = g_error_new_literal (TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_PARSE, _tmp12_); 980 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 981 _tmp14_ = _tmp13_; 982 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 983 _g_free0 (_tmp12_); 984 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 985 result = _tmp14_; 986 #line 124 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 987 return result; 988 #line 989 "tracker-turtle-reader.c" 989 } 990 991 992 static gboolean tracker_turtle_reader_expect (TrackerTurtleReader* self, TrackerSparqlTokenType type, GError** error) { 993 gboolean result = FALSE; 994 TrackerSparqlTokenType _tmp0_; 995 gboolean _tmp1_ = FALSE; 996 gboolean _tmp2_; 997 TrackerSparqlTokenType _tmp3_; 998 const gchar* _tmp4_ = NULL; 999 gchar* _tmp5_ = NULL; 1000 gchar* _tmp6_; 1001 GError* _tmp7_ = NULL; 1002 GError* _tmp8_; 1003 GError * _inner_error_ = NULL; 1004 #line 127 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1005 g_return_val_if_fail (self != NULL, FALSE); 1006 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1007 _tmp0_ = type; 1008 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1009 _tmp1_ = tracker_turtle_reader_accept (self, _tmp0_, &_inner_error_); 1010 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1011 _tmp2_ = _tmp1_; 1012 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1013 if (_inner_error_ != NULL) { 1014 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1015 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1016 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1017 g_propagate_error (error, _inner_error_); 1018 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1019 return FALSE; 1020 #line 1021 "tracker-turtle-reader.c" 1021 } else { 1022 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1023 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1024 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1025 g_clear_error (&_inner_error_); 1026 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1027 return FALSE; 1028 #line 1029 "tracker-turtle-reader.c" 1029 } 1030 } 1031 #line 128 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1032 if (_tmp2_) { 1033 #line 129 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1034 result = TRUE; 1035 #line 129 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1036 return result; 1037 #line 1038 "tracker-turtle-reader.c" 1038 } 1039 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1040 _tmp3_ = type; 1041 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1042 _tmp4_ = tracker_sparql_token_type_to_string (_tmp3_); 1043 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1044 _tmp5_ = g_strdup_printf ("expected %s", _tmp4_); 1045 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1046 _tmp6_ = _tmp5_; 1047 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1048 _tmp7_ = tracker_turtle_reader_get_error (self, _tmp6_); 1049 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1050 _tmp8_ = _tmp7_; 1051 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1052 _g_free0 (_tmp6_); 1053 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1054 _inner_error_ = _tmp8_; 1055 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1056 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1057 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1058 g_propagate_error (error, _inner_error_); 1059 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1060 return FALSE; 1061 #line 1062 "tracker-turtle-reader.c" 1062 } else { 1063 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1064 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1065 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1066 g_clear_error (&_inner_error_); 1067 #line 132 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1068 return FALSE; 1069 #line 1070 "tracker-turtle-reader.c" 1070 } 1071 } 1072 1073 1074 static gchar* tracker_turtle_reader_get_last_string (TrackerTurtleReader* self, gint strip) { 1075 gchar* result = NULL; 1076 gint _tmp0_; 1077 gint last_index; 1078 TrackerTurtleReaderTokenInfo* _tmp1_; 1079 gint _tmp1__length1; 1080 TrackerTurtleReaderTokenInfo _tmp2_; 1081 TrackerSourceLocation _tmp3_; 1082 gchar* _tmp4_; 1083 gint _tmp5_; 1084 TrackerTurtleReaderTokenInfo* _tmp6_; 1085 gint _tmp6__length1; 1086 TrackerTurtleReaderTokenInfo _tmp7_; 1087 TrackerSourceLocation _tmp8_; 1088 gchar* _tmp9_; 1089 TrackerTurtleReaderTokenInfo* _tmp10_; 1090 gint _tmp10__length1;
variable '_tmp10__length1' set but not used
(emitted by gcc)
1091 TrackerTurtleReaderTokenInfo _tmp11_; 1092 TrackerSourceLocation _tmp12_; 1093 gchar* _tmp13_; 1094 gint _tmp14_; 1095 gchar* _tmp15_ = NULL; 1096 #line 135 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1097 g_return_val_if_fail (self != NULL, NULL); 1098 #line 136 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1099 _tmp0_ = self->priv->index; 1100 #line 136 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1101 last_index = ((_tmp0_ + TRACKER_TURTLE_READER_BUFFER_SIZE) - 1) % TRACKER_TURTLE_READER_BUFFER_SIZE; 1102 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1103 _tmp1_ = self->priv->tokens; 1104 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1105 _tmp1__length1 = self->priv->tokens_length1;
Value stored to '_tmp1__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

1106 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1107 _tmp2_ = _tmp1_[last_index]; 1108 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1109 _tmp3_ = _tmp2_.begin; 1110 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1111 _tmp4_ = _tmp3_.pos; 1112 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1113 _tmp5_ = strip; 1114 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1115 _tmp6_ = self->priv->tokens; 1116 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1117 _tmp6__length1 = self->priv->tokens_length1;
Value stored to '_tmp6__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

1118 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1119 _tmp7_ = _tmp6_[last_index]; 1120 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1121 _tmp8_ = _tmp7_.end; 1122 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1123 _tmp9_ = _tmp8_.pos; 1124 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1125 _tmp10_ = self->priv->tokens; 1126 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1127 _tmp10__length1 = self->priv->tokens_length1;
Value stored to '_tmp10__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

1128 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1129 _tmp11_ = _tmp10_[last_index]; 1130 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1131 _tmp12_ = _tmp11_.begin; 1132 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1133 _tmp13_ = _tmp12_.pos; 1134 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1135 _tmp14_ = strip; 1136 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1137 _tmp15_ = string_substring ((const gchar*) (_tmp4_ + _tmp5_), (glong) 0, (glong) ((gint) ((_tmp9_ - _tmp13_) - (2 * _tmp14_)))); 1138 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1139 result = _tmp15_; 1140 #line 137 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1141 return result; 1142 #line 1143 "tracker-turtle-reader.c" 1143 } 1144 1145 1146 static gchar* tracker_turtle_reader_resolve_prefixed_name (TrackerTurtleReader* self, const gchar* prefix, const gchar* local_name, GError** error) { 1147 gchar* result = NULL; 1148 GHashTable* _tmp0_; 1149 const gchar* _tmp1_; 1150 gconstpointer _tmp2_ = NULL; 1151 gchar* _tmp3_; 1152 gchar* ns; 1153 const gchar* _tmp4_; 1154 const gchar* _tmp10_; 1155 const gchar* _tmp11_; 1156 gchar* _tmp12_; 1157 GError * _inner_error_ = NULL; 1158 #line 140 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1159 g_return_val_if_fail (self != NULL, NULL); 1160 #line 140 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1161 g_return_val_if_fail (prefix != NULL, NULL); 1162 #line 140 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1163 g_return_val_if_fail (local_name != NULL, NULL); 1164 #line 141 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1165 _tmp0_ = self->priv->prefix_map; 1166 #line 141 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1167 _tmp1_ = prefix; 1168 #line 141 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1169 _tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_); 1170 #line 141 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1171 _tmp3_ = g_strdup ((const gchar*) _tmp2_); 1172 #line 141 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1173 ns = _tmp3_; 1174 #line 142 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1175 _tmp4_ = ns; 1176 #line 142 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1177 if (_tmp4_ == NULL) { 1178 #line 1179 "tracker-turtle-reader.c" 1179 const gchar* _tmp5_; 1180 gchar* _tmp6_ = NULL; 1181 gchar* _tmp7_; 1182 GError* _tmp8_ = NULL; 1183 GError* _tmp9_; 1184 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1185 _tmp5_ = prefix; 1186 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1187 _tmp6_ = g_strdup_printf ("use of undefined prefix `%s'", _tmp5_); 1188 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1189 _tmp7_ = _tmp6_; 1190 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1191 _tmp8_ = tracker_turtle_reader_get_error (self, _tmp7_); 1192 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1193 _tmp9_ = _tmp8_; 1194 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1195 _g_free0 (_tmp7_); 1196 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1197 _inner_error_ = _tmp9_; 1198 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1199 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1200 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1201 g_propagate_error (error, _inner_error_); 1202 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1203 _g_free0 (ns); 1204 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1205 return NULL; 1206 #line 1207 "tracker-turtle-reader.c" 1207 } else { 1208 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1209 _g_free0 (ns); 1210 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1211 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1212 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1213 g_clear_error (&_inner_error_); 1214 #line 143 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1215 return NULL; 1216 #line 1217 "tracker-turtle-reader.c" 1217 } 1218 } 1219 #line 145 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1220 _tmp10_ = ns; 1221 #line 145 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1222 _tmp11_ = local_name; 1223 #line 145 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1224 _tmp12_ = g_strconcat (_tmp10_, _tmp11_, NULL); 1225 #line 145 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1226 result = _tmp12_; 1227 #line 145 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1228 _g_free0 (ns); 1229 #line 145 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1230 return result; 1231 #line 1232 "tracker-turtle-reader.c" 1232 } 1233 1234 1235 static void _vala_array_add12 (gchar*** array, int* length, int* size, gchar* value) { 1236 #line 254 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1237 if ((*length) == (*size)) { 1238 #line 254 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1239 *size = (*size) ? (2 * (*size)) : 4; 1240 #line 254 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1241 *array = g_renew (gchar*, *array, (*size) + 1); 1242 #line 1243 "tracker-turtle-reader.c" 1243 } 1244 #line 254 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1245 (*array)[(*length)++] = value; 1246 #line 254 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1247 (*array)[*length] = NULL; 1248 #line 1249 "tracker-turtle-reader.c" 1249 } 1250 1251 1252 static void _vala_array_add13 (gchar*** array, int* length, int* size, gchar* value) { 1253 #line 255 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1254 if ((*length) == (*size)) { 1255 #line 255 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1256 *size = (*size) ? (2 * (*size)) : 4; 1257 #line 255 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1258 *array = g_renew (gchar*, *array, (*size) + 1); 1259 #line 1260 "tracker-turtle-reader.c" 1260 } 1261 #line 255 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1262 (*array)[(*length)++] = value; 1263 #line 255 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1264 (*array)[*length] = NULL; 1265 #line 1266 "tracker-turtle-reader.c" 1266 } 1267 1268 1269 gboolean tracker_turtle_reader_next (TrackerTurtleReader* self, GError** error) { 1270 gboolean result = FALSE; 1271 GError * _inner_error_ = NULL; 1272 #line 148 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1273 g_return_val_if_fail (self != NULL, FALSE); 1274 #line 149 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1275 while (TRUE) { 1276 #line 1277 "tracker-turtle-reader.c" 1277 TrackerTurtleReaderState _tmp0_; 1278 #line 150 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1279 _tmp0_ = self->priv->state; 1280 #line 150 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1281 switch (_tmp0_) { 1282 #line 150 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1283 case TRACKER_TURTLE_READER_STATE_INITIAL: 1284 #line 1285 "tracker-turtle-reader.c" 1285 { 1286 #line 152 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1287 tracker_turtle_reader_next_token (self, &_inner_error_); 1288 #line 152 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1289 if (_inner_error_ != NULL) { 1290 #line 152 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1291 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1292 #line 152 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1293 g_propagate_error (error, _inner_error_); 1294 #line 152 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1295 return FALSE; 1296 #line 1297 "tracker-turtle-reader.c" 1297 } else { 1298 #line 152 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1299 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1300 #line 152 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1301 g_clear_error (&_inner_error_); 1302 #line 152 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1303 return FALSE; 1304 #line 1305 "tracker-turtle-reader.c" 1305 } 1306 } 1307 #line 153 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1308 self->priv->state = TRACKER_TURTLE_READER_STATE_BOS; 1309 #line 154 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1310 continue; 1311 #line 1312 "tracker-turtle-reader.c" 1312 } 1313 #line 150 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1314 case TRACKER_TURTLE_READER_STATE_BOS: 1315 #line 1316 "tracker-turtle-reader.c" 1316 { 1317 gboolean _tmp1_ = FALSE; 1318 gboolean _tmp2_; 1319 gboolean _tmp16_ = FALSE; 1320 gboolean _tmp17_; 1321 #line 157 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1322 _tmp1_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_ATPREFIX, &_inner_error_); 1323 #line 157 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1324 _tmp2_ = _tmp1_; 1325 #line 157 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1326 if (_inner_error_ != NULL) { 1327 #line 157 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1328 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1329 #line 157 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1330 g_propagate_error (error, _inner_error_); 1331 #line 157 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1332 return FALSE; 1333 #line 1334 "tracker-turtle-reader.c" 1334 } else { 1335 #line 157 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1336 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1337 #line 157 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1338 g_clear_error (&_inner_error_); 1339 #line 157 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1340 return FALSE; 1341 #line 1342 "tracker-turtle-reader.c" 1342 } 1343 } 1344 #line 157 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1345 if (_tmp2_) { 1346 #line 1347 "tracker-turtle-reader.c" 1347 gchar* _tmp3_; 1348 gchar* ns; 1349 gboolean _tmp4_ = FALSE; 1350 gboolean _tmp5_; 1351 gchar* _tmp7_ = NULL; 1352 gchar* uri; 1353 GHashTable* _tmp8_; 1354 const gchar* _tmp9_; 1355 gchar* _tmp10_; 1356 const gchar* _tmp11_; 1357 gchar* _tmp12_; 1358 #line 158 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1359 _tmp3_ = g_strdup (""); 1360 #line 158 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1361 ns = _tmp3_; 1362 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1363 _tmp4_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_); 1364 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1365 _tmp5_ = _tmp4_; 1366 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1367 if (_inner_error_ != NULL) { 1368 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1369 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1370 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1371 g_propagate_error (error, _inner_error_); 1372 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1373 _g_free0 (ns); 1374 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1375 return FALSE; 1376 #line 1377 "tracker-turtle-reader.c" 1377 } else { 1378 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1379 _g_free0 (ns); 1380 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1381 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1382 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1383 g_clear_error (&_inner_error_); 1384 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1385 return FALSE; 1386 #line 1387 "tracker-turtle-reader.c" 1387 } 1388 } 1389 #line 159 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1390 if (_tmp5_) { 1391 #line 1392 "tracker-turtle-reader.c" 1392 gchar* _tmp6_ = NULL; 1393 #line 160 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1394 _tmp6_ = tracker_turtle_reader_get_last_string (self, 0); 1395 #line 160 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1396 _g_free0 (ns); 1397 #line 160 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1398 ns = _tmp6_; 1399 #line 1400 "tracker-turtle-reader.c" 1400 } 1401 #line 162 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1402 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 1403 #line 162 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1404 if (_inner_error_ != NULL) { 1405 #line 162 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1406 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1407 #line 162 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1408 g_propagate_error (error, _inner_error_); 1409 #line 162 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1410 _g_free0 (ns); 1411 #line 162 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1412 return FALSE; 1413 #line 1414 "tracker-turtle-reader.c" 1414 } else { 1415 #line 162 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1416 _g_free0 (ns); 1417 #line 162 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1418 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1419 #line 162 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1420 g_clear_error (&_inner_error_); 1421 #line 162 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1422 return FALSE; 1423 #line 1424 "tracker-turtle-reader.c" 1424 } 1425 } 1426 #line 163 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1427 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_); 1428 #line 163 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1429 if (_inner_error_ != NULL) { 1430 #line 163 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1431 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1432 #line 163 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1433 g_propagate_error (error, _inner_error_); 1434 #line 163 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1435 _g_free0 (ns); 1436 #line 163 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1437 return FALSE; 1438 #line 1439 "tracker-turtle-reader.c" 1439 } else { 1440 #line 163 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1441 _g_free0 (ns); 1442 #line 163 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1443 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1444 #line 163 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1445 g_clear_error (&_inner_error_); 1446 #line 163 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1447 return FALSE; 1448 #line 1449 "tracker-turtle-reader.c" 1449 } 1450 } 1451 #line 164 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1452 _tmp7_ = tracker_turtle_reader_get_last_string (self, 1); 1453 #line 164 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1454 uri = _tmp7_; 1455 #line 165 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1456 _tmp8_ = self->priv->prefix_map; 1457 #line 165 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1458 _tmp9_ = ns; 1459 #line 165 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1460 _tmp10_ = g_strdup (_tmp9_); 1461 #line 165 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1462 _tmp11_ = uri; 1463 #line 165 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1464 _tmp12_ = g_strdup (_tmp11_); 1465 #line 165 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1466 g_hash_table_insert (_tmp8_, _tmp10_, _tmp12_); 1467 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1468 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_DOT, &_inner_error_); 1469 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1470 if (_inner_error_ != NULL) { 1471 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1472 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1473 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1474 g_propagate_error (error, _inner_error_); 1475 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1476 _g_free0 (uri); 1477 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1478 _g_free0 (ns); 1479 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1480 return FALSE; 1481 #line 1482 "tracker-turtle-reader.c" 1482 } else { 1483 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1484 _g_free0 (uri); 1485 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1486 _g_free0 (ns); 1487 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1488 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1489 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1490 g_clear_error (&_inner_error_); 1491 #line 166 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1492 return FALSE; 1493 #line 1494 "tracker-turtle-reader.c" 1494 } 1495 } 1496 #line 167 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1497 _g_free0 (uri); 1498 #line 167 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1499 _g_free0 (ns); 1500 #line 167 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1501 continue; 1502 #line 1503 "tracker-turtle-reader.c" 1503 } else { 1504 gboolean _tmp13_ = FALSE; 1505 gboolean _tmp14_; 1506 #line 168 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1507 _tmp13_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_ATBASE, &_inner_error_); 1508 #line 168 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1509 _tmp14_ = _tmp13_; 1510 #line 168 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1511 if (_inner_error_ != NULL) { 1512 #line 168 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1513 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1514 #line 168 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1515 g_propagate_error (error, _inner_error_); 1516 #line 168 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1517 return FALSE; 1518 #line 1519 "tracker-turtle-reader.c" 1519 } else { 1520 #line 168 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1521 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1522 #line 168 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1523 g_clear_error (&_inner_error_); 1524 #line 168 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1525 return FALSE; 1526 #line 1527 "tracker-turtle-reader.c" 1527 } 1528 } 1529 #line 168 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1530 if (_tmp14_) { 1531 #line 169 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1532 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_); 1533 #line 169 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1534 if (_inner_error_ != NULL) { 1535 #line 169 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1536 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1537 #line 169 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1538 g_propagate_error (error, _inner_error_); 1539 #line 169 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1540 return FALSE; 1541 #line 1542 "tracker-turtle-reader.c" 1542 } else { 1543 #line 169 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1544 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1545 #line 169 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1546 g_clear_error (&_inner_error_); 1547 #line 169 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1548 return FALSE; 1549 #line 1550 "tracker-turtle-reader.c" 1550 } 1551 } 1552 #line 170 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1553 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_DOT, &_inner_error_); 1554 #line 170 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1555 if (_inner_error_ != NULL) { 1556 #line 170 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1557 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1558 #line 170 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1559 g_propagate_error (error, _inner_error_); 1560 #line 170 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1561 return FALSE; 1562 #line 1563 "tracker-turtle-reader.c" 1563 } else { 1564 #line 170 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1565 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1566 #line 170 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1567 g_clear_error (&_inner_error_); 1568 #line 170 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1569 return FALSE; 1570 #line 1571 "tracker-turtle-reader.c" 1571 } 1572 } 1573 #line 171 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1574 continue; 1575 #line 1576 "tracker-turtle-reader.c" 1576 } else { 1577 TrackerSparqlTokenType _tmp15_ = 0; 1578 #line 172 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1579 _tmp15_ = tracker_turtle_reader_current (self); 1580 #line 172 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1581 if (_tmp15_ == TRACKER_SPARQL_TOKEN_TYPE_EOF) { 1582 #line 173 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1583 result = FALSE; 1584 #line 173 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1585 return result; 1586 #line 1587 "tracker-turtle-reader.c" 1587 } 1588 } 1589 } 1590 #line 176 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1591 _tmp16_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_); 1592 #line 176 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1593 _tmp17_ = _tmp16_; 1594 #line 176 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1595 if (_inner_error_ != NULL) { 1596 #line 176 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1597 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1598 #line 176 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1599 g_propagate_error (error, _inner_error_); 1600 #line 176 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1601 return FALSE; 1602 #line 1603 "tracker-turtle-reader.c" 1603 } else { 1604 #line 176 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1605 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1606 #line 176 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1607 g_clear_error (&_inner_error_); 1608 #line 176 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1609 return FALSE; 1610 #line 1611 "tracker-turtle-reader.c" 1611 } 1612 } 1613 #line 176 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1614 if (_tmp17_) { 1615 #line 1616 "tracker-turtle-reader.c" 1616 gchar* _tmp18_ = NULL; 1617 gchar* _tmp19_; 1618 #line 177 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1619 _tmp18_ = tracker_turtle_reader_get_last_string (self, 1); 1620 #line 177 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1621 _tmp19_ = _tmp18_; 1622 #line 177 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1623 tracker_turtle_reader_set_subject (self, _tmp19_); 1624 #line 177 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1625 _g_free0 (_tmp19_); 1626 #line 178 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1627 self->priv->state = TRACKER_TURTLE_READER_STATE_SUBJECT; 1628 #line 179 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1629 continue; 1630 #line 1631 "tracker-turtle-reader.c" 1631 } else { 1632 gboolean _tmp20_ = FALSE; 1633 gboolean _tmp21_; 1634 #line 180 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1635 _tmp20_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_); 1636 #line 180 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1637 _tmp21_ = _tmp20_; 1638 #line 180 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1639 if (_inner_error_ != NULL) { 1640 #line 180 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1641 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1642 #line 180 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1643 g_propagate_error (error, _inner_error_); 1644 #line 180 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1645 return FALSE; 1646 #line 1647 "tracker-turtle-reader.c" 1647 } else { 1648 #line 180 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1649 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1650 #line 180 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1651 g_clear_error (&_inner_error_); 1652 #line 180 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1653 return FALSE; 1654 #line 1655 "tracker-turtle-reader.c" 1655 } 1656 } 1657 #line 180 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1658 if (_tmp21_) { 1659 #line 1660 "tracker-turtle-reader.c" 1660 gchar* _tmp22_ = NULL; 1661 gchar* ns; 1662 const gchar* _tmp23_; 1663 gchar* _tmp24_ = NULL; 1664 gchar* _tmp25_; 1665 gchar* _tmp26_ = NULL; 1666 gchar* _tmp27_; 1667 gchar* _tmp28_ = NULL; 1668 gchar* _tmp29_; 1669 gchar* _tmp30_; 1670 gchar* _tmp31_; 1671 #line 182 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1672 _tmp22_ = tracker_turtle_reader_get_last_string (self, 0); 1673 #line 182 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1674 ns = _tmp22_; 1675 #line 183 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1676 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 1677 #line 183 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1678 if (_inner_error_ != NULL) { 1679 #line 183 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1680 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1681 #line 183 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1682 g_propagate_error (error, _inner_error_); 1683 #line 183 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1684 _g_free0 (ns); 1685 #line 183 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1686 return FALSE; 1687 #line 1688 "tracker-turtle-reader.c" 1688 } else { 1689 #line 183 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1690 _g_free0 (ns); 1691 #line 183 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1692 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1693 #line 183 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1694 g_clear_error (&_inner_error_); 1695 #line 183 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1696 return FALSE; 1697 #line 1698 "tracker-turtle-reader.c" 1698 } 1699 } 1700 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1701 _tmp23_ = ns; 1702 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1703 _tmp24_ = tracker_turtle_reader_get_last_string (self, 0); 1704 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1705 _tmp25_ = _tmp24_; 1706 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1707 _tmp26_ = string_substring (_tmp25_, (glong) 1, (glong) (-1)); 1708 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1709 _tmp27_ = _tmp26_; 1710 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1711 _tmp28_ = tracker_turtle_reader_resolve_prefixed_name (self, _tmp23_, _tmp27_, &_inner_error_); 1712 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1713 _tmp29_ = _tmp28_; 1714 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1715 _g_free0 (_tmp27_); 1716 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1717 _g_free0 (_tmp25_); 1718 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1719 _tmp30_ = _tmp29_; 1720 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1721 if (_inner_error_ != NULL) { 1722 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1723 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1724 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1725 g_propagate_error (error, _inner_error_); 1726 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1727 _g_free0 (ns); 1728 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1729 return FALSE; 1730 #line 1731 "tracker-turtle-reader.c" 1731 } else { 1732 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1733 _g_free0 (ns); 1734 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1735 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1736 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1737 g_clear_error (&_inner_error_); 1738 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1739 return FALSE; 1740 #line 1741 "tracker-turtle-reader.c" 1741 } 1742 } 1743 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1744 _tmp31_ = _tmp30_; 1745 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1746 tracker_turtle_reader_set_subject (self, _tmp31_); 1747 #line 184 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1748 _g_free0 (_tmp31_); 1749 #line 185 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1750 self->priv->state = TRACKER_TURTLE_READER_STATE_SUBJECT; 1751 #line 186 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1752 _g_free0 (ns); 1753 #line 186 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1754 continue; 1755 #line 1756 "tracker-turtle-reader.c" 1756 } else { 1757 gboolean _tmp32_ = FALSE; 1758 gboolean _tmp33_; 1759 #line 187 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1760 _tmp32_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 1761 #line 187 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1762 _tmp33_ = _tmp32_; 1763 #line 187 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1764 if (_inner_error_ != NULL) { 1765 #line 187 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1766 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1767 #line 187 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1768 g_propagate_error (error, _inner_error_); 1769 #line 187 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1770 return FALSE; 1771 #line 1772 "tracker-turtle-reader.c" 1772 } else { 1773 #line 187 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1774 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1775 #line 187 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1776 g_clear_error (&_inner_error_); 1777 #line 187 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1778 return FALSE; 1779 #line 1780 "tracker-turtle-reader.c" 1780 } 1781 } 1782 #line 187 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1783 if (_tmp33_) { 1784 #line 1785 "tracker-turtle-reader.c" 1785 gchar* _tmp34_ = NULL; 1786 gchar* _tmp35_; 1787 gchar* _tmp36_ = NULL; 1788 gchar* _tmp37_; 1789 gchar* _tmp38_ = NULL; 1790 gchar* _tmp39_; 1791 gchar* _tmp40_; 1792 gchar* _tmp41_; 1793 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1794 _tmp34_ = tracker_turtle_reader_get_last_string (self, 0); 1795 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1796 _tmp35_ = _tmp34_; 1797 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1798 _tmp36_ = string_substring (_tmp35_, (glong) 1, (glong) (-1)); 1799 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1800 _tmp37_ = _tmp36_; 1801 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1802 _tmp38_ = tracker_turtle_reader_resolve_prefixed_name (self, "", _tmp37_, &_inner_error_); 1803 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1804 _tmp39_ = _tmp38_; 1805 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1806 _g_free0 (_tmp37_); 1807 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1808 _g_free0 (_tmp35_); 1809 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1810 _tmp40_ = _tmp39_; 1811 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1812 if (_inner_error_ != NULL) { 1813 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1814 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1815 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1816 g_propagate_error (error, _inner_error_); 1817 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1818 return FALSE; 1819 #line 1820 "tracker-turtle-reader.c" 1820 } else { 1821 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1822 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1823 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1824 g_clear_error (&_inner_error_); 1825 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1826 return FALSE; 1827 #line 1828 "tracker-turtle-reader.c" 1828 } 1829 } 1830 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1831 _tmp41_ = _tmp40_; 1832 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1833 tracker_turtle_reader_set_subject (self, _tmp41_); 1834 #line 189 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1835 _g_free0 (_tmp41_); 1836 #line 190 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1837 self->priv->state = TRACKER_TURTLE_READER_STATE_SUBJECT; 1838 #line 191 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1839 continue; 1840 #line 1841 "tracker-turtle-reader.c" 1841 } else { 1842 gboolean _tmp42_ = FALSE; 1843 gboolean _tmp43_; 1844 #line 192 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1845 _tmp42_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_BLANK_NODE, &_inner_error_); 1846 #line 192 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1847 _tmp43_ = _tmp42_; 1848 #line 192 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1849 if (_inner_error_ != NULL) { 1850 #line 192 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1851 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1852 #line 192 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1853 g_propagate_error (error, _inner_error_); 1854 #line 192 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1855 return FALSE; 1856 #line 1857 "tracker-turtle-reader.c" 1857 } else { 1858 #line 192 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1859 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1860 #line 192 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1861 g_clear_error (&_inner_error_); 1862 #line 192 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1863 return FALSE; 1864 #line 1865 "tracker-turtle-reader.c" 1865 } 1866 } 1867 #line 192 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1868 if (_tmp43_) { 1869 #line 1870 "tracker-turtle-reader.c" 1870 gchar* _tmp44_ = NULL; 1871 gchar* _tmp45_; 1872 gchar* _tmp46_ = NULL; 1873 gchar* _tmp47_; 1874 gchar* _tmp48_ = NULL; 1875 gchar* _tmp49_; 1876 #line 194 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1877 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 1878 #line 194 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1879 if (_inner_error_ != NULL) { 1880 #line 194 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1881 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1882 #line 194 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1883 g_propagate_error (error, _inner_error_); 1884 #line 194 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1885 return FALSE; 1886 #line 1887 "tracker-turtle-reader.c" 1887 } else { 1888 #line 194 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1889 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1890 #line 194 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1891 g_clear_error (&_inner_error_); 1892 #line 194 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1893 return FALSE; 1894 #line 1895 "tracker-turtle-reader.c" 1895 } 1896 } 1897 #line 195 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1898 _tmp44_ = tracker_turtle_reader_get_last_string (self, 0); 1899 #line 195 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1900 _tmp45_ = _tmp44_; 1901 #line 195 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1902 _tmp46_ = string_substring (_tmp45_, (glong) 1, (glong) (-1)); 1903 #line 195 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1904 _tmp47_ = _tmp46_; 1905 #line 195 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1906 _tmp48_ = tracker_turtle_reader_generate_bnodeid (self, _tmp47_); 1907 #line 195 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1908 _tmp49_ = _tmp48_; 1909 #line 195 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1910 tracker_turtle_reader_set_subject (self, _tmp49_); 1911 #line 195 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1912 _g_free0 (_tmp49_); 1913 #line 195 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1914 _g_free0 (_tmp47_); 1915 #line 195 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1916 _g_free0 (_tmp45_); 1917 #line 196 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1918 self->priv->state = TRACKER_TURTLE_READER_STATE_SUBJECT; 1919 #line 197 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1920 continue; 1921 #line 1922 "tracker-turtle-reader.c" 1922 } else { 1923 GError* _tmp50_ = NULL; 1924 #line 199 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1925 _tmp50_ = tracker_turtle_reader_get_error (self, "expected subject"); 1926 #line 199 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1927 _inner_error_ = _tmp50_; 1928 #line 199 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1929 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1930 #line 199 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1931 g_propagate_error (error, _inner_error_); 1932 #line 199 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1933 return FALSE; 1934 #line 1935 "tracker-turtle-reader.c" 1935 } else { 1936 #line 199 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1937 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1938 #line 199 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1939 g_clear_error (&_inner_error_); 1940 #line 199 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1941 return FALSE; 1942 #line 1943 "tracker-turtle-reader.c" 1943 } 1944 } 1945 } 1946 } 1947 } 1948 } 1949 #line 150 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1950 case TRACKER_TURTLE_READER_STATE_SUBJECT: 1951 #line 1952 "tracker-turtle-reader.c" 1952 { 1953 gboolean _tmp51_ = FALSE; 1954 gboolean _tmp52_; 1955 #line 203 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1956 _tmp51_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_); 1957 #line 203 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1958 _tmp52_ = _tmp51_; 1959 #line 203 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1960 if (_inner_error_ != NULL) { 1961 #line 203 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1962 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 1963 #line 203 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1964 g_propagate_error (error, _inner_error_); 1965 #line 203 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1966 return FALSE; 1967 #line 1968 "tracker-turtle-reader.c" 1968 } else { 1969 #line 203 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1970 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 1971 #line 203 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1972 g_clear_error (&_inner_error_); 1973 #line 203 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1974 return FALSE; 1975 #line 1976 "tracker-turtle-reader.c" 1976 } 1977 } 1978 #line 203 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1979 if (_tmp52_) { 1980 #line 1981 "tracker-turtle-reader.c" 1981 gchar* _tmp53_ = NULL; 1982 gchar* _tmp54_; 1983 #line 204 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1984 _tmp53_ = tracker_turtle_reader_get_last_string (self, 1); 1985 #line 204 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1986 _tmp54_ = _tmp53_; 1987 #line 204 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1988 tracker_turtle_reader_set_predicate (self, _tmp54_); 1989 #line 204 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1990 _g_free0 (_tmp54_); 1991 #line 205 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1992 self->priv->state = TRACKER_TURTLE_READER_STATE_PREDICATE; 1993 #line 206 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 1994 continue; 1995 #line 1996 "tracker-turtle-reader.c" 1996 } else { 1997 gboolean _tmp55_ = FALSE; 1998 gboolean _tmp56_; 1999 #line 207 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2000 _tmp55_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_); 2001 #line 207 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2002 _tmp56_ = _tmp55_; 2003 #line 207 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2004 if (_inner_error_ != NULL) { 2005 #line 207 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2006 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2007 #line 207 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2008 g_propagate_error (error, _inner_error_); 2009 #line 207 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2010 return FALSE; 2011 #line 2012 "tracker-turtle-reader.c" 2012 } else { 2013 #line 207 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2014 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2015 #line 207 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2016 g_clear_error (&_inner_error_); 2017 #line 207 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2018 return FALSE; 2019 #line 2020 "tracker-turtle-reader.c" 2020 } 2021 } 2022 #line 207 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2023 if (_tmp56_) { 2024 #line 2025 "tracker-turtle-reader.c" 2025 gchar* _tmp57_ = NULL; 2026 gchar* ns; 2027 const gchar* _tmp58_; 2028 gchar* _tmp59_ = NULL; 2029 gchar* _tmp60_; 2030 gchar* _tmp61_ = NULL; 2031 gchar* _tmp62_; 2032 gchar* _tmp63_ = NULL; 2033 gchar* _tmp64_; 2034 gchar* _tmp65_; 2035 gchar* _tmp66_; 2036 #line 208 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2037 _tmp57_ = tracker_turtle_reader_get_last_string (self, 0); 2038 #line 208 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2039 ns = _tmp57_; 2040 #line 209 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2041 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 2042 #line 209 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2043 if (_inner_error_ != NULL) { 2044 #line 209 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2045 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2046 #line 209 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2047 g_propagate_error (error, _inner_error_); 2048 #line 209 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2049 _g_free0 (ns); 2050 #line 209 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2051 return FALSE; 2052 #line 2053 "tracker-turtle-reader.c" 2053 } else { 2054 #line 209 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2055 _g_free0 (ns); 2056 #line 209 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2057 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2058 #line 209 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2059 g_clear_error (&_inner_error_); 2060 #line 209 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2061 return FALSE; 2062 #line 2063 "tracker-turtle-reader.c" 2063 } 2064 } 2065 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2066 _tmp58_ = ns; 2067 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2068 _tmp59_ = tracker_turtle_reader_get_last_string (self, 0); 2069 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2070 _tmp60_ = _tmp59_; 2071 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2072 _tmp61_ = string_substring (_tmp60_, (glong) 1, (glong) (-1)); 2073 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2074 _tmp62_ = _tmp61_; 2075 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2076 _tmp63_ = tracker_turtle_reader_resolve_prefixed_name (self, _tmp58_, _tmp62_, &_inner_error_); 2077 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2078 _tmp64_ = _tmp63_; 2079 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2080 _g_free0 (_tmp62_); 2081 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2082 _g_free0 (_tmp60_); 2083 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2084 _tmp65_ = _tmp64_; 2085 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2086 if (_inner_error_ != NULL) { 2087 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2088 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2089 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2090 g_propagate_error (error, _inner_error_); 2091 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2092 _g_free0 (ns); 2093 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2094 return FALSE; 2095 #line 2096 "tracker-turtle-reader.c" 2096 } else { 2097 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2098 _g_free0 (ns); 2099 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2100 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2101 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2102 g_clear_error (&_inner_error_); 2103 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2104 return FALSE; 2105 #line 2106 "tracker-turtle-reader.c" 2106 } 2107 } 2108 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2109 _tmp66_ = _tmp65_; 2110 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2111 tracker_turtle_reader_set_predicate (self, _tmp66_); 2112 #line 210 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2113 _g_free0 (_tmp66_); 2114 #line 211 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2115 self->priv->state = TRACKER_TURTLE_READER_STATE_PREDICATE; 2116 #line 212 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2117 _g_free0 (ns); 2118 #line 212 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2119 continue; 2120 #line 2121 "tracker-turtle-reader.c" 2121 } else { 2122 gboolean _tmp67_ = FALSE; 2123 gboolean _tmp68_; 2124 #line 213 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2125 _tmp67_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 2126 #line 213 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2127 _tmp68_ = _tmp67_; 2128 #line 213 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2129 if (_inner_error_ != NULL) { 2130 #line 213 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2131 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2132 #line 213 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2133 g_propagate_error (error, _inner_error_); 2134 #line 213 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2135 return FALSE; 2136 #line 2137 "tracker-turtle-reader.c" 2137 } else { 2138 #line 213 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2139 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2140 #line 213 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2141 g_clear_error (&_inner_error_); 2142 #line 213 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2143 return FALSE; 2144 #line 2145 "tracker-turtle-reader.c" 2145 } 2146 } 2147 #line 213 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2148 if (_tmp68_) { 2149 #line 2150 "tracker-turtle-reader.c" 2150 gchar* _tmp69_ = NULL; 2151 gchar* _tmp70_; 2152 gchar* _tmp71_ = NULL; 2153 gchar* _tmp72_; 2154 gchar* _tmp73_ = NULL; 2155 gchar* _tmp74_; 2156 gchar* _tmp75_; 2157 gchar* _tmp76_; 2158 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2159 _tmp69_ = tracker_turtle_reader_get_last_string (self, 0); 2160 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2161 _tmp70_ = _tmp69_; 2162 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2163 _tmp71_ = string_substring (_tmp70_, (glong) 1, (glong) (-1)); 2164 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2165 _tmp72_ = _tmp71_; 2166 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2167 _tmp73_ = tracker_turtle_reader_resolve_prefixed_name (self, "", _tmp72_, &_inner_error_); 2168 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2169 _tmp74_ = _tmp73_; 2170 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2171 _g_free0 (_tmp72_); 2172 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2173 _g_free0 (_tmp70_); 2174 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2175 _tmp75_ = _tmp74_; 2176 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2177 if (_inner_error_ != NULL) { 2178 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2179 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2180 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2181 g_propagate_error (error, _inner_error_); 2182 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2183 return FALSE; 2184 #line 2185 "tracker-turtle-reader.c" 2185 } else { 2186 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2187 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2188 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2189 g_clear_error (&_inner_error_); 2190 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2191 return FALSE; 2192 #line 2193 "tracker-turtle-reader.c" 2193 } 2194 } 2195 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2196 _tmp76_ = _tmp75_; 2197 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2198 tracker_turtle_reader_set_predicate (self, _tmp76_); 2199 #line 214 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2200 _g_free0 (_tmp76_); 2201 #line 215 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2202 self->priv->state = TRACKER_TURTLE_READER_STATE_PREDICATE; 2203 #line 216 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2204 continue; 2205 #line 2206 "tracker-turtle-reader.c" 2206 } else { 2207 gboolean _tmp77_ = FALSE; 2208 gboolean _tmp78_; 2209 #line 217 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2210 _tmp77_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_A, &_inner_error_); 2211 #line 217 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2212 _tmp78_ = _tmp77_; 2213 #line 217 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2214 if (_inner_error_ != NULL) { 2215 #line 217 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2216 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2217 #line 217 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2218 g_propagate_error (error, _inner_error_); 2219 #line 217 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2220 return FALSE; 2221 #line 2222 "tracker-turtle-reader.c" 2222 } else { 2223 #line 217 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2224 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2225 #line 217 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2226 g_clear_error (&_inner_error_); 2227 #line 217 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2228 return FALSE; 2229 #line 2230 "tracker-turtle-reader.c" 2230 } 2231 } 2232 #line 217 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2233 if (_tmp78_) { 2234 #line 218 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2235 tracker_turtle_reader_set_predicate (self, "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"); 2236 #line 219 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2237 self->priv->state = TRACKER_TURTLE_READER_STATE_PREDICATE; 2238 #line 220 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2239 continue; 2240 #line 2241 "tracker-turtle-reader.c" 2241 } else { 2242 GError* _tmp79_ = NULL; 2243 #line 222 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2244 _tmp79_ = tracker_turtle_reader_get_error (self, "expected predicate"); 2245 #line 222 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2246 _inner_error_ = _tmp79_; 2247 #line 222 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2248 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2249 #line 222 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2250 g_propagate_error (error, _inner_error_); 2251 #line 222 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2252 return FALSE; 2253 #line 2254 "tracker-turtle-reader.c" 2254 } else { 2255 #line 222 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2256 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2257 #line 222 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2258 g_clear_error (&_inner_error_); 2259 #line 222 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2260 return FALSE; 2261 #line 2262 "tracker-turtle-reader.c" 2262 } 2263 } 2264 } 2265 } 2266 } 2267 } 2268 #line 150 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2269 case TRACKER_TURTLE_READER_STATE_PREDICATE: 2270 #line 2271 "tracker-turtle-reader.c" 2271 { 2272 gboolean _tmp80_ = FALSE; 2273 gboolean _tmp81_; 2274 #line 226 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2275 _tmp80_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_); 2276 #line 226 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2277 _tmp81_ = _tmp80_; 2278 #line 226 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2279 if (_inner_error_ != NULL) { 2280 #line 226 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2281 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2282 #line 226 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2283 g_propagate_error (error, _inner_error_); 2284 #line 226 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2285 return FALSE; 2286 #line 2287 "tracker-turtle-reader.c" 2287 } else { 2288 #line 226 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2289 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2290 #line 226 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2291 g_clear_error (&_inner_error_); 2292 #line 226 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2293 return FALSE; 2294 #line 2295 "tracker-turtle-reader.c" 2295 } 2296 } 2297 #line 226 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2298 if (_tmp81_) { 2299 #line 2300 "tracker-turtle-reader.c" 2300 gchar* _tmp82_ = NULL; 2301 gchar* _tmp83_; 2302 #line 227 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2303 _tmp82_ = tracker_turtle_reader_get_last_string (self, 1); 2304 #line 227 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2305 _tmp83_ = _tmp82_; 2306 #line 227 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2307 tracker_turtle_reader_set_object (self, _tmp83_); 2308 #line 227 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2309 _g_free0 (_tmp83_); 2310 #line 228 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2311 tracker_turtle_reader_set_object_is_uri (self, TRUE); 2312 #line 229 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2313 self->priv->state = TRACKER_TURTLE_READER_STATE_OBJECT; 2314 #line 230 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2315 result = TRUE; 2316 #line 230 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2317 return result; 2318 #line 2319 "tracker-turtle-reader.c" 2319 } else { 2320 gboolean _tmp84_ = FALSE; 2321 gboolean _tmp85_; 2322 #line 231 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2323 _tmp84_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_); 2324 #line 231 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2325 _tmp85_ = _tmp84_; 2326 #line 231 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2327 if (_inner_error_ != NULL) { 2328 #line 231 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2329 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2330 #line 231 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2331 g_propagate_error (error, _inner_error_); 2332 #line 231 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2333 return FALSE; 2334 #line 2335 "tracker-turtle-reader.c" 2335 } else { 2336 #line 231 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2337 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2338 #line 231 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2339 g_clear_error (&_inner_error_); 2340 #line 231 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2341 return FALSE; 2342 #line 2343 "tracker-turtle-reader.c" 2343 } 2344 } 2345 #line 231 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2346 if (_tmp85_) { 2347 #line 2348 "tracker-turtle-reader.c" 2348 gchar* _tmp86_ = NULL; 2349 gchar* ns; 2350 const gchar* _tmp87_; 2351 gchar* _tmp88_ = NULL; 2352 gchar* _tmp89_; 2353 gchar* _tmp90_ = NULL; 2354 gchar* _tmp91_; 2355 gchar* _tmp92_ = NULL; 2356 gchar* _tmp93_; 2357 gchar* _tmp94_; 2358 gchar* _tmp95_; 2359 #line 233 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2360 _tmp86_ = tracker_turtle_reader_get_last_string (self, 0); 2361 #line 233 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2362 ns = _tmp86_; 2363 #line 234 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2364 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 2365 #line 234 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2366 if (_inner_error_ != NULL) { 2367 #line 234 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2368 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2369 #line 234 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2370 g_propagate_error (error, _inner_error_); 2371 #line 234 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2372 _g_free0 (ns); 2373 #line 234 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2374 return FALSE; 2375 #line 2376 "tracker-turtle-reader.c" 2376 } else { 2377 #line 234 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2378 _g_free0 (ns); 2379 #line 234 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2380 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2381 #line 234 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2382 g_clear_error (&_inner_error_); 2383 #line 234 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2384 return FALSE; 2385 #line 2386 "tracker-turtle-reader.c" 2386 } 2387 } 2388 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2389 _tmp87_ = ns; 2390 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2391 _tmp88_ = tracker_turtle_reader_get_last_string (self, 0); 2392 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2393 _tmp89_ = _tmp88_; 2394 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2395 _tmp90_ = string_substring (_tmp89_, (glong) 1, (glong) (-1)); 2396 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2397 _tmp91_ = _tmp90_; 2398 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2399 _tmp92_ = tracker_turtle_reader_resolve_prefixed_name (self, _tmp87_, _tmp91_, &_inner_error_); 2400 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2401 _tmp93_ = _tmp92_; 2402 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2403 _g_free0 (_tmp91_); 2404 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2405 _g_free0 (_tmp89_); 2406 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2407 _tmp94_ = _tmp93_; 2408 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2409 if (_inner_error_ != NULL) { 2410 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2411 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2412 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2413 g_propagate_error (error, _inner_error_); 2414 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2415 _g_free0 (ns); 2416 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2417 return FALSE; 2418 #line 2419 "tracker-turtle-reader.c" 2419 } else { 2420 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2421 _g_free0 (ns); 2422 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2423 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2424 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2425 g_clear_error (&_inner_error_); 2426 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2427 return FALSE; 2428 #line 2429 "tracker-turtle-reader.c" 2429 } 2430 } 2431 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2432 _tmp95_ = _tmp94_; 2433 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2434 tracker_turtle_reader_set_object (self, _tmp95_); 2435 #line 235 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2436 _g_free0 (_tmp95_); 2437 #line 236 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2438 tracker_turtle_reader_set_object_is_uri (self, TRUE); 2439 #line 237 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2440 self->priv->state = TRACKER_TURTLE_READER_STATE_OBJECT; 2441 #line 238 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2442 result = TRUE; 2443 #line 238 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2444 _g_free0 (ns); 2445 #line 238 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2446 return result; 2447 #line 2448 "tracker-turtle-reader.c" 2448 } else { 2449 gboolean _tmp96_ = FALSE; 2450 gboolean _tmp97_; 2451 #line 239 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2452 _tmp96_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 2453 #line 239 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2454 _tmp97_ = _tmp96_; 2455 #line 239 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2456 if (_inner_error_ != NULL) { 2457 #line 239 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2458 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2459 #line 239 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2460 g_propagate_error (error, _inner_error_); 2461 #line 239 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2462 return FALSE; 2463 #line 2464 "tracker-turtle-reader.c" 2464 } else { 2465 #line 239 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2466 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2467 #line 239 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2468 g_clear_error (&_inner_error_); 2469 #line 239 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2470 return FALSE; 2471 #line 2472 "tracker-turtle-reader.c" 2472 } 2473 } 2474 #line 239 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2475 if (_tmp97_) { 2476 #line 2477 "tracker-turtle-reader.c" 2477 gchar* _tmp98_ = NULL; 2478 gchar* _tmp99_; 2479 gchar* _tmp100_ = NULL; 2480 gchar* _tmp101_; 2481 gchar* _tmp102_ = NULL; 2482 gchar* _tmp103_; 2483 gchar* _tmp104_; 2484 gchar* _tmp105_; 2485 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2486 _tmp98_ = tracker_turtle_reader_get_last_string (self, 0); 2487 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2488 _tmp99_ = _tmp98_; 2489 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2490 _tmp100_ = string_substring (_tmp99_, (glong) 1, (glong) (-1)); 2491 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2492 _tmp101_ = _tmp100_; 2493 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2494 _tmp102_ = tracker_turtle_reader_resolve_prefixed_name (self, "", _tmp101_, &_inner_error_); 2495 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2496 _tmp103_ = _tmp102_; 2497 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2498 _g_free0 (_tmp101_); 2499 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2500 _g_free0 (_tmp99_); 2501 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2502 _tmp104_ = _tmp103_; 2503 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2504 if (_inner_error_ != NULL) { 2505 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2506 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2507 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2508 g_propagate_error (error, _inner_error_); 2509 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2510 return FALSE; 2511 #line 2512 "tracker-turtle-reader.c" 2512 } else { 2513 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2514 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2515 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2516 g_clear_error (&_inner_error_); 2517 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2518 return FALSE; 2519 #line 2520 "tracker-turtle-reader.c" 2520 } 2521 } 2522 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2523 _tmp105_ = _tmp104_; 2524 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2525 tracker_turtle_reader_set_object (self, _tmp105_); 2526 #line 241 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2527 _g_free0 (_tmp105_); 2528 #line 242 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2529 tracker_turtle_reader_set_object_is_uri (self, TRUE); 2530 #line 243 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2531 self->priv->state = TRACKER_TURTLE_READER_STATE_OBJECT; 2532 #line 244 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2533 result = TRUE; 2534 #line 244 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2535 return result; 2536 #line 2537 "tracker-turtle-reader.c" 2537 } else { 2538 gboolean _tmp106_ = FALSE; 2539 gboolean _tmp107_; 2540 #line 245 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2541 _tmp106_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_BLANK_NODE, &_inner_error_); 2542 #line 245 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2543 _tmp107_ = _tmp106_; 2544 #line 245 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2545 if (_inner_error_ != NULL) { 2546 #line 245 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2547 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2548 #line 245 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2549 g_propagate_error (error, _inner_error_); 2550 #line 245 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2551 return FALSE; 2552 #line 2553 "tracker-turtle-reader.c" 2553 } else { 2554 #line 245 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2555 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2556 #line 245 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2557 g_clear_error (&_inner_error_); 2558 #line 245 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2559 return FALSE; 2560 #line 2561 "tracker-turtle-reader.c" 2561 } 2562 } 2563 #line 245 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2564 if (_tmp107_) { 2565 #line 2566 "tracker-turtle-reader.c" 2566 gchar* _tmp108_ = NULL; 2567 gchar* _tmp109_; 2568 gchar* _tmp110_ = NULL; 2569 gchar* _tmp111_; 2570 gchar* _tmp112_ = NULL; 2571 gchar* _tmp113_; 2572 #line 247 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2573 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 2574 #line 247 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2575 if (_inner_error_ != NULL) { 2576 #line 247 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2577 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2578 #line 247 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2579 g_propagate_error (error, _inner_error_); 2580 #line 247 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2581 return FALSE; 2582 #line 2583 "tracker-turtle-reader.c" 2583 } else { 2584 #line 247 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2585 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2586 #line 247 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2587 g_clear_error (&_inner_error_); 2588 #line 247 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2589 return FALSE; 2590 #line 2591 "tracker-turtle-reader.c" 2591 } 2592 } 2593 #line 248 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2594 _tmp108_ = tracker_turtle_reader_get_last_string (self, 0); 2595 #line 248 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2596 _tmp109_ = _tmp108_; 2597 #line 248 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2598 _tmp110_ = string_substring (_tmp109_, (glong) 1, (glong) (-1)); 2599 #line 248 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2600 _tmp111_ = _tmp110_; 2601 #line 248 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2602 _tmp112_ = tracker_turtle_reader_generate_bnodeid (self, _tmp111_); 2603 #line 248 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2604 _tmp113_ = _tmp112_; 2605 #line 248 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2606 tracker_turtle_reader_set_object (self, _tmp113_); 2607 #line 248 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2608 _g_free0 (_tmp113_); 2609 #line 248 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2610 _g_free0 (_tmp111_); 2611 #line 248 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2612 _g_free0 (_tmp109_); 2613 #line 249 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2614 tracker_turtle_reader_set_object_is_uri (self, TRUE); 2615 #line 250 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2616 self->priv->state = TRACKER_TURTLE_READER_STATE_OBJECT; 2617 #line 251 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2618 result = TRUE; 2619 #line 251 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2620 return result; 2621 #line 2622 "tracker-turtle-reader.c" 2622 } else { 2623 gboolean _tmp114_ = FALSE; 2624 gboolean _tmp115_; 2625 #line 252 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2626 _tmp114_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_OPEN_BRACKET, &_inner_error_); 2627 #line 252 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2628 _tmp115_ = _tmp114_; 2629 #line 252 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2630 if (_inner_error_ != NULL) { 2631 #line 252 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2632 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2633 #line 252 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2634 g_propagate_error (error, _inner_error_); 2635 #line 252 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2636 return FALSE; 2637 #line 2638 "tracker-turtle-reader.c" 2638 } else { 2639 #line 252 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2640 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2641 #line 252 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2642 g_clear_error (&_inner_error_); 2643 #line 252 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2644 return FALSE; 2645 #line 2646 "tracker-turtle-reader.c" 2646 } 2647 } 2648 #line 252 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2649 if (_tmp115_) { 2650 #line 2651 "tracker-turtle-reader.c" 2651 gchar** _tmp116_; 2652 gint _tmp116__length1; 2653 const gchar* _tmp117_; 2654 gchar* _tmp118_; 2655 gchar** _tmp119_; 2656 gint _tmp119__length1;
variable '_tmp119__length1' set but not used
(emitted by gcc)
2657 const gchar* _tmp120_; 2658 gchar* _tmp121_; 2659 gchar* _tmp122_ = NULL; 2660 gchar* _tmp123_; 2661 #line 254 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2662 _tmp116_ = self->priv->subject_stack;
Value stored to '_tmp116_' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

2663 #line 254 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2664 _tmp116__length1 = self->priv->subject_stack_length1;
Value stored to '_tmp116__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

2665 #line 254 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2666 _tmp117_ = self->priv->_subject; 2667 #line 254 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2668 _tmp118_ = g_strdup (_tmp117_); 2669 #line 254 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2670 _vala_array_add12 (&self->priv->subject_stack, &self->priv->subject_stack_length1, &self->priv->_subject_stack_size_, _tmp118_); 2671 #line 255 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2672 _tmp119_ = self->priv->predicate_stack;
Value stored to '_tmp119_' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

2673 #line 255 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2674 _tmp119__length1 = self->priv->predicate_stack_length1;
Value stored to '_tmp119__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

2675 #line 255 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2676 _tmp120_ = self->priv->_predicate; 2677 #line 255 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2678 _tmp121_ = g_strdup (_tmp120_); 2679 #line 255 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2680 _vala_array_add13 (&self->priv->predicate_stack, &self->priv->predicate_stack_length1, &self->priv->_predicate_stack_size_, _tmp121_); 2681 #line 256 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2682 _tmp122_ = tracker_turtle_reader_generate_bnodeid (self, NULL); 2683 #line 256 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2684 _tmp123_ = _tmp122_; 2685 #line 256 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2686 tracker_turtle_reader_set_subject (self, _tmp123_); 2687 #line 256 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2688 _g_free0 (_tmp123_); 2689 #line 257 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2690 self->priv->state = TRACKER_TURTLE_READER_STATE_SUBJECT; 2691 #line 258 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2692 continue; 2693 #line 2694 "tracker-turtle-reader.c" 2694 } else { 2695 gboolean _tmp124_ = FALSE; 2696 gboolean _tmp125_ = FALSE; 2697 gboolean _tmp126_; 2698 gboolean _tmp129_; 2699 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2700 _tmp125_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL1, &_inner_error_); 2701 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2702 _tmp126_ = _tmp125_; 2703 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2704 if (_inner_error_ != NULL) { 2705 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2706 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2707 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2708 g_propagate_error (error, _inner_error_); 2709 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2710 return FALSE; 2711 #line 2712 "tracker-turtle-reader.c" 2712 } else { 2713 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2714 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2715 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2716 g_clear_error (&_inner_error_); 2717 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2718 return FALSE; 2719 #line 2720 "tracker-turtle-reader.c" 2720 } 2721 } 2722 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2723 if (_tmp126_) { 2724 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2725 _tmp124_ = TRUE; 2726 #line 2727 "tracker-turtle-reader.c" 2727 } else { 2728 gboolean _tmp127_ = FALSE; 2729 gboolean _tmp128_; 2730 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2731 _tmp127_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL2, &_inner_error_); 2732 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2733 _tmp128_ = _tmp127_; 2734 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2735 if (_inner_error_ != NULL) { 2736 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2737 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2738 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2739 g_propagate_error (error, _inner_error_); 2740 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2741 return FALSE; 2742 #line 2743 "tracker-turtle-reader.c" 2743 } else { 2744 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2745 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 2746 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2747 g_clear_error (&_inner_error_); 2748 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2749 return FALSE; 2750 #line 2751 "tracker-turtle-reader.c" 2751 } 2752 } 2753 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2754 _tmp124_ = _tmp128_; 2755 #line 2756 "tracker-turtle-reader.c" 2756 } 2757 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2758 _tmp129_ = _tmp124_; 2759 #line 259 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2760 if (_tmp129_) { 2761 #line 2762 "tracker-turtle-reader.c" 2762 GString* _tmp130_; 2763 GString* sb; 2764 gchar* _tmp131_ = NULL; 2765 gchar* s; 2766 const gchar* _tmp132_; 2767 const gchar* p; 2768 const gchar* _tmp133_; 2769 const gchar* _tmp134_; 2770 gint _tmp135_; 2771 gint _tmp136_; 2772 const gchar* end; 2773 GString* _tmp163_; 2774 const gchar* _tmp164_; 2775 gboolean _tmp165_ = FALSE; 2776 gboolean _tmp166_; 2777 #line 260 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2778 _tmp130_ = g_string_new (""); 2779 #line 260 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2780 sb = _tmp130_; 2781 #line 262 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2782 _tmp131_ = tracker_turtle_reader_get_last_string (self, 1); 2783 #line 262 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2784 s = _tmp131_; 2785 #line 263 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2786 _tmp132_ = s; 2787 #line 263 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2788 p = _tmp132_; 2789 #line 264 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2790 _tmp133_ = p; 2791 #line 264 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2792 _tmp134_ = s; 2793 #line 264 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2794 _tmp135_ = strlen (_tmp134_); 2795 #line 264 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2796 _tmp136_ = _tmp135_; 2797 #line 264 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2798 end = _tmp133_ + _tmp136_; 2799 #line 265 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2800 while (TRUE) { 2801 #line 2802 "tracker-turtle-reader.c" 2802 const gchar* _tmp137_; 2803 const gchar* _tmp138_; 2804 const gchar* _tmp139_; 2805 const gchar* _tmp140_ = NULL; 2806 const gchar* q; 2807 const gchar* _tmp141_; 2808 #line 265 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2809 _tmp137_ = p; 2810 #line 265 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2811 _tmp138_ = end; 2812 #line 265 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2813 if (!(((glong) _tmp137_) < ((glong) _tmp138_))) { 2814 #line 265 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2815 break; 2816 #line 2817 "tracker-turtle-reader.c" 2817 } 2818 #line 266 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2819 _tmp139_ = p; 2820 #line 266 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2821 _tmp140_ = strchr (_tmp139_, (gint) '\\'); 2822 #line 266 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2823 q = _tmp140_; 2824 #line 267 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2825 _tmp141_ = q; 2826 #line 267 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2827 if (_tmp141_ == NULL) { 2828 #line 2829 "tracker-turtle-reader.c" 2829 GString* _tmp142_; 2830 const gchar* _tmp143_; 2831 const gchar* _tmp144_; 2832 const gchar* _tmp145_; 2833 const gchar* _tmp146_; 2834 #line 268 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2835 _tmp142_ = sb; 2836 #line 268 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2837 _tmp143_ = p; 2838 #line 268 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2839 _tmp144_ = end; 2840 #line 268 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2841 _tmp145_ = p; 2842 #line 268 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2843 g_string_append_len (_tmp142_, _tmp143_, (gssize) ((glong) (_tmp144_ - _tmp145_))); 2844 #line 269 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2845 _tmp146_ = end; 2846 #line 269 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2847 p = _tmp146_; 2848 #line 2849 "tracker-turtle-reader.c" 2849 } else { 2850 GString* _tmp147_; 2851 const gchar* _tmp148_; 2852 const gchar* _tmp149_; 2853 const gchar* _tmp150_; 2854 const gchar* _tmp151_; 2855 const gchar* _tmp152_; 2856 gchar _tmp153_; 2857 const gchar* _tmp162_; 2858 #line 271 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2859 _tmp147_ = sb; 2860 #line 271 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2861 _tmp148_ = p; 2862 #line 271 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2863 _tmp149_ = q; 2864 #line 271 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2865 _tmp150_ = p; 2866 #line 271 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2867 g_string_append_len (_tmp147_, _tmp148_, (gssize) ((glong) (_tmp149_ - _tmp150_))); 2868 #line 272 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2869 _tmp151_ = q; 2870 #line 272 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2871 p = _tmp151_ + 1; 2872 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2873 _tmp152_ = p; 2874 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2875 _tmp153_ = ((gchar*) _tmp152_)[0]; 2876 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2877 switch (_tmp153_) { 2878 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2879 case '\'': 2880 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2881 case '"': 2882 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2883 case '\\': 2884 #line 2885 "tracker-turtle-reader.c" 2885 { 2886 GString* _tmp154_; 2887 const gchar* _tmp155_; 2888 gchar _tmp156_; 2889 #line 277 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2890 _tmp154_ = sb; 2891 #line 277 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2892 _tmp155_ = p; 2893 #line 277 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2894 _tmp156_ = ((gchar*) _tmp155_)[0]; 2895 #line 277 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2896 g_string_append_c (_tmp154_, _tmp156_); 2897 #line 278 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2898 break; 2899 #line 2900 "tracker-turtle-reader.c" 2900 } 2901 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2902 case 'b': 2903 #line 2904 "tracker-turtle-reader.c" 2904 { 2905 GString* _tmp157_; 2906 #line 280 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2907 _tmp157_ = sb; 2908 #line 280 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2909 g_string_append_c (_tmp157_, '\b'); 2910 #line 281 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2911 break; 2912 #line 2913 "tracker-turtle-reader.c" 2913 } 2914 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2915 case 'f': 2916 #line 2917 "tracker-turtle-reader.c" 2917 { 2918 GString* _tmp158_; 2919 #line 283 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2920 _tmp158_ = sb; 2921 #line 283 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2922 g_string_append_c (_tmp158_, '\f'); 2923 #line 284 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2924 break; 2925 #line 2926 "tracker-turtle-reader.c" 2926 } 2927 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2928 case 'n': 2929 #line 2930 "tracker-turtle-reader.c" 2930 { 2931 GString* _tmp159_; 2932 #line 286 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2933 _tmp159_ = sb; 2934 #line 286 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2935 g_string_append_c (_tmp159_, '\n'); 2936 #line 287 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2937 break; 2938 #line 2939 "tracker-turtle-reader.c" 2939 } 2940 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2941 case 'r': 2942 #line 2943 "tracker-turtle-reader.c" 2943 { 2944 GString* _tmp160_; 2945 #line 289 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2946 _tmp160_ = sb; 2947 #line 289 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2948 g_string_append_c (_tmp160_, '\r'); 2949 #line 290 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2950 break; 2951 #line 2952 "tracker-turtle-reader.c" 2952 } 2953 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2954 case 't': 2955 #line 2956 "tracker-turtle-reader.c" 2956 { 2957 GString* _tmp161_; 2958 #line 292 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2959 _tmp161_ = sb; 2960 #line 292 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2961 g_string_append_c (_tmp161_, '\t'); 2962 #line 293 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2963 break; 2964 #line 2965 "tracker-turtle-reader.c" 2965 } 2966 default: 2967 #line 273 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2968 break; 2969 #line 2970 "tracker-turtle-reader.c" 2970 } 2971 #line 295 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2972 _tmp162_ = p; 2973 #line 295 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2974 p = _tmp162_ + 1; 2975 #line 2976 "tracker-turtle-reader.c" 2976 } 2977 } 2978 #line 298 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2979 _tmp163_ = sb; 2980 #line 298 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2981 _tmp164_ = _tmp163_->str; 2982 #line 298 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2983 tracker_turtle_reader_set_object (self, _tmp164_); 2984 #line 299 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2985 tracker_turtle_reader_set_object_is_uri (self, FALSE); 2986 #line 300 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2987 self->priv->state = TRACKER_TURTLE_READER_STATE_OBJECT; 2988 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2989 _tmp165_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOUBLE_CIRCUMFLEX, &_inner_error_); 2990 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2991 _tmp166_ = _tmp165_; 2992 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2993 if (_inner_error_ != NULL) { 2994 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2995 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 2996 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2997 g_propagate_error (error, _inner_error_); 2998 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 2999 _g_free0 (s); 3000 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3001 _g_string_free0 (sb); 3002 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3003 return FALSE; 3004 #line 3005 "tracker-turtle-reader.c" 3005 } else { 3006 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3007 _g_free0 (s); 3008 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3009 _g_string_free0 (sb); 3010 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3011 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3012 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3013 g_clear_error (&_inner_error_); 3014 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3015 return FALSE; 3016 #line 3017 "tracker-turtle-reader.c" 3017 } 3018 } 3019 #line 302 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3020 if (_tmp166_) { 3021 #line 3022 "tracker-turtle-reader.c" 3022 gboolean _tmp167_ = FALSE; 3023 gboolean _tmp168_; 3024 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3025 _tmp167_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_); 3026 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3027 _tmp168_ = _tmp167_; 3028 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3029 if (_inner_error_ != NULL) { 3030 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3031 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3032 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3033 g_propagate_error (error, _inner_error_); 3034 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3035 _g_free0 (s); 3036 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3037 _g_string_free0 (sb); 3038 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3039 return FALSE; 3040 #line 3041 "tracker-turtle-reader.c" 3041 } else { 3042 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3043 _g_free0 (s); 3044 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3045 _g_string_free0 (sb); 3046 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3047 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3048 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3049 g_clear_error (&_inner_error_); 3050 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3051 return FALSE; 3052 #line 3053 "tracker-turtle-reader.c" 3053 } 3054 } 3055 #line 303 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3056 if (!_tmp168_) { 3057 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3058 tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_); 3059 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3060 if (_inner_error_ != NULL) { 3061 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3062 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3063 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3064 g_propagate_error (error, _inner_error_); 3065 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3066 _g_free0 (s); 3067 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3068 _g_string_free0 (sb); 3069 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3070 return FALSE; 3071 #line 3072 "tracker-turtle-reader.c" 3072 } else { 3073 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3074 _g_free0 (s); 3075 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3076 _g_string_free0 (sb); 3077 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3078 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3079 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3080 g_clear_error (&_inner_error_); 3081 #line 304 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3082 return FALSE; 3083 #line 3084 "tracker-turtle-reader.c" 3084 } 3085 } 3086 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3087 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 3088 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3089 if (_inner_error_ != NULL) { 3090 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3091 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3092 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3093 g_propagate_error (error, _inner_error_); 3094 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3095 _g_free0 (s); 3096 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3097 _g_string_free0 (sb); 3098 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3099 return FALSE; 3100 #line 3101 "tracker-turtle-reader.c" 3101 } else { 3102 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3103 _g_free0 (s); 3104 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3105 _g_string_free0 (sb); 3106 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3107 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3108 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3109 g_clear_error (&_inner_error_); 3110 #line 305 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3111 return FALSE; 3112 #line 3113 "tracker-turtle-reader.c" 3113 } 3114 } 3115 } 3116 } 3117 #line 309 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3118 result = TRUE; 3119 #line 309 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3120 _g_free0 (s); 3121 #line 309 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3122 _g_string_free0 (sb); 3123 #line 309 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3124 return result; 3125 #line 3126 "tracker-turtle-reader.c" 3126 } else { 3127 gboolean _tmp169_ = FALSE; 3128 gboolean _tmp170_ = FALSE; 3129 gboolean _tmp171_; 3130 gboolean _tmp174_; 3131 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3132 _tmp170_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG1, &_inner_error_); 3133 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3134 _tmp171_ = _tmp170_; 3135 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3136 if (_inner_error_ != NULL) { 3137 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3138 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3139 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3140 g_propagate_error (error, _inner_error_); 3141 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3142 return FALSE; 3143 #line 3144 "tracker-turtle-reader.c" 3144 } else { 3145 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3146 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3147 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3148 g_clear_error (&_inner_error_); 3149 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3150 return FALSE; 3151 #line 3152 "tracker-turtle-reader.c" 3152 } 3153 } 3154 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3155 if (_tmp171_) { 3156 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3157 _tmp169_ = TRUE; 3158 #line 3159 "tracker-turtle-reader.c" 3159 } else { 3160 gboolean _tmp172_ = FALSE; 3161 gboolean _tmp173_; 3162 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3163 _tmp172_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_STRING_LITERAL_LONG2, &_inner_error_); 3164 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3165 _tmp173_ = _tmp172_; 3166 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3167 if (_inner_error_ != NULL) { 3168 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3169 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3170 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3171 g_propagate_error (error, _inner_error_); 3172 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3173 return FALSE; 3174 #line 3175 "tracker-turtle-reader.c" 3175 } else { 3176 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3177 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3178 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3179 g_clear_error (&_inner_error_); 3180 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3181 return FALSE; 3182 #line 3183 "tracker-turtle-reader.c" 3183 } 3184 } 3185 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3186 _tmp169_ = _tmp173_; 3187 #line 3188 "tracker-turtle-reader.c" 3188 } 3189 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3190 _tmp174_ = _tmp169_; 3191 #line 310 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3192 if (_tmp174_) { 3193 #line 3194 "tracker-turtle-reader.c" 3194 gchar* _tmp175_ = NULL; 3195 gchar* _tmp176_; 3196 gboolean _tmp177_ = FALSE; 3197 gboolean _tmp178_; 3198 #line 311 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3199 _tmp175_ = tracker_turtle_reader_get_last_string (self, 3); 3200 #line 311 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3201 _tmp176_ = _tmp175_; 3202 #line 311 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3203 tracker_turtle_reader_set_object (self, _tmp176_); 3204 #line 311 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3205 _g_free0 (_tmp176_); 3206 #line 312 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3207 tracker_turtle_reader_set_object_is_uri (self, FALSE); 3208 #line 313 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3209 self->priv->state = TRACKER_TURTLE_READER_STATE_OBJECT; 3210 #line 315 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3211 _tmp177_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOUBLE_CIRCUMFLEX, &_inner_error_); 3212 #line 315 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3213 _tmp178_ = _tmp177_; 3214 #line 315 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3215 if (_inner_error_ != NULL) { 3216 #line 315 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3217 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3218 #line 315 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3219 g_propagate_error (error, _inner_error_); 3220 #line 315 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3221 return FALSE; 3222 #line 3223 "tracker-turtle-reader.c" 3223 } else { 3224 #line 315 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3225 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3226 #line 315 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3227 g_clear_error (&_inner_error_); 3228 #line 315 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3229 return FALSE; 3230 #line 3231 "tracker-turtle-reader.c" 3231 } 3232 } 3233 #line 315 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3234 if (_tmp178_) { 3235 #line 3236 "tracker-turtle-reader.c" 3236 gboolean _tmp179_ = FALSE; 3237 gboolean _tmp180_; 3238 #line 316 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3239 _tmp179_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_IRI_REF, &_inner_error_); 3240 #line 316 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3241 _tmp180_ = _tmp179_; 3242 #line 316 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3243 if (_inner_error_ != NULL) { 3244 #line 316 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3245 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3246 #line 316 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3247 g_propagate_error (error, _inner_error_); 3248 #line 316 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3249 return FALSE; 3250 #line 3251 "tracker-turtle-reader.c" 3251 } else { 3252 #line 316 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3253 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3254 #line 316 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3255 g_clear_error (&_inner_error_); 3256 #line 316 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3257 return FALSE; 3258 #line 3259 "tracker-turtle-reader.c" 3259 } 3260 } 3261 #line 316 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3262 if (!_tmp180_) { 3263 #line 317 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3264 tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_PN_PREFIX, &_inner_error_); 3265 #line 317 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3266 if (_inner_error_ != NULL) { 3267 #line 317 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3268 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3269 #line 317 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3270 g_propagate_error (error, _inner_error_); 3271 #line 317 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3272 return FALSE; 3273 #line 3274 "tracker-turtle-reader.c" 3274 } else { 3275 #line 317 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3276 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3277 #line 317 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3278 g_clear_error (&_inner_error_); 3279 #line 317 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3280 return FALSE; 3281 #line 3282 "tracker-turtle-reader.c" 3282 } 3283 } 3284 #line 318 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3285 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_COLON, &_inner_error_); 3286 #line 318 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3287 if (_inner_error_ != NULL) { 3288 #line 318 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3289 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3290 #line 318 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3291 g_propagate_error (error, _inner_error_); 3292 #line 318 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3293 return FALSE; 3294 #line 3295 "tracker-turtle-reader.c" 3295 } else { 3296 #line 318 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3297 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3298 #line 318 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3299 g_clear_error (&_inner_error_); 3300 #line 318 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3301 return FALSE; 3302 #line 3303 "tracker-turtle-reader.c" 3303 } 3304 } 3305 } 3306 } 3307 #line 322 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3308 result = TRUE; 3309 #line 322 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3310 return result; 3311 #line 3312 "tracker-turtle-reader.c" 3312 } else { 3313 gboolean _tmp181_ = FALSE; 3314 gboolean _tmp182_ = FALSE; 3315 gboolean _tmp183_ = FALSE; 3316 gboolean _tmp184_ = FALSE; 3317 gboolean _tmp185_ = FALSE; 3318 gboolean _tmp186_; 3319 gboolean _tmp189_; 3320 gboolean _tmp192_; 3321 gboolean _tmp195_; 3322 gboolean _tmp198_; 3323 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3324 _tmp185_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_INTEGER, &_inner_error_); 3325 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3326 _tmp186_ = _tmp185_; 3327 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3328 if (_inner_error_ != NULL) { 3329 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3330 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3331 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3332 g_propagate_error (error, _inner_error_); 3333 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3334 return FALSE; 3335 #line 3336 "tracker-turtle-reader.c" 3336 } else { 3337 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3338 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3339 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3340 g_clear_error (&_inner_error_); 3341 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3342 return FALSE; 3343 #line 3344 "tracker-turtle-reader.c" 3344 } 3345 } 3346 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3347 if (_tmp186_) { 3348 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3349 _tmp184_ = TRUE; 3350 #line 3351 "tracker-turtle-reader.c" 3351 } else { 3352 gboolean _tmp187_ = FALSE; 3353 gboolean _tmp188_; 3354 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3355 _tmp187_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DECIMAL, &_inner_error_); 3356 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3357 _tmp188_ = _tmp187_; 3358 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3359 if (_inner_error_ != NULL) { 3360 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3361 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3362 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3363 g_propagate_error (error, _inner_error_); 3364 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3365 return FALSE; 3366 #line 3367 "tracker-turtle-reader.c" 3367 } else { 3368 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3369 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3370 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3371 g_clear_error (&_inner_error_); 3372 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3373 return FALSE; 3374 #line 3375 "tracker-turtle-reader.c" 3375 } 3376 } 3377 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3378 _tmp184_ = _tmp188_; 3379 #line 3380 "tracker-turtle-reader.c" 3380 } 3381 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3382 _tmp189_ = _tmp184_; 3383 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3384 if (_tmp189_) { 3385 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3386 _tmp183_ = TRUE; 3387 #line 3388 "tracker-turtle-reader.c" 3388 } else { 3389 gboolean _tmp190_ = FALSE; 3390 gboolean _tmp191_; 3391 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3392 _tmp190_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOUBLE, &_inner_error_); 3393 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3394 _tmp191_ = _tmp190_; 3395 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3396 if (_inner_error_ != NULL) { 3397 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3398 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3399 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3400 g_propagate_error (error, _inner_error_); 3401 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3402 return FALSE; 3403 #line 3404 "tracker-turtle-reader.c" 3404 } else { 3405 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3406 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3407 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3408 g_clear_error (&_inner_error_); 3409 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3410 return FALSE; 3411 #line 3412 "tracker-turtle-reader.c" 3412 } 3413 } 3414 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3415 _tmp183_ = _tmp191_; 3416 #line 3417 "tracker-turtle-reader.c" 3417 } 3418 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3419 _tmp192_ = _tmp183_; 3420 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3421 if (_tmp192_) { 3422 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3423 _tmp182_ = TRUE; 3424 #line 3425 "tracker-turtle-reader.c" 3425 } else { 3426 gboolean _tmp193_ = FALSE; 3427 gboolean _tmp194_; 3428 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3429 _tmp193_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_TRUE, &_inner_error_); 3430 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3431 _tmp194_ = _tmp193_; 3432 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3433 if (_inner_error_ != NULL) { 3434 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3435 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3436 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3437 g_propagate_error (error, _inner_error_); 3438 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3439 return FALSE; 3440 #line 3441 "tracker-turtle-reader.c" 3441 } else { 3442 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3443 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3444 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3445 g_clear_error (&_inner_error_); 3446 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3447 return FALSE; 3448 #line 3449 "tracker-turtle-reader.c" 3449 } 3450 } 3451 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3452 _tmp182_ = _tmp194_; 3453 #line 3454 "tracker-turtle-reader.c" 3454 } 3455 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3456 _tmp195_ = _tmp182_; 3457 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3458 if (_tmp195_) { 3459 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3460 _tmp181_ = TRUE; 3461 #line 3462 "tracker-turtle-reader.c" 3462 } else { 3463 gboolean _tmp196_ = FALSE; 3464 gboolean _tmp197_; 3465 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3466 _tmp196_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_FALSE, &_inner_error_); 3467 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3468 _tmp197_ = _tmp196_; 3469 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3470 if (_inner_error_ != NULL) { 3471 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3472 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3473 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3474 g_propagate_error (error, _inner_error_); 3475 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3476 return FALSE; 3477 #line 3478 "tracker-turtle-reader.c" 3478 } else { 3479 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3480 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3481 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3482 g_clear_error (&_inner_error_); 3483 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3484 return FALSE; 3485 #line 3486 "tracker-turtle-reader.c" 3486 } 3487 } 3488 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3489 _tmp181_ = _tmp197_; 3490 #line 3491 "tracker-turtle-reader.c" 3491 } 3492 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3493 _tmp198_ = _tmp181_; 3494 #line 323 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3495 if (_tmp198_) { 3496 #line 3497 "tracker-turtle-reader.c" 3497 gchar* _tmp199_ = NULL; 3498 gchar* _tmp200_; 3499 #line 324 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3500 _tmp199_ = tracker_turtle_reader_get_last_string (self, 0); 3501 #line 324 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3502 _tmp200_ = _tmp199_; 3503 #line 324 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3504 tracker_turtle_reader_set_object (self, _tmp200_); 3505 #line 324 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3506 _g_free0 (_tmp200_); 3507 #line 325 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3508 tracker_turtle_reader_set_object_is_uri (self, FALSE); 3509 #line 326 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3510 self->priv->state = TRACKER_TURTLE_READER_STATE_OBJECT; 3511 #line 327 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3512 result = TRUE; 3513 #line 327 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3514 return result; 3515 #line 3516 "tracker-turtle-reader.c" 3516 } else { 3517 GError* _tmp201_ = NULL; 3518 #line 329 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3519 _tmp201_ = tracker_turtle_reader_get_error (self, "expected object"); 3520 #line 329 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3521 _inner_error_ = _tmp201_; 3522 #line 329 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3523 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3524 #line 329 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3525 g_propagate_error (error, _inner_error_); 3526 #line 329 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3527 return FALSE; 3528 #line 3529 "tracker-turtle-reader.c" 3529 } else { 3530 #line 329 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3531 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3532 #line 329 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3533 g_clear_error (&_inner_error_); 3534 #line 329 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3535 return FALSE; 3536 #line 3537 "tracker-turtle-reader.c" 3537 } 3538 } 3539 } 3540 } 3541 } 3542 } 3543 } 3544 } 3545 } 3546 } 3547 #line 150 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3548 case TRACKER_TURTLE_READER_STATE_OBJECT: 3549 #line 3550 "tracker-turtle-reader.c" 3550 { 3551 gboolean _tmp202_ = FALSE; 3552 gboolean _tmp203_; 3553 #line 332 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3554 _tmp202_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_COMMA, &_inner_error_); 3555 #line 332 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3556 _tmp203_ = _tmp202_; 3557 #line 332 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3558 if (_inner_error_ != NULL) { 3559 #line 332 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3560 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3561 #line 332 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3562 g_propagate_error (error, _inner_error_); 3563 #line 332 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3564 return FALSE; 3565 #line 3566 "tracker-turtle-reader.c" 3566 } else { 3567 #line 332 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3568 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3569 #line 332 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3570 g_clear_error (&_inner_error_); 3571 #line 332 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3572 return FALSE; 3573 #line 3574 "tracker-turtle-reader.c" 3574 } 3575 } 3576 #line 332 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3577 if (_tmp203_) { 3578 #line 333 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3579 self->priv->state = TRACKER_TURTLE_READER_STATE_PREDICATE; 3580 #line 334 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3581 continue; 3582 #line 3583 "tracker-turtle-reader.c" 3583 } else { 3584 gboolean _tmp204_ = FALSE; 3585 gboolean _tmp205_; 3586 #line 335 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3587 _tmp204_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_SEMICOLON, &_inner_error_); 3588 #line 335 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3589 _tmp205_ = _tmp204_; 3590 #line 335 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3591 if (_inner_error_ != NULL) { 3592 #line 335 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3593 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3594 #line 335 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3595 g_propagate_error (error, _inner_error_); 3596 #line 335 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3597 return FALSE; 3598 #line 3599 "tracker-turtle-reader.c" 3599 } else { 3600 #line 335 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3601 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3602 #line 335 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3603 g_clear_error (&_inner_error_); 3604 #line 335 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3605 return FALSE; 3606 #line 3607 "tracker-turtle-reader.c" 3607 } 3608 } 3609 #line 335 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3610 if (_tmp205_) { 3611 #line 3612 "tracker-turtle-reader.c" 3612 gboolean _tmp206_ = FALSE; 3613 gboolean _tmp207_; 3614 #line 336 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3615 _tmp206_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOT, &_inner_error_); 3616 #line 336 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3617 _tmp207_ = _tmp206_; 3618 #line 336 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3619 if (_inner_error_ != NULL) { 3620 #line 336 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3621 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3622 #line 336 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3623 g_propagate_error (error, _inner_error_); 3624 #line 336 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3625 return FALSE; 3626 #line 3627 "tracker-turtle-reader.c" 3627 } else { 3628 #line 336 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3629 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3630 #line 336 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3631 g_clear_error (&_inner_error_); 3632 #line 336 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3633 return FALSE; 3634 #line 3635 "tracker-turtle-reader.c" 3635 } 3636 } 3637 #line 336 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3638 if (_tmp207_) { 3639 #line 338 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3640 self->priv->state = TRACKER_TURTLE_READER_STATE_BOS; 3641 #line 339 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3642 continue; 3643 #line 3644 "tracker-turtle-reader.c" 3644 } 3645 #line 341 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3646 self->priv->state = TRACKER_TURTLE_READER_STATE_SUBJECT; 3647 #line 342 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3648 continue; 3649 #line 3650 "tracker-turtle-reader.c" 3650 } else { 3651 gchar** _tmp208_; 3652 gint _tmp208__length1; 3653 #line 343 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3654 _tmp208_ = self->priv->subject_stack;
Value stored to '_tmp208_' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

3655 #line 343 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3656 _tmp208__length1 = self->priv->subject_stack_length1; 3657 #line 343 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3658 if (_tmp208__length1 > 0) { 3659 #line 3660 "tracker-turtle-reader.c" 3660 const gchar* _tmp209_; 3661 gchar** _tmp210_; 3662 gint _tmp210__length1; 3663 gchar** _tmp211_; 3664 gint _tmp211__length1; 3665 const gchar* _tmp212_; 3666 gint _tmp213_; 3667 gchar** _tmp214_; 3668 gint _tmp214__length1; 3669 gchar** _tmp215_; 3670 gint _tmp215__length1; 3671 const gchar* _tmp216_; 3672 gint _tmp217_; 3673 #line 345 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3674 tracker_turtle_reader_expect (self, TRACKER_SPARQL_TOKEN_TYPE_CLOSE_BRACKET, &_inner_error_); 3675 #line 345 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3676 if (_inner_error_ != NULL) { 3677 #line 345 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3678 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3679 #line 345 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3680 g_propagate_error (error, _inner_error_); 3681 #line 345 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3682 return FALSE; 3683 #line 3684 "tracker-turtle-reader.c" 3684 } else { 3685 #line 345 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3686 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3687 #line 345 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3688 g_clear_error (&_inner_error_); 3689 #line 345 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3690 return FALSE; 3691 #line 3692 "tracker-turtle-reader.c" 3692 } 3693 } 3694 #line 347 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3695 _tmp209_ = self->priv->_subject; 3696 #line 347 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3697 tracker_turtle_reader_set_object (self, _tmp209_); 3698 #line 348 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3699 tracker_turtle_reader_set_object_is_uri (self, TRUE); 3700 #line 350 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3701 _tmp210_ = self->priv->subject_stack; 3702 #line 350 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3703 _tmp210__length1 = self->priv->subject_stack_length1;
Value stored to '_tmp210__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

3704 #line 350 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3705 _tmp211_ = self->priv->subject_stack;
Value stored to '_tmp211_' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

3706 #line 350 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3707 _tmp211__length1 = self->priv->subject_stack_length1; 3708 #line 350 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3709 _tmp212_ = _tmp210_[_tmp211__length1 - 1]; 3710 #line 350 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3711 tracker_turtle_reader_set_subject (self, _tmp212_); 3712 #line 351 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3713 _tmp213_ = self->priv->subject_stack_length1; 3714 #line 351 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3715 self->priv->subject_stack_length1 = _tmp213_ - 1; 3716 #line 353 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3717 _tmp214_ = self->priv->predicate_stack; 3718 #line 353 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3719 _tmp214__length1 = self->priv->predicate_stack_length1;
Value stored to '_tmp214__length1' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

3720 #line 353 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3721 _tmp215_ = self->priv->predicate_stack;
Value stored to '_tmp215_' is never read
(emitted by clang-analyzer)

TODO: a detailed trace is available in the data model (not yet rendered in this report)

3722 #line 353 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3723 _tmp215__length1 = self->priv->predicate_stack_length1; 3724 #line 353 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3725 _tmp216_ = _tmp214_[_tmp215__length1 - 1]; 3726 #line 353 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3727 tracker_turtle_reader_set_predicate (self, _tmp216_); 3728 #line 354 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3729 _tmp217_ = self->priv->predicate_stack_length1; 3730 #line 354 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3731 self->priv->predicate_stack_length1 = _tmp217_ - 1; 3732 #line 356 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3733 self->priv->state = TRACKER_TURTLE_READER_STATE_OBJECT; 3734 #line 357 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3735 result = TRUE; 3736 #line 357 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3737 return result; 3738 #line 3739 "tracker-turtle-reader.c" 3739 } else { 3740 gboolean _tmp218_ = FALSE; 3741 gboolean _tmp219_; 3742 #line 358 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3743 _tmp218_ = tracker_turtle_reader_accept (self, TRACKER_SPARQL_TOKEN_TYPE_DOT, &_inner_error_); 3744 #line 358 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3745 _tmp219_ = _tmp218_; 3746 #line 358 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3747 if (_inner_error_ != NULL) { 3748 #line 358 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3749 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3750 #line 358 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3751 g_propagate_error (error, _inner_error_); 3752 #line 358 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3753 return FALSE; 3754 #line 3755 "tracker-turtle-reader.c" 3755 } else { 3756 #line 358 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3757 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3758 #line 358 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3759 g_clear_error (&_inner_error_); 3760 #line 358 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3761 return FALSE; 3762 #line 3763 "tracker-turtle-reader.c" 3763 } 3764 } 3765 #line 358 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3766 if (_tmp219_) { 3767 #line 359 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3768 self->priv->state = TRACKER_TURTLE_READER_STATE_BOS; 3769 #line 360 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3770 continue; 3771 #line 3772 "tracker-turtle-reader.c" 3772 } else { 3773 GError* _tmp220_ = NULL; 3774 #line 362 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3775 _tmp220_ = tracker_turtle_reader_get_error (self, "expected comma, semicolon, or dot"); 3776 #line 362 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3777 _inner_error_ = _tmp220_; 3778 #line 362 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3779 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3780 #line 362 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3781 g_propagate_error (error, _inner_error_); 3782 #line 362 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3783 return FALSE; 3784 #line 3785 "tracker-turtle-reader.c" 3785 } else { 3786 #line 362 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3787 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3788 #line 362 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3789 g_clear_error (&_inner_error_); 3790 #line 362 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3791 return FALSE; 3792 #line 3793 "tracker-turtle-reader.c" 3793 } 3794 } 3795 } 3796 } 3797 } 3798 } 3799 default: 3800 #line 150 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3801 break; 3802 #line 3803 "tracker-turtle-reader.c" 3803 } 3804 } 3805 } 3806 3807 3808 static gpointer _g_error_copy0 (gpointer self) { 3809 #line 385 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3810 return self ? g_error_copy (self) : NULL; 3811 #line 3812 "tracker-turtle-reader.c" 3812 } 3813 3814 3815 void tracker_turtle_reader_load (const gchar* path, GError** error) { 3816 GError * _inner_error_ = NULL; 3817 #line 368 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3818 g_return_if_fail (path != NULL); 3819 #line 3820 "tracker-turtle-reader.c" 3820 { 3821 const gchar* _tmp0_; 3822 TrackerTurtleReader* _tmp1_; 3823 TrackerTurtleReader* reader; 3824 #line 370 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3825 tracker_data_begin_transaction (&_inner_error_); 3826 #line 370 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3827 if (_inner_error_ != NULL) { 3828 #line 370 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3829 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3830 #line 3831 "tracker-turtle-reader.c" 3831 goto __catch4_tracker_sparql_error; 3832 } 3833 #line 370 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3834 if (_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) { 3835 #line 3836 "tracker-turtle-reader.c" 3836 goto __catch4_tracker_db_interface_error; 3837 } 3838 #line 370 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3839 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3840 #line 370 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3841 g_clear_error (&_inner_error_); 3842 #line 370 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3843 return; 3844 #line 3845 "tracker-turtle-reader.c" 3845 } 3846 #line 372 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3847 _tmp0_ = path; 3848 #line 372 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3849 _tmp1_ = tracker_turtle_reader_new (_tmp0_, &_inner_error_); 3850 #line 372 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3851 reader = _tmp1_; 3852 #line 372 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3853 if (_inner_error_ != NULL) { 3854 #line 372 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3855 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3856 #line 3857 "tracker-turtle-reader.c" 3857 goto __catch4_tracker_sparql_error; 3858 } 3859 #line 372 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3860 if (_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) { 3861 #line 3862 "tracker-turtle-reader.c" 3862 goto __catch4_tracker_db_interface_error; 3863 } 3864 goto __finally4; 3865 } 3866 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3867 while (TRUE) { 3868 #line 3869 "tracker-turtle-reader.c" 3869 TrackerTurtleReader* _tmp2_; 3870 gboolean _tmp3_ = FALSE; 3871 gboolean _tmp4_; 3872 TrackerTurtleReader* _tmp5_; 3873 gboolean _tmp6_; 3874 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3875 _tmp2_ = reader; 3876 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3877 _tmp3_ = tracker_turtle_reader_next (_tmp2_, &_inner_error_); 3878 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3879 _tmp4_ = _tmp3_; 3880 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3881 if (_inner_error_ != NULL) { 3882 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3883 _g_object_unref0 (reader); 3884 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3885 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3886 #line 3887 "tracker-turtle-reader.c" 3887 goto __catch4_tracker_sparql_error; 3888 } 3889 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3890 if (_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) { 3891 #line 3892 "tracker-turtle-reader.c" 3892 goto __catch4_tracker_db_interface_error; 3893 } 3894 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3895 _g_object_unref0 (reader); 3896 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3897 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3898 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3899 g_clear_error (&_inner_error_); 3900 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3901 return; 3902 #line 3903 "tracker-turtle-reader.c" 3903 } 3904 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3905 if (!_tmp4_) { 3906 #line 373 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3907 break; 3908 #line 3909 "tracker-turtle-reader.c" 3909 } 3910 #line 374 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3911 _tmp5_ = reader; 3912 #line 374 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3913 _tmp6_ = _tmp5_->priv->_object_is_uri; 3914 #line 374 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3915 if (_tmp6_) { 3916 #line 3917 "tracker-turtle-reader.c" 3917 TrackerTurtleReader* _tmp7_; 3918 const gchar* _tmp8_; 3919 TrackerTurtleReader* _tmp9_; 3920 const gchar* _tmp10_; 3921 TrackerTurtleReader* _tmp11_; 3922 const gchar* _tmp12_; 3923 TrackerTurtleReader* _tmp13_; 3924 const gchar* _tmp14_; 3925 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3926 _tmp7_ = reader; 3927 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3928 _tmp8_ = _tmp7_->priv->_graph; 3929 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3930 _tmp9_ = reader; 3931 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3932 _tmp10_ = _tmp9_->priv->_subject; 3933 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3934 _tmp11_ = reader; 3935 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3936 _tmp12_ = _tmp11_->priv->_predicate; 3937 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3938 _tmp13_ = reader; 3939 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3940 _tmp14_ = _tmp13_->priv->_object; 3941 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3942 tracker_data_insert_statement_with_uri (_tmp8_, _tmp10_, _tmp12_, _tmp14_, &_inner_error_); 3943 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3944 if (_inner_error_ != NULL) { 3945 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3946 _g_object_unref0 (reader); 3947 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3948 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 3949 #line 3950 "tracker-turtle-reader.c" 3950 goto __catch4_tracker_sparql_error; 3951 } 3952 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3953 if (_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) { 3954 #line 3955 "tracker-turtle-reader.c" 3955 goto __catch4_tracker_db_interface_error; 3956 } 3957 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3958 _g_object_unref0 (reader); 3959 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3960 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 3961 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3962 g_clear_error (&_inner_error_); 3963 #line 375 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3964 return; 3965 #line 3966 "tracker-turtle-reader.c" 3966 } 3967 } else { 3968 TrackerTurtleReader* _tmp15_; 3969 const gchar* _tmp16_; 3970 TrackerTurtleReader* _tmp17_; 3971 const gchar* _tmp18_; 3972 TrackerTurtleReader* _tmp19_; 3973 const gchar* _tmp20_; 3974 TrackerTurtleReader* _tmp21_; 3975 const gchar* _tmp22_; 3976 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3977 _tmp15_ = reader; 3978 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3979 _tmp16_ = _tmp15_->priv->_graph; 3980 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3981 _tmp17_ = reader; 3982 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3983 _tmp18_ = _tmp17_->priv->_subject; 3984 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3985 _tmp19_ = reader; 3986 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3987 _tmp20_ = _tmp19_->priv->_predicate; 3988 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3989 _tmp21_ = reader; 3990 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3991 _tmp22_ = _tmp21_->priv->_object; 3992 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3993 tracker_data_insert_statement_with_string (_tmp16_, _tmp18_, _tmp20_, _tmp22_, &_inner_error_); 3994 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3995 if (_inner_error_ != NULL) { 3996 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3997 _g_object_unref0 (reader); 3998 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 3999 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 4000 #line 4001 "tracker-turtle-reader.c" 4001 goto __catch4_tracker_sparql_error; 4002 } 4003 #line 377 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4004 if (_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) { 4005 #line 4006 "tracker-turtle-reader.c" 4006 goto __catch4_tracker_db_interface_error; 4007 } 4008 goto __finally4; 4009 } 4010 } 4011 #line 379 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4012 tracker_data_update_buffer_might_flush (&_inner_error_); 4013 #line 379 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4014 if (_inner_error_ != NULL) { 4015 #line 379 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4016 _g_object_unref0 (reader); 4017 #line 379 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4018 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 4019 #line 4020 "tracker-turtle-reader.c" 4020 goto __catch4_tracker_sparql_error; 4021 } 4022 #line 379 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4023 if (_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) { 4024 #line 4025 "tracker-turtle-reader.c" 4025 goto __catch4_tracker_db_interface_error; 4026 } 4027 #line 379 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4028 _g_object_unref0 (reader); 4029 #line 379 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4030 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 4031 #line 379 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4032 g_clear_error (&_inner_error_); 4033 #line 379 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4034 return; 4035 #line 4036 "tracker-turtle-reader.c" 4036 } 4037 } 4038 #line 382 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4039 tracker_data_commit_transaction (&_inner_error_); 4040 #line 382 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4041 if (_inner_error_ != NULL) { 4042 #line 382 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4043 _g_object_unref0 (reader); 4044 #line 382 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4045 if (_inner_error_->domain == TRACKER_SPARQL_ERROR) { 4046 #line 4047 "tracker-turtle-reader.c" 4047 goto __catch4_tracker_sparql_error; 4048 } 4049 #line 382 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4050 if (_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR) { 4051 #line 4052 "tracker-turtle-reader.c" 4052 goto __catch4_tracker_db_interface_error; 4053 } 4054 #line 382 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4055 _g_object_unref0 (reader); 4056 #line 382 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4057 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 4058 #line 382 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4059 g_clear_error (&_inner_error_); 4060 #line 382 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4061 return; 4062 #line 4063 "tracker-turtle-reader.c" 4063 } 4064 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4065 _g_object_unref0 (reader); 4066 #line 4067 "tracker-turtle-reader.c" 4067 } 4068 goto __finally4; 4069 __catch4_tracker_sparql_error: 4070 { 4071 GError* e = NULL; 4072 GError* _tmp23_; 4073 GError* _tmp24_; 4074 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4075 e = _inner_error_; 4076 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4077 _inner_error_ = NULL; 4078 #line 384 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4079 tracker_data_rollback_transaction (); 4080 #line 385 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4081 _tmp23_ = e; 4082 #line 385 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4083 _tmp24_ = _g_error_copy0 (_tmp23_); 4084 #line 385 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4085 _inner_error_ = _tmp24_; 4086 #line 385 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4087 _g_error_free0 (e); 4088 #line 4089 "tracker-turtle-reader.c" 4089 goto __finally4; 4090 } 4091 goto __finally4; 4092 __catch4_tracker_db_interface_error: 4093 { 4094 GError* e = NULL; 4095 GError* _tmp25_; 4096 GError* _tmp26_; 4097 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4098 e = _inner_error_; 4099 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4100 _inner_error_ = NULL; 4101 #line 387 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4102 tracker_data_rollback_transaction (); 4103 #line 388 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4104 _tmp25_ = e; 4105 #line 388 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4106 _tmp26_ = _g_error_copy0 (_tmp25_); 4107 #line 388 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4108 _inner_error_ = _tmp26_; 4109 #line 388 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4110 _g_error_free0 (e); 4111 #line 4112 "tracker-turtle-reader.c" 4112 goto __finally4; 4113 } 4114 __finally4: 4115 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4116 if (_inner_error_ != NULL) { 4117 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4118 if ((((_inner_error_->domain == G_FILE_ERROR) || (_inner_error_->domain == TRACKER_SPARQL_ERROR)) || (_inner_error_->domain == TRACKER_DATE_ERROR)) || (_inner_error_->domain == TRACKER_DB_INTERFACE_ERROR)) { 4119 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4120 g_propagate_error (error, _inner_error_); 4121 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4122 return; 4123 #line 4124 "tracker-turtle-reader.c" 4124 } else { 4125 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4126 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); 4127 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4128 g_clear_error (&_inner_error_); 4129 #line 369 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4130 return; 4131 #line 4132 "tracker-turtle-reader.c" 4132 } 4133 } 4134 } 4135 4136 4137 const gchar* tracker_turtle_reader_get_graph (TrackerTurtleReader* self) { 4138 const gchar* result; 4139 const gchar* _tmp0_; 4140 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4141 g_return_val_if_fail (self != NULL, NULL); 4142 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4143 _tmp0_ = self->priv->_graph; 4144 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4145 result = _tmp0_; 4146 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4147 return result; 4148 #line 4149 "tracker-turtle-reader.c" 4149 } 4150 4151 4152 static void tracker_turtle_reader_set_graph (TrackerTurtleReader* self, const gchar* value) { 4153 const gchar* _tmp0_; 4154 gchar* _tmp1_; 4155 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4156 g_return_if_fail (self != NULL); 4157 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4158 _tmp0_ = value; 4159 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4160 _tmp1_ = g_strdup (_tmp0_); 4161 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4162 _g_free0 (self->priv->_graph); 4163 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4164 self->priv->_graph = _tmp1_; 4165 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4166 g_object_notify ((GObject *) self, "graph"); 4167 #line 4168 "tracker-turtle-reader.c" 4168 } 4169 4170 4171 const gchar* tracker_turtle_reader_get_subject (TrackerTurtleReader* self) { 4172 const gchar* result; 4173 const gchar* _tmp0_; 4174 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4175 g_return_val_if_fail (self != NULL, NULL); 4176 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4177 _tmp0_ = self->priv->_subject; 4178 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4179 result = _tmp0_; 4180 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4181 return result; 4182 #line 4183 "tracker-turtle-reader.c" 4183 } 4184 4185 4186 static void tracker_turtle_reader_set_subject (TrackerTurtleReader* self, const gchar* value) { 4187 const gchar* _tmp0_; 4188 gchar* _tmp1_; 4189 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4190 g_return_if_fail (self != NULL); 4191 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4192 _tmp0_ = value; 4193 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4194 _tmp1_ = g_strdup (_tmp0_); 4195 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4196 _g_free0 (self->priv->_subject); 4197 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4198 self->priv->_subject = _tmp1_; 4199 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4200 g_object_notify ((GObject *) self, "subject"); 4201 #line 4202 "tracker-turtle-reader.c" 4202 } 4203 4204 4205 const gchar* tracker_turtle_reader_get_predicate (TrackerTurtleReader* self) { 4206 const gchar* result; 4207 const gchar* _tmp0_; 4208 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4209 g_return_val_if_fail (self != NULL, NULL); 4210 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4211 _tmp0_ = self->priv->_predicate; 4212 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4213 result = _tmp0_; 4214 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4215 return result; 4216 #line 4217 "tracker-turtle-reader.c" 4217 } 4218 4219 4220 static void tracker_turtle_reader_set_predicate (TrackerTurtleReader* self, const gchar* value) { 4221 const gchar* _tmp0_; 4222 gchar* _tmp1_; 4223 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4224 g_return_if_fail (self != NULL); 4225 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4226 _tmp0_ = value; 4227 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4228 _tmp1_ = g_strdup (_tmp0_); 4229 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4230 _g_free0 (self->priv->_predicate); 4231 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4232 self->priv->_predicate = _tmp1_; 4233 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4234 g_object_notify ((GObject *) self, "predicate"); 4235 #line 4236 "tracker-turtle-reader.c" 4236 } 4237 4238 4239 const gchar* tracker_turtle_reader_get_object (TrackerTurtleReader* self) { 4240 const gchar* result; 4241 const gchar* _tmp0_; 4242 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4243 g_return_val_if_fail (self != NULL, NULL); 4244 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4245 _tmp0_ = self->priv->_object; 4246 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4247 result = _tmp0_; 4248 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4249 return result; 4250 #line 4251 "tracker-turtle-reader.c" 4251 } 4252 4253 4254 static void tracker_turtle_reader_set_object (TrackerTurtleReader* self, const gchar* value) { 4255 const gchar* _tmp0_; 4256 gchar* _tmp1_; 4257 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4258 g_return_if_fail (self != NULL); 4259 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4260 _tmp0_ = value; 4261 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4262 _tmp1_ = g_strdup (_tmp0_); 4263 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4264 _g_free0 (self->priv->_object); 4265 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4266 self->priv->_object = _tmp1_; 4267 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4268 g_object_notify ((GObject *) self, "object"); 4269 #line 4270 "tracker-turtle-reader.c" 4270 } 4271 4272 4273 gboolean tracker_turtle_reader_get_object_is_uri (TrackerTurtleReader* self) { 4274 gboolean result; 4275 gboolean _tmp0_; 4276 #line 54 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4277 g_return_val_if_fail (self != NULL, FALSE); 4278 #line 54 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4279 _tmp0_ = self->priv->_object_is_uri; 4280 #line 54 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4281 result = _tmp0_; 4282 #line 54 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4283 return result; 4284 #line 4285 "tracker-turtle-reader.c" 4285 } 4286 4287 4288 static void tracker_turtle_reader_set_object_is_uri (TrackerTurtleReader* self, gboolean value) { 4289 gboolean _tmp0_; 4290 #line 54 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4291 g_return_if_fail (self != NULL); 4292 #line 54 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4293 _tmp0_ = value; 4294 #line 54 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4295 self->priv->_object_is_uri = _tmp0_; 4296 #line 54 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4297 g_object_notify ((GObject *) self, "object-is-uri"); 4298 #line 4299 "tracker-turtle-reader.c" 4299 } 4300 4301 4302 static TrackerTurtleReaderTokenInfo* tracker_turtle_reader_token_info_dup (const TrackerTurtleReaderTokenInfo* self) { 4303 TrackerTurtleReaderTokenInfo* dup; 4304 #line 32 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4305 dup = g_new0 (TrackerTurtleReaderTokenInfo, 1); 4306 #line 32 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4307 memcpy (dup, self, sizeof (TrackerTurtleReaderTokenInfo)); 4308 #line 32 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4309 return dup; 4310 #line 4311 "tracker-turtle-reader.c" 4311 } 4312 4313 4314 static void tracker_turtle_reader_token_info_free (TrackerTurtleReaderTokenInfo* self) { 4315 #line 32 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4316 g_free (self); 4317 #line 4318 "tracker-turtle-reader.c" 4318 } 4319 4320 4321 static GType tracker_turtle_reader_token_info_get_type (void) { 4322 static volatile gsize tracker_turtle_reader_token_info_type_id__volatile = 0; 4323 if (g_once_init_enter (&tracker_turtle_reader_token_info_type_id__volatile)) { 4324 GType tracker_turtle_reader_token_info_type_id; 4325 tracker_turtle_reader_token_info_type_id = g_boxed_type_register_static ("TrackerTurtleReaderTokenInfo", (GBoxedCopyFunc) tracker_turtle_reader_token_info_dup, (GBoxedFreeFunc) tracker_turtle_reader_token_info_free); 4326 g_once_init_leave (&tracker_turtle_reader_token_info_type_id__volatile, tracker_turtle_reader_token_info_type_id); 4327 } 4328 return tracker_turtle_reader_token_info_type_id__volatile; 4329 } 4330 4331 4332 static void tracker_turtle_reader_class_init (TrackerTurtleReaderClass * klass) { 4333 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4334 tracker_turtle_reader_parent_class = g_type_class_peek_parent (klass); 4335 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4336 g_type_class_add_private (klass, sizeof (TrackerTurtleReaderPrivate)); 4337 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4338 G_OBJECT_CLASS (klass)->get_property = _vala_tracker_turtle_reader_get_property; 4339 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4340 G_OBJECT_CLASS (klass)->set_property = _vala_tracker_turtle_reader_set_property; 4341 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4342 G_OBJECT_CLASS (klass)->finalize = tracker_turtle_reader_finalize; 4343 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4344 g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_TURTLE_READER_GRAPH, g_param_spec_string ("graph", "graph", "graph", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); 4345 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4346 g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_TURTLE_READER_SUBJECT, g_param_spec_string ("subject", "subject", "subject", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); 4347 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4348 g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_TURTLE_READER_PREDICATE, g_param_spec_string ("predicate", "predicate", "predicate", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); 4349 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4350 g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_TURTLE_READER_OBJECT, g_param_spec_string ("object", "object", "object", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); 4351 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4352 g_object_class_install_property (G_OBJECT_CLASS (klass), TRACKER_TURTLE_READER_OBJECT_IS_URI, g_param_spec_boolean ("object-is-uri", "object-is-uri", "object-is-uri", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE)); 4353 #line 4354 "tracker-turtle-reader.c" 4354 } 4355 4356 4357 static void tracker_turtle_reader_instance_init (TrackerTurtleReader * self) { 4358 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4359 self->priv = TRACKER_TURTLE_READER_GET_PRIVATE (self); 4360 #line 61 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4361 self->priv->bnodeid = 0; 4362 #line 4363 "tracker-turtle-reader.c" 4363 } 4364 4365 4366 static void tracker_turtle_reader_finalize (GObject* obj) { 4367 TrackerTurtleReader * self; 4368 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4369 self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_TYPE_TURTLE_READER, TrackerTurtleReader); 4370 #line 21 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4371 _g_object_unref0 (self->priv->scanner); 4372 #line 24 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4373 self->priv->tokens = (g_free (self->priv->tokens), NULL); 4374 #line 49 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4375 _g_free0 (self->priv->_graph); 4376 #line 51 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4377 _g_free0 (self->priv->_subject); 4378 #line 52 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4379 _g_free0 (self->priv->_predicate); 4380 #line 53 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4381 _g_free0 (self->priv->_object); 4382 #line 56 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4383 _g_hash_table_unref0 (self->priv->prefix_map); 4384 #line 58 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4385 self->priv->subject_stack = (_vala_array_free (self->priv->subject_stack, self->priv->subject_stack_length1, (GDestroyNotify) g_free), NULL); 4386 #line 59 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4387 self->priv->predicate_stack = (_vala_array_free (self->priv->predicate_stack, self->priv->predicate_stack_length1, (GDestroyNotify) g_free), NULL); 4388 #line 63 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4389 self->priv->base_uuid = (g_free (self->priv->base_uuid), NULL); 4390 #line 65 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4391 _g_mapped_file_unref0 (self->priv->mapped_file); 4392 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4393 G_OBJECT_CLASS (tracker_turtle_reader_parent_class)->finalize (obj); 4394 #line 4395 "tracker-turtle-reader.c" 4395 } 4396 4397 4398 GType tracker_turtle_reader_get_type (void) { 4399 static volatile gsize tracker_turtle_reader_type_id__volatile = 0; 4400 if (g_once_init_enter (&tracker_turtle_reader_type_id__volatile)) { 4401 static const GTypeInfo g_define_type_info = { sizeof (TrackerTurtleReaderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_turtle_reader_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerTurtleReader), 0, (GInstanceInitFunc) tracker_turtle_reader_instance_init, NULL }; 4402 GType tracker_turtle_reader_type_id; 4403 tracker_turtle_reader_type_id = g_type_register_static (G_TYPE_OBJECT, "TrackerTurtleReader", &g_define_type_info, 0); 4404 g_once_init_leave (&tracker_turtle_reader_type_id__volatile, tracker_turtle_reader_type_id); 4405 } 4406 return tracker_turtle_reader_type_id__volatile; 4407 } 4408 4409 4410 static void _vala_tracker_turtle_reader_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { 4411 TrackerTurtleReader * self; 4412 self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_TYPE_TURTLE_READER, TrackerTurtleReader); 4413 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4414 switch (property_id) { 4415 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4416 case TRACKER_TURTLE_READER_GRAPH: 4417 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4418 g_value_set_string (value, tracker_turtle_reader_get_graph (self)); 4419 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4420 break; 4421 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4422 case TRACKER_TURTLE_READER_SUBJECT: 4423 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4424 g_value_set_string (value, tracker_turtle_reader_get_subject (self)); 4425 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4426 break; 4427 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4428 case TRACKER_TURTLE_READER_PREDICATE: 4429 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4430 g_value_set_string (value, tracker_turtle_reader_get_predicate (self)); 4431 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4432 break; 4433 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4434 case TRACKER_TURTLE_READER_OBJECT: 4435 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4436 g_value_set_string (value, tracker_turtle_reader_get_object (self)); 4437 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4438 break; 4439 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4440 case TRACKER_TURTLE_READER_OBJECT_IS_URI: 4441 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4442 g_value_set_boolean (value, tracker_turtle_reader_get_object_is_uri (self)); 4443 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4444 break; 4445 #line 4446 "tracker-turtle-reader.c" 4446 default: 4447 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4448 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); 4449 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4450 break; 4451 #line 4452 "tracker-turtle-reader.c" 4452 } 4453 } 4454 4455 4456 static void _vala_tracker_turtle_reader_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { 4457 TrackerTurtleReader * self; 4458 self = G_TYPE_CHECK_INSTANCE_CAST (object, TRACKER_TYPE_TURTLE_READER, TrackerTurtleReader); 4459 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4460 switch (property_id) { 4461 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4462 case TRACKER_TURTLE_READER_GRAPH: 4463 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4464 tracker_turtle_reader_set_graph (self, g_value_get_string (value)); 4465 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4466 break; 4467 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4468 case TRACKER_TURTLE_READER_SUBJECT: 4469 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4470 tracker_turtle_reader_set_subject (self, g_value_get_string (value)); 4471 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4472 break; 4473 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4474 case TRACKER_TURTLE_READER_PREDICATE: 4475 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4476 tracker_turtle_reader_set_predicate (self, g_value_get_string (value)); 4477 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4478 break; 4479 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4480 case TRACKER_TURTLE_READER_OBJECT: 4481 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4482 tracker_turtle_reader_set_object (self, g_value_get_string (value)); 4483 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4484 break; 4485 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4486 case TRACKER_TURTLE_READER_OBJECT_IS_URI: 4487 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4488 tracker_turtle_reader_set_object_is_uri (self, g_value_get_boolean (value)); 4489 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4490 break; 4491 #line 4492 "tracker-turtle-reader.c" 4492 default: 4493 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4494 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); 4495 #line 20 "/home/martyn/Source/tracker/src/libtracker-data/tracker-turtle-reader.vala" 4496 break; 4497 #line 4498 "tracker-turtle-reader.c" 4498 } 4499 } 4500 4501 4502 static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) { 4503 if ((array != NULL) && (destroy_func != NULL)) { 4504 int i; 4505 for (i = 0; i < array_length; i = i + 1) { 4506 if (((gpointer*) array)[i] != NULL) { 4507 destroy_func (((gpointer*) array)[i]); 4508 } 4509 } 4510 } 4511 } 4512 4513 4514 static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) { 4515 _vala_array_destroy (array, array_length, destroy_func); 4516 g_free (array); 4517 }