From ab841afa5cb39058d9ab2cebb67cfe6369443f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 25 Jun 2018 20:55:59 +0200 Subject: New upstream version 0.28.3 --- src/db/VersionTable.c | 373 ++++++++++++++++++++++++-------------------------- 1 file changed, 178 insertions(+), 195 deletions(-) (limited to 'src/db/VersionTable.c') diff --git a/src/db/VersionTable.c b/src/db/VersionTable.c index 4505a6f..a5847d7 100644 --- a/src/db/VersionTable.c +++ b/src/db/VersionTable.c @@ -1,4 +1,4 @@ -/* VersionTable.c generated by valac 0.36.6, the Vala compiler +/* VersionTable.c generated by valac 0.40.4, the Vala compiler * generated from VersionTable.vala, do not modify */ /* Copyright 2016 Software Freedom Conservancy Inc. @@ -7,6 +7,7 @@ * (version 2.1 or later). See the COPYING file in this distribution. */ + #include #include #include @@ -72,28 +73,41 @@ extern sqlite3* database_table_db; gpointer database_table_ref (gpointer instance); void database_table_unref (gpointer instance); -GParamSpec* param_spec_database_table (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_database_table (GValue* value, gpointer v_object); -void value_take_database_table (GValue* value, gpointer v_object); +GParamSpec* param_spec_database_table (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags); +void value_set_database_table (GValue* value, + gpointer v_object); +void value_take_database_table (GValue* value, + gpointer v_object); gpointer value_get_database_table (const GValue* value); GType database_table_get_type (void) G_GNUC_CONST; GType version_table_get_type (void) G_GNUC_CONST; -enum { - VERSION_TABLE_DUMMY_PROPERTY -}; static VersionTable* version_table_new (void); static VersionTable* version_table_construct (GType object_type); DatabaseTable* database_table_construct (GType object_type); -void database_table_fatal (const gchar* op, gint res); -void database_table_set_table_name (DatabaseTable* self, const gchar* table_name); +void database_table_fatal (const gchar* op, + gint res); +void database_table_set_table_name (DatabaseTable* self, + const gchar* table_name); VersionTable* version_table_get_instance (void); -gint version_table_get_version (VersionTable* self, gchar* * app_version); -void version_table_set_version (VersionTable* self, gint version, const gchar* app_version, const gchar* user_data); -void version_table_update_version (VersionTable* self, gint version, const gchar* app_version); +gint version_table_get_version (VersionTable* self, + gchar* * app_version); +void version_table_set_version (VersionTable* self, + gint version, + const gchar* app_version, + const gchar* user_data); +void version_table_update_version (VersionTable* self, + gint version, + const gchar* app_version); static void version_table_finalize (DatabaseTable * obj); -static VersionTable* version_table_construct (GType object_type) { +static VersionTable* +version_table_construct (GType object_type) +{ VersionTable* self = NULL; sqlite3_stmt* stmt = NULL; gint res = 0; @@ -103,7 +117,6 @@ static VersionTable* version_table_construct (GType object_type) { gint _tmp3_; sqlite3_stmt* _tmp4_; gint _tmp5_; - gint _tmp6_; #line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala" self = (VersionTable*) database_table_construct (object_type); #line 12 "/home/jens/Source/shotwell/src/db/VersionTable.vala" @@ -123,20 +136,18 @@ static VersionTable* version_table_construct (GType object_type) { #line 20 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _tmp4_ = stmt; #line 20 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp5_ = sqlite3_step (_tmp4_); -#line 20 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp5_; + res = sqlite3_step (_tmp4_); #line 21 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp6_ = res; + _tmp5_ = res; #line 21 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp6_ != SQLITE_DONE) { -#line 134 "VersionTable.c" - gint _tmp7_; + if (_tmp5_ != SQLITE_DONE) { +#line 145 "VersionTable.c" + gint _tmp6_; #line 22 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp7_ = res; + _tmp6_ = res; #line 22 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - database_table_fatal ("create version table", _tmp7_); -#line 140 "VersionTable.c" + database_table_fatal ("create version table", _tmp6_); +#line 151 "VersionTable.c" } #line 24 "/home/jens/Source/shotwell/src/db/VersionTable.vala" database_table_set_table_name (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_DATABASE_TABLE, DatabaseTable), "VersionTable"); @@ -144,25 +155,31 @@ static VersionTable* version_table_construct (GType object_type) { _sqlite3_finalize0 (stmt); #line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala" return self; -#line 148 "VersionTable.c" +#line 159 "VersionTable.c" } -static VersionTable* version_table_new (void) { +static VersionTable* +version_table_new (void) +{ #line 10 "/home/jens/Source/shotwell/src/db/VersionTable.vala" return version_table_construct (TYPE_VERSION_TABLE); -#line 155 "VersionTable.c" +#line 168 "VersionTable.c" } -static gpointer _database_table_ref0 (gpointer self) { +static gpointer +_database_table_ref0 (gpointer self) +{ #line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala" return self ? database_table_ref (self) : NULL; -#line 162 "VersionTable.c" +#line 177 "VersionTable.c" } -VersionTable* version_table_get_instance (void) { +VersionTable* +version_table_get_instance (void) +{ VersionTable* result = NULL; VersionTable* _tmp0_; VersionTable* _tmp2_; @@ -171,7 +188,7 @@ VersionTable* version_table_get_instance (void) { _tmp0_ = version_table_instance; #line 28 "/home/jens/Source/shotwell/src/db/VersionTable.vala" if (_tmp0_ == NULL) { -#line 175 "VersionTable.c" +#line 192 "VersionTable.c" VersionTable* _tmp1_; #line 29 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _tmp1_ = version_table_new (); @@ -179,7 +196,7 @@ VersionTable* version_table_get_instance (void) { _database_table_unref0 (version_table_instance); #line 29 "/home/jens/Source/shotwell/src/db/VersionTable.vala" version_table_instance = _tmp1_; -#line 183 "VersionTable.c" +#line 200 "VersionTable.c" } #line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _tmp2_ = version_table_instance; @@ -189,11 +206,14 @@ VersionTable* version_table_get_instance (void) { result = _tmp3_; #line 31 "/home/jens/Source/shotwell/src/db/VersionTable.vala" return result; -#line 193 "VersionTable.c" +#line 210 "VersionTable.c" } -gint version_table_get_version (VersionTable* self, gchar* * app_version) { +gint +version_table_get_version (VersionTable* self, + gchar* * app_version) +{ gchar* _vala_app_version = NULL; gint result = 0; sqlite3_stmt* stmt = NULL; @@ -204,12 +224,10 @@ gint version_table_get_version (VersionTable* self, gchar* * app_version) { gint _tmp3_; sqlite3_stmt* _tmp4_; gint _tmp5_; - gint _tmp6_; - sqlite3_stmt* _tmp9_; - const gchar* _tmp10_; - gchar* _tmp11_; - sqlite3_stmt* _tmp12_; - gint _tmp13_; + sqlite3_stmt* _tmp8_; + const gchar* _tmp9_; + gchar* _tmp10_; + sqlite3_stmt* _tmp11_; #line 34 "/home/jens/Source/shotwell/src/db/VersionTable.vala" g_return_val_if_fail (IS_VERSION_TABLE (self), 0); #line 36 "/home/jens/Source/shotwell/src/db/VersionTable.vala" @@ -230,26 +248,24 @@ gint version_table_get_version (VersionTable* self, gchar* * app_version) { #line 40 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _tmp4_ = stmt; #line 40 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp5_ = sqlite3_step (_tmp4_); -#line 40 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp5_; + res = sqlite3_step (_tmp4_); #line 41 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp6_ = res; + _tmp5_ = res; #line 41 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp6_ != SQLITE_ROW) { -#line 240 "VersionTable.c" - gint _tmp7_; + if (_tmp5_ != SQLITE_ROW) { +#line 256 "VersionTable.c" + gint _tmp6_; #line 42 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp7_ = res; + _tmp6_ = res; #line 42 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp7_ != SQLITE_DONE) { -#line 246 "VersionTable.c" - gint _tmp8_; + if (_tmp6_ != SQLITE_DONE) { +#line 262 "VersionTable.c" + gint _tmp7_; #line 43 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp8_ = res; + _tmp7_ = res; #line 43 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - database_table_fatal ("get_version", _tmp8_); -#line 252 "VersionTable.c" + database_table_fatal ("get_version", _tmp7_); +#line 268 "VersionTable.c" } #line 45 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _g_free0 (_vala_app_version); @@ -263,51 +279,54 @@ gint version_table_get_version (VersionTable* self, gchar* * app_version) { if (app_version) { #line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala" *app_version = _vala_app_version; -#line 266 "VersionTable.c" +#line 282 "VersionTable.c" } else { #line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _g_free0 (_vala_app_version); -#line 270 "VersionTable.c" +#line 286 "VersionTable.c" } #line 47 "/home/jens/Source/shotwell/src/db/VersionTable.vala" return result; -#line 274 "VersionTable.c" +#line 290 "VersionTable.c" } #line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp9_ = stmt; + _tmp8_ = stmt; #line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp10_ = sqlite3_column_text (_tmp9_, 1); + _tmp9_ = sqlite3_column_text (_tmp8_, 1); #line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp11_ = g_strdup (_tmp10_); + _tmp10_ = g_strdup (_tmp9_); #line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _g_free0 (_vala_app_version); #line 50 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_app_version = _tmp11_; -#line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp12_ = stmt; + _vala_app_version = _tmp10_; #line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp13_ = sqlite3_column_int (_tmp12_, 0); + _tmp11_ = stmt; #line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - result = _tmp13_; + result = sqlite3_column_int (_tmp11_, 0); #line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _sqlite3_finalize0 (stmt); #line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" if (app_version) { #line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" *app_version = _vala_app_version; -#line 298 "VersionTable.c" +#line 312 "VersionTable.c" } else { #line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _g_free0 (_vala_app_version); -#line 302 "VersionTable.c" +#line 316 "VersionTable.c" } #line 52 "/home/jens/Source/shotwell/src/db/VersionTable.vala" return result; -#line 306 "VersionTable.c" +#line 320 "VersionTable.c" } -void version_table_set_version (VersionTable* self, gint version, const gchar* app_version, const gchar* user_data) { +void +version_table_set_version (VersionTable* self, + gint version, + const gchar* app_version, + const gchar* user_data) +{ sqlite3_stmt* stmt = NULL; gchar* bitbucket = NULL; gchar* _tmp0_ = NULL; @@ -315,23 +334,16 @@ void version_table_set_version (VersionTable* self, gint version, const gchar* a gint res = 0; sqlite3_stmt* _tmp10_; gint _tmp11_; - gint _tmp12_; - gint _tmp13_; - sqlite3_stmt* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; - GDestroyNotify _tmp17_; - gint _tmp18_; + sqlite3_stmt* _tmp12_; + gchar* _tmp13_; + GDestroyNotify _tmp14_; + gint _tmp15_; + sqlite3_stmt* _tmp16_; + gchar* _tmp17_; + GDestroyNotify _tmp18_; gint _tmp19_; sqlite3_stmt* _tmp20_; - const gchar* _tmp21_; - gchar* _tmp22_; - GDestroyNotify _tmp23_; - gint _tmp24_; - gint _tmp25_; - sqlite3_stmt* _tmp26_; - gint _tmp27_; - gint _tmp28_; + gint _tmp21_; #line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala" g_return_if_fail (IS_VERSION_TABLE (self)); #line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala" @@ -344,7 +356,7 @@ void version_table_set_version (VersionTable* self, gint version, const gchar* a bitbucket = _tmp0_; #line 59 "/home/jens/Source/shotwell/src/db/VersionTable.vala" if (_tmp1_ != -1) { -#line 347 "VersionTable.c" +#line 359 "VersionTable.c" gint res = 0; sqlite3* _tmp2_; sqlite3_stmt* _tmp3_ = NULL; @@ -364,7 +376,7 @@ void version_table_set_version (VersionTable* self, gint version, const gchar* a _tmp5_ = res; #line 63 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); -#line 367 "VersionTable.c" +#line 379 "VersionTable.c" } else { gint res = 0; sqlite3* _tmp6_; @@ -386,96 +398,77 @@ void version_table_set_version (VersionTable* self, gint version, const gchar* a _tmp9_ = res; #line 68 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); -#line 388 "VersionTable.c" +#line 400 "VersionTable.c" } #line 71 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _tmp10_ = stmt; #line 71 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp11_ = version; -#line 71 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp12_ = sqlite3_bind_int (_tmp10_, 1, _tmp11_); -#line 71 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp12_; + res = sqlite3_bind_int (_tmp10_, 1, version); #line 72 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp13_ = res; + _tmp11_ = res; #line 72 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); -#line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp14_ = stmt; -#line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp15_ = app_version; + _vala_assert (_tmp11_ == SQLITE_OK, "res == Sqlite.OK"); #line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp16_ = g_strdup (_tmp15_); + _tmp12_ = stmt; #line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp17_ = g_free; + _tmp13_ = g_strdup (app_version); #line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp18_ = sqlite3_bind_text (_tmp14_, 2, _tmp16_, -1, _tmp17_); + _tmp14_ = g_free; #line 73 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp18_; + res = sqlite3_bind_text (_tmp12_, 2, _tmp13_, -1, _tmp14_); #line 74 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp19_ = res; + _tmp15_ = res; #line 74 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp19_ == SQLITE_OK, "res == Sqlite.OK"); -#line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp20_ = stmt; + _vala_assert (_tmp15_ == SQLITE_OK, "res == Sqlite.OK"); #line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp21_ = user_data; + _tmp16_ = stmt; #line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp22_ = g_strdup (_tmp21_); + _tmp17_ = g_strdup (user_data); #line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp23_ = g_free; + _tmp18_ = g_free; #line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp24_ = sqlite3_bind_text (_tmp20_, 3, _tmp22_, -1, _tmp23_); -#line 75 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp24_; + res = sqlite3_bind_text (_tmp16_, 3, _tmp17_, -1, _tmp18_); #line 76 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp25_ = res; + _tmp19_ = res; #line 76 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp25_ == SQLITE_OK, "res == Sqlite.OK"); -#line 78 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp26_ = stmt; + _vala_assert (_tmp19_ == SQLITE_OK, "res == Sqlite.OK"); #line 78 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp27_ = sqlite3_step (_tmp26_); + _tmp20_ = stmt; #line 78 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp27_; + res = sqlite3_step (_tmp20_); #line 79 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp28_ = res; + _tmp21_ = res; #line 79 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp28_ != SQLITE_DONE) { -#line 444 "VersionTable.c" - gint _tmp29_; - const gchar* _tmp30_; - const gchar* _tmp31_; - gchar* _tmp32_; - gchar* _tmp33_; - gint _tmp34_; -#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp29_ = version; + if (_tmp21_ != SQLITE_DONE) { +#line 442 "VersionTable.c" + gchar* _tmp22_; + gchar* _tmp23_; + gint _tmp24_; #line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp30_ = app_version; + _tmp22_ = g_strdup_printf ("set_version %d %s %s", version, app_version, user_data); #line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp31_ = user_data; + _tmp23_ = _tmp22_; #line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp32_ = g_strdup_printf ("set_version %d %s %s", _tmp29_, _tmp30_, _tmp31_); + _tmp24_ = res; #line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp33_ = _tmp32_; + database_table_fatal (_tmp23_, _tmp24_); #line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp34_ = res; -#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - database_table_fatal (_tmp33_, _tmp34_); -#line 80 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _g_free0 (_tmp33_); -#line 467 "VersionTable.c" + _g_free0 (_tmp23_); +#line 456 "VersionTable.c" } #line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _g_free0 (bitbucket); #line 55 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _sqlite3_finalize0 (stmt); -#line 473 "VersionTable.c" +#line 462 "VersionTable.c" } -void version_table_update_version (VersionTable* self, gint version, const gchar* app_version) { +void +version_table_update_version (VersionTable* self, + gint version, + const gchar* app_version) +{ sqlite3_stmt* stmt = NULL; gint res = 0; sqlite3* _tmp0_; @@ -484,17 +477,12 @@ void version_table_update_version (VersionTable* self, gint version, const gchar gint _tmp3_; sqlite3_stmt* _tmp4_; gint _tmp5_; - gint _tmp6_; - gint _tmp7_; - sqlite3_stmt* _tmp8_; - const gchar* _tmp9_; - gchar* _tmp10_; - GDestroyNotify _tmp11_; - gint _tmp12_; - gint _tmp13_; - sqlite3_stmt* _tmp14_; - gint _tmp15_; - gint _tmp16_; + sqlite3_stmt* _tmp6_; + gchar* _tmp7_; + GDestroyNotify _tmp8_; + gint _tmp9_; + sqlite3_stmt* _tmp10_; + gint _tmp11_; #line 83 "/home/jens/Source/shotwell/src/db/VersionTable.vala" g_return_if_fail (IS_VERSION_TABLE (self)); #line 83 "/home/jens/Source/shotwell/src/db/VersionTable.vala" @@ -516,90 +504,85 @@ void version_table_update_version (VersionTable* self, gint version, const gchar #line 88 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _tmp4_ = stmt; #line 88 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp5_ = version; -#line 88 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp6_ = sqlite3_bind_int (_tmp4_, 1, _tmp5_); -#line 88 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp6_; + res = sqlite3_bind_int (_tmp4_, 1, version); #line 89 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp7_ = res; + _tmp5_ = res; #line 89 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp7_ == SQLITE_OK, "res == Sqlite.OK"); + _vala_assert (_tmp5_ == SQLITE_OK, "res == Sqlite.OK"); #line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp8_ = stmt; + _tmp6_ = stmt; #line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp9_ = app_version; + _tmp7_ = g_strdup (app_version); #line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp10_ = g_strdup (_tmp9_); + _tmp8_ = g_free; #line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp11_ = g_free; -#line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp12_ = sqlite3_bind_text (_tmp8_, 2, _tmp10_, -1, _tmp11_); -#line 90 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp12_; + res = sqlite3_bind_text (_tmp6_, 2, _tmp7_, -1, _tmp8_); #line 91 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp13_ = res; + _tmp9_ = res; #line 91 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _vala_assert (_tmp13_ == SQLITE_OK, "res == Sqlite.OK"); -#line 93 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp14_ = stmt; + _vala_assert (_tmp9_ == SQLITE_OK, "res == Sqlite.OK"); #line 93 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp15_ = sqlite3_step (_tmp14_); + _tmp10_ = stmt; #line 93 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - res = _tmp15_; + res = sqlite3_step (_tmp10_); #line 94 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp16_ = res; + _tmp11_ = res; #line 94 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - if (_tmp16_ != SQLITE_DONE) { -#line 553 "VersionTable.c" - gint _tmp17_; - gchar* _tmp18_; - gchar* _tmp19_; - gint _tmp20_; -#line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp17_ = version; + if (_tmp11_ != SQLITE_DONE) { +#line 531 "VersionTable.c" + gchar* _tmp12_; + gchar* _tmp13_; + gint _tmp14_; #line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp18_ = g_strdup_printf ("update_version %d", _tmp17_); + _tmp12_ = g_strdup_printf ("update_version %d", version); #line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp19_ = _tmp18_; + _tmp13_ = _tmp12_; #line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _tmp20_ = res; + _tmp14_ = res; #line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - database_table_fatal (_tmp19_, _tmp20_); + database_table_fatal (_tmp13_, _tmp14_); #line 95 "/home/jens/Source/shotwell/src/db/VersionTable.vala" - _g_free0 (_tmp19_); -#line 570 "VersionTable.c" + _g_free0 (_tmp13_); +#line 545 "VersionTable.c" } #line 83 "/home/jens/Source/shotwell/src/db/VersionTable.vala" _sqlite3_finalize0 (stmt); -#line 574 "VersionTable.c" +#line 549 "VersionTable.c" } -static void version_table_class_init (VersionTableClass * klass) { +static void +version_table_class_init (VersionTableClass * klass) +{ #line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala" version_table_parent_class = g_type_class_peek_parent (klass); #line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala" ((DatabaseTableClass *) klass)->finalize = version_table_finalize; -#line 583 "VersionTable.c" +#line 560 "VersionTable.c" } -static void version_table_instance_init (VersionTable * self) { +static void +version_table_instance_init (VersionTable * self) +{ } -static void version_table_finalize (DatabaseTable * obj) { +static void +version_table_finalize (DatabaseTable * obj) +{ VersionTable * self; #line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_VERSION_TABLE, VersionTable); #line 7 "/home/jens/Source/shotwell/src/db/VersionTable.vala" DATABASE_TABLE_CLASS (version_table_parent_class)->finalize (obj); -#line 597 "VersionTable.c" +#line 578 "VersionTable.c" } -GType version_table_get_type (void) { +GType +version_table_get_type (void) +{ static volatile gsize version_table_type_id__volatile = 0; if (g_once_init_enter (&version_table_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (VersionTableClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) version_table_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VersionTable), 0, (GInstanceInitFunc) version_table_instance_init, NULL }; -- cgit v1.2.3