summaryrefslogtreecommitdiff
path: root/plugins/shotwell-data-imports/VersionNumber.c
blob: dec377830df9190adf99b3a8ee073ef13c2fbda0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
/* VersionNumber.c generated by valac 0.32.1, the Vala compiler
 * generated from VersionNumber.vala, do not modify */

/* Copyright 2016 Software Freedom Conservancy Inc.
 *
 * This software is licensed under the GNU Lesser General Public License
 * (version 2.1 or later).  See the COPYING file in this distribution.
 */

#include <glib.h>
#include <glib-object.h>
#include <gee.h>
#include <stdlib.h>
#include <string.h>


#define UTILS_TYPE_VERSION_NUMBER (utils_version_number_get_type ())
#define UTILS_VERSION_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumber))
#define UTILS_VERSION_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumberClass))
#define UTILS_IS_VERSION_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UTILS_TYPE_VERSION_NUMBER))
#define UTILS_IS_VERSION_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UTILS_TYPE_VERSION_NUMBER))
#define UTILS_VERSION_NUMBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumberClass))

typedef struct _UtilsVersionNumber UtilsVersionNumber;
typedef struct _UtilsVersionNumberClass UtilsVersionNumberClass;
typedef struct _UtilsVersionNumberPrivate UtilsVersionNumberPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _UtilsVersionNumber {
	GObject parent_instance;
	UtilsVersionNumberPrivate * priv;
};

struct _UtilsVersionNumberClass {
	GObjectClass parent_class;
};

struct _UtilsVersionNumberPrivate {
	gint* version;
	gint version_length1;
	gint _version_size_;
};


static gpointer utils_version_number_parent_class = NULL;
static GeeComparableIface* utils_version_number_gee_comparable_parent_iface = NULL;

GType utils_version_number_get_type (void) G_GNUC_CONST;
#define UTILS_VERSION_NUMBER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumberPrivate))
enum  {
	UTILS_VERSION_NUMBER_DUMMY_PROPERTY
};
UtilsVersionNumber* utils_version_number_new (gint* version, int version_length1);
UtilsVersionNumber* utils_version_number_construct (GType object_type, gint* version, int version_length1);
static gint* _vala_array_dup3 (gint* self, int length);
UtilsVersionNumber* utils_version_number_new_from_string (const gchar* str_version, const gchar* separator);
UtilsVersionNumber* utils_version_number_construct_from_string (GType object_type, const gchar* str_version, const gchar* separator);
gchar* utils_version_number_to_string (UtilsVersionNumber* self);
static gint utils_version_number_real_compare_to (GeeComparable* base, UtilsVersionNumber* other);
static void utils_version_number_finalize (GObject* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


static gint* _vala_array_dup3 (gint* self, int length) {
#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	return g_memdup (self, length * sizeof (gint));
#line 70 "VersionNumber.c"
}


UtilsVersionNumber* utils_version_number_construct (GType object_type, gint* version, int version_length1) {
	UtilsVersionNumber * self = NULL;
	gint* _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gint* _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self = (UtilsVersionNumber*) g_object_new (object_type, NULL);
#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp0_ = version;
#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp0__length1 = version_length1;
#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup3 (_tmp0_, _tmp0__length1) : ((gpointer) _tmp0_);
#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp1__length1 = _tmp0__length1;
#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self->priv->version = (g_free (self->priv->version), NULL);
#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self->priv->version = _tmp1_;
#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self->priv->version_length1 = _tmp1__length1;
#line 17 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self->priv->_version_size_ = self->priv->version_length1;
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	return self;
#line 100 "VersionNumber.c"
}


UtilsVersionNumber* utils_version_number_new (gint* version, int version_length1) {
#line 16 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	return utils_version_number_construct (UTILS_TYPE_VERSION_NUMBER, version, version_length1);
#line 107 "VersionNumber.c"
}


UtilsVersionNumber* utils_version_number_construct_from_string (GType object_type, const gchar* str_version, const gchar* separator) {
	UtilsVersionNumber * self = NULL;
	gchar** version_items = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar** _tmp2_ = NULL;
	gchar** _tmp3_ = NULL;
	gint version_items_length1 = 0;
	gint _version_items_size_ = 0;
	gchar** _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	gint* _tmp5_ = NULL;
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	g_return_val_if_fail (str_version != NULL, NULL);
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	g_return_val_if_fail (separator != NULL, NULL);
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self = (UtilsVersionNumber*) g_object_new (object_type, NULL);
#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp0_ = str_version;
#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp1_ = separator;
#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp3_ = _tmp2_ = g_strsplit (_tmp0_, _tmp1_, 0);
#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	version_items = _tmp3_;
#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	version_items_length1 = _vala_array_length (_tmp2_);
#line 21 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_version_items_size_ = version_items_length1;
#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp4_ = version_items;
#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp4__length1 = version_items_length1;
#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp5_ = g_new0 (gint, _tmp4__length1);
#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self->priv->version = (g_free (self->priv->version), NULL);
#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self->priv->version = _tmp5_;
#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self->priv->version_length1 = _tmp4__length1;
#line 22 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self->priv->_version_size_ = self->priv->version_length1;
#line 155 "VersionNumber.c"
	{
		gint i = 0;
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
		i = 0;
#line 160 "VersionNumber.c"
		{
			gboolean _tmp6_ = FALSE;
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
			_tmp6_ = TRUE;
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
			while (TRUE) {
#line 167 "VersionNumber.c"
				gint _tmp8_ = 0;
				gchar** _tmp9_ = NULL;
				gint _tmp9__length1 = 0;
				gint* _tmp10_ = NULL;
				gint _tmp10__length1 = 0;
				gint _tmp11_ = 0;
				gchar** _tmp12_ = NULL;
				gint _tmp12__length1 = 0;
				gint _tmp13_ = 0;
				const gchar* _tmp14_ = NULL;
				gint _tmp15_ = 0;
				gint _tmp16_ = 0;
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				if (!_tmp6_) {
#line 182 "VersionNumber.c"
					gint _tmp7_ = 0;
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp7_ = i;
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					i = _tmp7_ + 1;
#line 188 "VersionNumber.c"
				}
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp6_ = FALSE;
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp8_ = i;
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp9_ = version_items;
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp9__length1 = version_items_length1;
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				if (!(_tmp8_ < _tmp9__length1)) {
#line 23 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					break;
#line 202 "VersionNumber.c"
				}
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp10_ = self->priv->version;
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp10__length1 = self->priv->version_length1;
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp11_ = i;
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp12_ = version_items;
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp12__length1 = version_items_length1;
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp13_ = i;
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp14_ = _tmp12_[_tmp13_];
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp15_ = atoi (_tmp14_);
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp10_[_tmp11_] = _tmp15_;
#line 24 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp16_ = _tmp10_[_tmp11_];
#line 224 "VersionNumber.c"
			}
		}
	}
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	version_items = (_vala_array_free (version_items, version_items_length1, (GDestroyNotify) g_free), NULL);
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	return self;
#line 232 "VersionNumber.c"
}


UtilsVersionNumber* utils_version_number_new_from_string (const gchar* str_version, const gchar* separator) {
#line 20 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	return utils_version_number_construct_from_string (UTILS_TYPE_VERSION_NUMBER, str_version, separator);
#line 239 "VersionNumber.c"
}


static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gchar** _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
#line 1054 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp0_ = separator;
#line 1054 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp0_ == NULL) {
#line 1055 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		separator = "";
#line 256 "VersionNumber.c"
	}
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp3_ = str_array;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	_tmp3__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp2_ = TRUE;
#line 266 "VersionNumber.c"
	} else {
		gchar** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp4_ = str_array;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp4__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp4__length1 > 0;
#line 276 "VersionNumber.c"
	}
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp2_) {
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp1_ = TRUE;
#line 282 "VersionNumber.c"
	} else {
		gboolean _tmp5_ = FALSE;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp6_ = str_array;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp6__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		if (_tmp6__length1 == -1) {
#line 293 "VersionNumber.c"
			gchar** _tmp7_ = NULL;
			gint _tmp7__length1 = 0;
			const gchar* _tmp8_ = NULL;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp7_ = str_array;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp7__length1 = str_array_length1;
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp8_ = _tmp7_[0];
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp5_ = _tmp8_ != NULL;
#line 305 "VersionNumber.c"
		} else {
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp5_ = FALSE;
#line 309 "VersionNumber.c"
		}
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp1_ = _tmp5_;
#line 313 "VersionNumber.c"
	}
#line 1057 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
	if (_tmp1_) {
#line 317 "VersionNumber.c"
		gint i = 0;
		gsize len = 0UL;
		gint _tmp31_ = 0;
		gint _tmp33_ = 0;
		gint _tmp34_ = 0;
		gsize _tmp35_ = 0UL;
		const gchar* _tmp36_ = NULL;
		gint _tmp37_ = 0;
		gint _tmp38_ = 0;
		gint _tmp39_ = 0;
		const gchar* res = NULL;
		gsize _tmp40_ = 0UL;
		void* _tmp41_ = NULL;
		void* ptr = NULL;
		const gchar* _tmp42_ = NULL;
		gchar** _tmp43_ = NULL;
		gint _tmp43__length1 = 0;
		const gchar* _tmp44_ = NULL;
		void* _tmp45_ = NULL;
		const gchar* _tmp62_ = NULL;
#line 1059 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		len = (gsize) 1;
#line 340 "VersionNumber.c"
		{
			gboolean _tmp9_ = FALSE;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			i = 0;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp9_ = TRUE;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 349 "VersionNumber.c"
				gboolean _tmp11_ = FALSE;
				gboolean _tmp12_ = FALSE;
				gchar** _tmp13_ = NULL;
				gint _tmp13__length1 = 0;
				gint _tmp21_ = 0;
				gchar** _tmp22_ = NULL;
				gint _tmp22__length1 = 0;
				gint _tmp23_ = 0;
				const gchar* _tmp24_ = NULL;
				gsize _tmp30_ = 0UL;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (!_tmp9_) {
#line 362 "VersionNumber.c"
					gint _tmp10_ = 0;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp10_ = i;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					i = _tmp10_ + 1;
#line 368 "VersionNumber.c"
				}
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp9_ = FALSE;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp13_ = str_array;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp13__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (_tmp13__length1 != -1) {
#line 378 "VersionNumber.c"
					gint _tmp14_ = 0;
					gchar** _tmp15_ = NULL;
					gint _tmp15__length1 = 0;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp14_ = i;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp15_ = str_array;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp15__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp12_ = _tmp14_ < _tmp15__length1;
#line 390 "VersionNumber.c"
				} else {
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp12_ = FALSE;
#line 394 "VersionNumber.c"
				}
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (_tmp12_) {
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp11_ = TRUE;
#line 400 "VersionNumber.c"
				} else {
					gboolean _tmp16_ = FALSE;
					gchar** _tmp17_ = NULL;
					gint _tmp17__length1 = 0;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp17_ = str_array;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp17__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					if (_tmp17__length1 == -1) {
#line 411 "VersionNumber.c"
						gchar** _tmp18_ = NULL;
						gint _tmp18__length1 = 0;
						gint _tmp19_ = 0;
						const gchar* _tmp20_ = NULL;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp18_ = str_array;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp18__length1 = str_array_length1;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp19_ = i;
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp20_ = _tmp18_[_tmp19_];
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp16_ = _tmp20_ != NULL;
#line 426 "VersionNumber.c"
					} else {
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
						_tmp16_ = FALSE;
#line 430 "VersionNumber.c"
					}
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp11_ = _tmp16_;
#line 434 "VersionNumber.c"
				}
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (!_tmp11_) {
#line 1060 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					break;
#line 440 "VersionNumber.c"
				}
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp22_ = str_array;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp22__length1 = str_array_length1;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp23_ = i;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp24_ = _tmp22_[_tmp23_];
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (_tmp24_ != NULL) {
#line 452 "VersionNumber.c"
					gchar** _tmp25_ = NULL;
					gint _tmp25__length1 = 0;
					gint _tmp26_ = 0;
					const gchar* _tmp27_ = NULL;
					gint _tmp28_ = 0;
					gint _tmp29_ = 0;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp25_ = str_array;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp25__length1 = str_array_length1;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp26_ = i;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp27_ = _tmp25_[_tmp26_];
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp28_ = strlen ((const gchar*) _tmp27_);
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp29_ = _tmp28_;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp21_ = _tmp29_;
#line 473 "VersionNumber.c"
				} else {
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp21_ = 0;
#line 477 "VersionNumber.c"
				}
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp30_ = len;
#line 1061 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				len = _tmp30_ + _tmp21_;
#line 483 "VersionNumber.c"
			}
		}
#line 1063 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp31_ = i;
#line 1063 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		if (_tmp31_ == 0) {
#line 490 "VersionNumber.c"
			gchar* _tmp32_ = NULL;
#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp32_ = g_strdup ("");
#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			result = _tmp32_;
#line 1064 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			return result;
#line 498 "VersionNumber.c"
		}
#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp33_ = i;
#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		str_array_length1 = _tmp33_;
#line 1066 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp34_ = str_array_length1;
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp35_ = len;
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp36_ = separator;
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp37_ = strlen ((const gchar*) _tmp36_);
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp38_ = _tmp37_;
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp39_ = i;
#line 1067 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1));
#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp40_ = len;
#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp41_ = g_malloc (_tmp40_);
#line 1069 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		res = _tmp41_;
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp42_ = res;
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp43_ = str_array;
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp43__length1 = str_array_length1;
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp44_ = _tmp43_[0];
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_);
#line 1070 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		ptr = _tmp45_;
#line 536 "VersionNumber.c"
		{
			gboolean _tmp46_ = FALSE;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			i = 1;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			_tmp46_ = TRUE;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
			while (TRUE) {
#line 545 "VersionNumber.c"
				gint _tmp48_ = 0;
				gchar** _tmp49_ = NULL;
				gint _tmp49__length1 = 0;
				void* _tmp50_ = NULL;
				const gchar* _tmp51_ = NULL;
				void* _tmp52_ = NULL;
				const gchar* _tmp53_ = NULL;
				gchar** _tmp54_ = NULL;
				gint _tmp54__length1 = 0;
				gint _tmp55_ = 0;
				const gchar* _tmp56_ = NULL;
				void* _tmp60_ = NULL;
				void* _tmp61_ = NULL;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (!_tmp46_) {
#line 561 "VersionNumber.c"
					gint _tmp47_ = 0;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp47_ = i;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					i = _tmp47_ + 1;
#line 567 "VersionNumber.c"
				}
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp46_ = FALSE;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp48_ = i;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp49_ = str_array;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp49__length1 = str_array_length1;
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (!(_tmp48_ < _tmp49__length1)) {
#line 1071 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					break;
#line 581 "VersionNumber.c"
				}
#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp50_ = ptr;
#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp51_ = separator;
#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_);
#line 1072 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				ptr = _tmp52_;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp54_ = str_array;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp54__length1 = str_array_length1;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp55_ = i;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp56_ = _tmp54_[_tmp55_];
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				if (_tmp56_ != NULL) {
#line 601 "VersionNumber.c"
					gchar** _tmp57_ = NULL;
					gint _tmp57__length1 = 0;
					gint _tmp58_ = 0;
					const gchar* _tmp59_ = NULL;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp57_ = str_array;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp57__length1 = str_array_length1;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp58_ = i;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp59_ = _tmp57_[_tmp58_];
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp53_ = (const gchar*) _tmp59_;
#line 616 "VersionNumber.c"
				} else {
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
					_tmp53_ = "";
#line 620 "VersionNumber.c"
				}
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp60_ = ptr;
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				_tmp61_ = g_stpcpy (_tmp60_, _tmp53_);
#line 1073 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
				ptr = _tmp61_;
#line 628 "VersionNumber.c"
			}
		}
#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp62_ = res;
#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		res = NULL;
#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		result = (gchar*) _tmp62_;
#line 1076 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		return result;
#line 639 "VersionNumber.c"
	} else {
		gchar* _tmp63_ = NULL;
#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		_tmp63_ = g_strdup ("");
#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		result = _tmp63_;
#line 1078 "/usr/share/vala-0.32/vapi/glib-2.0.vapi"
		return result;
#line 648 "VersionNumber.c"
	}
}


gchar* utils_version_number_to_string (UtilsVersionNumber* self) {
	gchar* result = NULL;
	gchar** version_items = NULL;
	gint* _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	gchar** _tmp1_ = NULL;
	gint version_items_length1 = 0;
	gint _version_items_size_ = 0;
	gchar** _tmp13_ = NULL;
	gint _tmp13__length1 = 0;
	gchar* _tmp14_ = NULL;
#line 27 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	g_return_val_if_fail (UTILS_IS_VERSION_NUMBER (self), NULL);
#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp0_ = self->priv->version;
#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp0__length1 = self->priv->version_length1;
#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp1_ = g_new0 (gchar*, _tmp0__length1 + 1);
#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	version_items = _tmp1_;
#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	version_items_length1 = _tmp0__length1;
#line 28 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_version_items_size_ = version_items_length1;
#line 678 "VersionNumber.c"
	{
		gint i = 0;
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
		i = 0;
#line 683 "VersionNumber.c"
		{
			gboolean _tmp2_ = FALSE;
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
			_tmp2_ = TRUE;
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
			while (TRUE) {
#line 690 "VersionNumber.c"
				gint _tmp4_ = 0;
				gint* _tmp5_ = NULL;
				gint _tmp5__length1 = 0;
				gchar** _tmp6_ = NULL;
				gint _tmp6__length1 = 0;
				gint _tmp7_ = 0;
				gint* _tmp8_ = NULL;
				gint _tmp8__length1 = 0;
				gint _tmp9_ = 0;
				gint _tmp10_ = 0;
				gchar* _tmp11_ = NULL;
				gchar* _tmp12_ = NULL;
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				if (!_tmp2_) {
#line 705 "VersionNumber.c"
					gint _tmp3_ = 0;
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp3_ = i;
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					i = _tmp3_ + 1;
#line 711 "VersionNumber.c"
				}
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp2_ = FALSE;
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp4_ = i;
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp5_ = self->priv->version;
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp5__length1 = self->priv->version_length1;
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				if (!(_tmp4_ < _tmp5__length1)) {
#line 29 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					break;
#line 725 "VersionNumber.c"
				}
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp6_ = version_items;
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp6__length1 = version_items_length1;
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp7_ = i;
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp8_ = self->priv->version;
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp8__length1 = self->priv->version_length1;
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp9_ = i;
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp10_ = _tmp8_[_tmp9_];
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp11_ = g_strdup_printf ("%i", _tmp10_);
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_g_free0 (_tmp6_[_tmp7_]);
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp6_[_tmp7_] = _tmp11_;
#line 30 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp12_ = _tmp6_[_tmp7_];
#line 749 "VersionNumber.c"
			}
		}
	}
#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp13_ = version_items;
#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp13__length1 = version_items_length1;
#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp14_ = _vala_g_strjoinv (".", _tmp13_, _tmp13__length1);
#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	result = _tmp14_;
#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	version_items = (_vala_array_free (version_items, version_items_length1, (GDestroyNotify) g_free), NULL);
#line 31 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	return result;
#line 765 "VersionNumber.c"
}


static gint utils_version_number_real_compare_to (GeeComparable* base, UtilsVersionNumber* other) {
	UtilsVersionNumber * self;
	gint result = 0;
	gint _tmp0_ = 0;
	gint* _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
	UtilsVersionNumber* _tmp2_ = NULL;
	gint* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	gint max_len = 0;
	gint res = 0;
#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (base, UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumber);
#line 34 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	g_return_val_if_fail (UTILS_IS_VERSION_NUMBER (other), 0);
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp1_ = self->priv->version;
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp1__length1 = self->priv->version_length1;
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp2_ = other;
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp3_ = _tmp2_->priv->version;
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	_tmp3__length1 = _tmp2_->priv->version_length1;
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	if (_tmp1__length1 > _tmp3__length1) {
#line 796 "VersionNumber.c"
		gint* _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
		_tmp4_ = self->priv->version;
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
		_tmp4__length1 = self->priv->version_length1;
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
		_tmp0_ = _tmp4__length1;
#line 805 "VersionNumber.c"
	} else {
		UtilsVersionNumber* _tmp5_ = NULL;
		gint* _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
		_tmp5_ = other;
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
		_tmp6_ = _tmp5_->priv->version;
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
		_tmp6__length1 = _tmp5_->priv->version_length1;
#line 36 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
		_tmp0_ = _tmp6__length1;
#line 818 "VersionNumber.c"
	}
#line 35 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	max_len = _tmp0_;
#line 37 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	res = 0;
#line 824 "VersionNumber.c"
	{
		gint i = 0;
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
		i = 0;
#line 829 "VersionNumber.c"
		{
			gboolean _tmp7_ = FALSE;
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
			_tmp7_ = TRUE;
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
			while (TRUE) {
#line 836 "VersionNumber.c"
				gint _tmp9_ = 0;
				gint _tmp10_ = 0;
				gint _tmp11_ = 0;
				gint _tmp12_ = 0;
				gint* _tmp13_ = NULL;
				gint _tmp13__length1 = 0;
				gint this_v = 0;
				gint _tmp17_ = 0;
				gint _tmp18_ = 0;
				UtilsVersionNumber* _tmp19_ = NULL;
				gint* _tmp20_ = NULL;
				gint _tmp20__length1 = 0;
				gint other_v = 0;
				gint _tmp25_ = 0;
				gint _tmp26_ = 0;
				gint _tmp27_ = 0;
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				if (!_tmp7_) {
#line 855 "VersionNumber.c"
					gint _tmp8_ = 0;
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp8_ = i;
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					i = _tmp8_ + 1;
#line 861 "VersionNumber.c"
				}
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp7_ = FALSE;
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp9_ = i;
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp10_ = max_len;
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				if (!(_tmp9_ < _tmp10_)) {
#line 38 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					break;
#line 873 "VersionNumber.c"
				}
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp12_ = i;
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp13_ = self->priv->version;
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp13__length1 = self->priv->version_length1;
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				if (_tmp12_ < _tmp13__length1) {
#line 883 "VersionNumber.c"
					gint* _tmp14_ = NULL;
					gint _tmp14__length1 = 0;
					gint _tmp15_ = 0;
					gint _tmp16_ = 0;
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp14_ = self->priv->version;
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp14__length1 = self->priv->version_length1;
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp15_ = i;
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp16_ = _tmp14_[_tmp15_];
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp11_ = _tmp16_;
#line 898 "VersionNumber.c"
				} else {
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp11_ = 0;
#line 902 "VersionNumber.c"
				}
#line 39 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				this_v = _tmp11_;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp18_ = i;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp19_ = other;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp20_ = _tmp19_->priv->version;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp20__length1 = _tmp19_->priv->version_length1;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				if (_tmp18_ < _tmp20__length1) {
#line 916 "VersionNumber.c"
					UtilsVersionNumber* _tmp21_ = NULL;
					gint* _tmp22_ = NULL;
					gint _tmp22__length1 = 0;
					gint _tmp23_ = 0;
					gint _tmp24_ = 0;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp21_ = other;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp22_ = _tmp21_->priv->version;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp22__length1 = _tmp21_->priv->version_length1;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp23_ = i;
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp24_ = _tmp22_[_tmp23_];
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp17_ = _tmp24_;
#line 934 "VersionNumber.c"
				} else {
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					_tmp17_ = 0;
#line 938 "VersionNumber.c"
				}
#line 40 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				other_v = _tmp17_;
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp25_ = this_v;
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp26_ = other_v;
#line 41 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				res = _tmp25_ - _tmp26_;
#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				_tmp27_ = res;
#line 42 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
				if (_tmp27_ != 0) {
#line 43 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
					break;
#line 954 "VersionNumber.c"
				}
			}
		}
	}
#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	result = res;
#line 45 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	return result;
#line 963 "VersionNumber.c"
}


static void utils_version_number_class_init (UtilsVersionNumberClass * klass) {
#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	utils_version_number_parent_class = g_type_class_peek_parent (klass);
#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	g_type_class_add_private (klass, sizeof (UtilsVersionNumberPrivate));
#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	G_OBJECT_CLASS (klass)->finalize = utils_version_number_finalize;
#line 974 "VersionNumber.c"
}


static void utils_version_number_gee_comparable_interface_init (GeeComparableIface * iface) {
#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	utils_version_number_gee_comparable_parent_iface = g_type_interface_peek_parent (iface);
#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	iface->compare_to = (gint (*)(GeeComparable*, gconstpointer)) utils_version_number_real_compare_to;
#line 983 "VersionNumber.c"
}


static void utils_version_number_instance_init (UtilsVersionNumber * self) {
#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self->priv = UTILS_VERSION_NUMBER_GET_PRIVATE (self);
#line 990 "VersionNumber.c"
}


static void utils_version_number_finalize (GObject* obj) {
	UtilsVersionNumber * self;
#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, UTILS_TYPE_VERSION_NUMBER, UtilsVersionNumber);
#line 14 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	self->priv->version = (g_free (self->priv->version), NULL);
#line 13 "/home/jens/Source/shotwell/plugins/shotwell-data-imports/VersionNumber.vala"
	G_OBJECT_CLASS (utils_version_number_parent_class)->finalize (obj);
#line 1002 "VersionNumber.c"
}


/**
 * A class that represents a version number in the form x.y.z and is able to compare
 * different versions.
 */
GType utils_version_number_get_type (void) {
	static volatile gsize utils_version_number_type_id__volatile = 0;
	if (g_once_init_enter (&utils_version_number_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (UtilsVersionNumberClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) utils_version_number_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UtilsVersionNumber), 0, (GInstanceInitFunc) utils_version_number_instance_init, NULL };
		static const GInterfaceInfo gee_comparable_info = { (GInterfaceInitFunc) utils_version_number_gee_comparable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType utils_version_number_type_id;
		utils_version_number_type_id = g_type_register_static (G_TYPE_OBJECT, "UtilsVersionNumber", &g_define_type_info, 0);
		g_type_add_interface_static (utils_version_number_type_id, GEE_TYPE_COMPARABLE, &gee_comparable_info);
		g_once_init_leave (&utils_version_number_type_id__volatile, utils_version_number_type_id);
	}
	return utils_version_number_type_id__volatile;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}