190
190
CurrencyManager* currency_manager_get_default (void) {
191
191
CurrencyManager* result = NULL;
192
CurrencyManager* _tmp0_;
193
CurrencyManager* _tmp3_;
194
CurrencyManager* _tmp4_;
192
CurrencyManager* _tmp0_ = NULL;
193
CurrencyManager* _tmp3_ = NULL;
194
CurrencyManager* _tmp4_ = NULL;
195
195
const gchar* _tmp5_ = NULL;
197
CurrencyManager* _tmp7_;
196
Currency* _tmp6_ = NULL;
197
CurrencyManager* _tmp7_ = NULL;
198
198
const gchar* _tmp8_ = NULL;
200
CurrencyManager* _tmp10_;
199
Currency* _tmp9_ = NULL;
200
CurrencyManager* _tmp10_ = NULL;
201
201
const gchar* _tmp11_ = NULL;
203
CurrencyManager* _tmp13_;
202
Currency* _tmp12_ = NULL;
203
CurrencyManager* _tmp13_ = NULL;
204
204
const gchar* _tmp14_ = NULL;
206
CurrencyManager* _tmp16_;
205
Currency* _tmp15_ = NULL;
206
CurrencyManager* _tmp16_ = NULL;
207
207
const gchar* _tmp17_ = NULL;
209
CurrencyManager* _tmp19_;
208
Currency* _tmp18_ = NULL;
209
CurrencyManager* _tmp19_ = NULL;
210
210
const gchar* _tmp20_ = NULL;
212
CurrencyManager* _tmp22_;
211
Currency* _tmp21_ = NULL;
212
CurrencyManager* _tmp22_ = NULL;
213
213
const gchar* _tmp23_ = NULL;
215
CurrencyManager* _tmp25_;
214
Currency* _tmp24_ = NULL;
215
CurrencyManager* _tmp25_ = NULL;
216
216
const gchar* _tmp26_ = NULL;
218
CurrencyManager* _tmp28_;
217
Currency* _tmp27_ = NULL;
218
CurrencyManager* _tmp28_ = NULL;
219
219
const gchar* _tmp29_ = NULL;
221
CurrencyManager* _tmp31_;
220
Currency* _tmp30_ = NULL;
221
CurrencyManager* _tmp31_ = NULL;
222
222
const gchar* _tmp32_ = NULL;
224
CurrencyManager* _tmp34_;
223
Currency* _tmp33_ = NULL;
224
CurrencyManager* _tmp34_ = NULL;
225
225
const gchar* _tmp35_ = NULL;
227
CurrencyManager* _tmp37_;
226
Currency* _tmp36_ = NULL;
227
CurrencyManager* _tmp37_ = NULL;
228
228
const gchar* _tmp38_ = NULL;
230
CurrencyManager* _tmp40_;
229
Currency* _tmp39_ = NULL;
230
CurrencyManager* _tmp40_ = NULL;
231
231
const gchar* _tmp41_ = NULL;
233
CurrencyManager* _tmp43_;
232
Currency* _tmp42_ = NULL;
233
CurrencyManager* _tmp43_ = NULL;
234
234
const gchar* _tmp44_ = NULL;
236
CurrencyManager* _tmp46_;
235
Currency* _tmp45_ = NULL;
236
CurrencyManager* _tmp46_ = NULL;
237
237
const gchar* _tmp47_ = NULL;
239
CurrencyManager* _tmp49_;
238
Currency* _tmp48_ = NULL;
239
CurrencyManager* _tmp49_ = NULL;
240
240
const gchar* _tmp50_ = NULL;
242
CurrencyManager* _tmp52_;
241
Currency* _tmp51_ = NULL;
242
CurrencyManager* _tmp52_ = NULL;
243
243
const gchar* _tmp53_ = NULL;
245
CurrencyManager* _tmp55_;
244
Currency* _tmp54_ = NULL;
245
CurrencyManager* _tmp55_ = NULL;
246
246
const gchar* _tmp56_ = NULL;
248
CurrencyManager* _tmp58_;
247
Currency* _tmp57_ = NULL;
248
CurrencyManager* _tmp58_ = NULL;
249
249
const gchar* _tmp59_ = NULL;
251
CurrencyManager* _tmp61_;
250
Currency* _tmp60_ = NULL;
251
CurrencyManager* _tmp61_ = NULL;
252
252
const gchar* _tmp62_ = NULL;
254
CurrencyManager* _tmp64_;
253
Currency* _tmp63_ = NULL;
254
CurrencyManager* _tmp64_ = NULL;
255
255
const gchar* _tmp65_ = NULL;
257
CurrencyManager* _tmp67_;
256
Currency* _tmp66_ = NULL;
257
CurrencyManager* _tmp67_ = NULL;
258
258
const gchar* _tmp68_ = NULL;
260
CurrencyManager* _tmp70_;
259
Currency* _tmp69_ = NULL;
260
CurrencyManager* _tmp70_ = NULL;
261
261
const gchar* _tmp71_ = NULL;
263
CurrencyManager* _tmp73_;
262
Currency* _tmp72_ = NULL;
263
CurrencyManager* _tmp73_ = NULL;
264
264
const gchar* _tmp74_ = NULL;
266
CurrencyManager* _tmp76_;
265
Currency* _tmp75_ = NULL;
266
CurrencyManager* _tmp76_ = NULL;
267
267
const gchar* _tmp77_ = NULL;
269
CurrencyManager* _tmp79_;
268
Currency* _tmp78_ = NULL;
269
CurrencyManager* _tmp79_ = NULL;
270
270
const gchar* _tmp80_ = NULL;
272
CurrencyManager* _tmp82_;
271
Currency* _tmp81_ = NULL;
272
CurrencyManager* _tmp82_ = NULL;
273
273
const gchar* _tmp83_ = NULL;
275
CurrencyManager* _tmp85_;
274
Currency* _tmp84_ = NULL;
275
CurrencyManager* _tmp85_ = NULL;
276
276
const gchar* _tmp86_ = NULL;
278
CurrencyManager* _tmp88_;
277
Currency* _tmp87_ = NULL;
278
CurrencyManager* _tmp88_ = NULL;
279
279
const gchar* _tmp89_ = NULL;
281
CurrencyManager* _tmp91_;
280
Currency* _tmp90_ = NULL;
281
CurrencyManager* _tmp91_ = NULL;
282
282
const gchar* _tmp92_ = NULL;
284
CurrencyManager* _tmp94_;
283
Currency* _tmp93_ = NULL;
284
CurrencyManager* _tmp94_ = NULL;
285
285
const gchar* _tmp95_ = NULL;
287
CurrencyManager* _tmp97_;
286
Currency* _tmp96_ = NULL;
287
CurrencyManager* _tmp97_ = NULL;
288
288
const gchar* _tmp98_ = NULL;
290
CurrencyManager* _tmp100_;
289
Currency* _tmp99_ = NULL;
290
CurrencyManager* _tmp100_ = NULL;
291
291
const gchar* _tmp101_ = NULL;
293
CurrencyManager* _tmp103_;
292
Currency* _tmp102_ = NULL;
293
CurrencyManager* _tmp103_ = NULL;
294
294
const gchar* _tmp104_ = NULL;
296
CurrencyManager* _tmp106_;
295
Currency* _tmp105_ = NULL;
296
CurrencyManager* _tmp106_ = NULL;
297
297
const gchar* _tmp107_ = NULL;
299
CurrencyManager* _tmp109_;
298
Currency* _tmp108_ = NULL;
299
CurrencyManager* _tmp109_ = NULL;
300
300
const gchar* _tmp110_ = NULL;
302
CurrencyManager* _tmp112_;
301
Currency* _tmp111_ = NULL;
302
CurrencyManager* _tmp112_ = NULL;
303
303
const gchar* _tmp113_ = NULL;
305
CurrencyManager* _tmp115_;
304
Currency* _tmp114_ = NULL;
305
CurrencyManager* _tmp115_ = NULL;
306
306
const gchar* _tmp116_ = NULL;
308
CurrencyManager* _tmp118_;
307
Currency* _tmp117_ = NULL;
308
CurrencyManager* _tmp118_ = NULL;
309
309
const gchar* _tmp119_ = NULL;
311
CurrencyManager* _tmp121_;
310
Currency* _tmp120_ = NULL;
311
CurrencyManager* _tmp121_ = NULL;
312
312
const gchar* _tmp122_ = NULL;
314
CurrencyManager* _tmp124_;
313
Currency* _tmp123_ = NULL;
314
CurrencyManager* _tmp124_ = NULL;
315
315
const gchar* _tmp125_ = NULL;
317
CurrencyManager* _tmp127_;
316
Currency* _tmp126_ = NULL;
317
CurrencyManager* _tmp127_ = NULL;
318
318
const gchar* _tmp128_ = NULL;
320
CurrencyManager* _tmp130_;
319
Currency* _tmp129_ = NULL;
320
CurrencyManager* _tmp130_ = NULL;
321
321
const gchar* _tmp131_ = NULL;
323
CurrencyManager* _tmp133_;
322
Currency* _tmp132_ = NULL;
323
CurrencyManager* _tmp133_ = NULL;
324
324
const gchar* _tmp134_ = NULL;
326
CurrencyManager* _tmp136_;
325
Currency* _tmp135_ = NULL;
326
CurrencyManager* _tmp136_ = NULL;
327
327
const gchar* _tmp137_ = NULL;
329
CurrencyManager* _tmp139_;
328
Currency* _tmp138_ = NULL;
329
CurrencyManager* _tmp139_ = NULL;
330
330
const gchar* _tmp140_ = NULL;
332
CurrencyManager* _tmp142_;
331
Currency* _tmp141_ = NULL;
332
CurrencyManager* _tmp142_ = NULL;
333
333
const gchar* _tmp143_ = NULL;
335
CurrencyManager* _tmp145_;
334
Currency* _tmp144_ = NULL;
335
CurrencyManager* _tmp145_ = NULL;
336
336
const gchar* _tmp146_ = NULL;
338
CurrencyManager* _tmp148_;
337
Currency* _tmp147_ = NULL;
338
CurrencyManager* _tmp148_ = NULL;
339
339
const gchar* _tmp149_ = NULL;
341
CurrencyManager* _tmp151_;
340
Currency* _tmp150_ = NULL;
341
CurrencyManager* _tmp151_ = NULL;
342
342
const gchar* _tmp152_ = NULL;
344
CurrencyManager* _tmp154_;
343
Currency* _tmp153_ = NULL;
344
CurrencyManager* _tmp154_ = NULL;
345
345
const gchar* _tmp155_ = NULL;
347
CurrencyManager* _tmp157_;
346
Currency* _tmp156_ = NULL;
347
CurrencyManager* _tmp157_ = NULL;
348
348
const gchar* _tmp158_ = NULL;
350
CurrencyManager* _tmp160_;
349
Currency* _tmp159_ = NULL;
350
CurrencyManager* _tmp160_ = NULL;
351
351
const gchar* _tmp161_ = NULL;
353
CurrencyManager* _tmp163_;
352
Currency* _tmp162_ = NULL;
353
CurrencyManager* _tmp163_ = NULL;
354
354
const gchar* _tmp164_ = NULL;
356
CurrencyManager* _tmp166_;
355
Currency* _tmp165_ = NULL;
356
CurrencyManager* _tmp166_ = NULL;
357
357
const gchar* _tmp167_ = NULL;
359
CurrencyManager* _tmp169_;
358
Currency* _tmp168_ = NULL;
359
CurrencyManager* _tmp169_ = NULL;
360
360
const gchar* _tmp170_ = NULL;
362
CurrencyManager* _tmp172_;
361
Currency* _tmp171_ = NULL;
362
CurrencyManager* _tmp172_ = NULL;
363
363
const gchar* _tmp173_ = NULL;
365
CurrencyManager* _tmp175_;
364
Currency* _tmp174_ = NULL;
365
CurrencyManager* _tmp175_ = NULL;
366
366
const gchar* _tmp176_ = NULL;
368
CurrencyManager* _tmp178_;
367
Currency* _tmp177_ = NULL;
368
CurrencyManager* _tmp178_ = NULL;
369
369
const gchar* _tmp179_ = NULL;
371
CurrencyManager* _tmp181_;
370
Currency* _tmp180_ = NULL;
371
CurrencyManager* _tmp181_ = NULL;
372
372
const gchar* _tmp182_ = NULL;
374
CurrencyManager* _tmp184_;
375
CurrencyManager* _tmp185_;
373
Currency* _tmp183_ = NULL;
374
CurrencyManager* _tmp184_ = NULL;
375
CurrencyManager* _tmp185_ = NULL;
376
376
_tmp0_ = default_currency_manager;
377
377
if (_tmp0_ != NULL) {
378
CurrencyManager* _tmp1_;
379
CurrencyManager* _tmp2_;
378
CurrencyManager* _tmp1_ = NULL;
379
CurrencyManager* _tmp2_ = NULL;
380
380
_tmp1_ = default_currency_manager;
381
381
_tmp2_ = _g_object_ref0 (_tmp1_);
902
898
static void currency_manager_load_imf_rates (CurrencyManager* self) {
906
GHashTable* name_map;
1000
GHashTable* _tmp96_;
1003
GHashTable* _tmp99_;
1006
GHashTable* _tmp102_;
1009
GHashTable* _tmp105_;
1012
GHashTable* _tmp108_;
1015
GHashTable* _tmp111_;
1018
GHashTable* _tmp114_;
1021
GHashTable* _tmp117_;
1024
GHashTable* _tmp120_;
1027
GHashTable* _tmp123_;
1030
GHashTable* _tmp126_;
1033
GHashTable* _tmp129_;
1036
GHashTable* _tmp132_;
1039
GHashTable* _tmp135_;
1042
GHashTable* _tmp138_;
1045
GHashTable* _tmp141_;
1048
GHashTable* _tmp144_;
1051
GHashTable* _tmp147_;
1054
GHashTable* _tmp150_;
1057
GHashTable* _tmp153_;
899
GHashTable* name_map = NULL;
900
GHashFunc _tmp0_ = NULL;
901
GEqualFunc _tmp1_ = NULL;
902
GHashTable* _tmp2_ = NULL;
903
GHashTable* _tmp3_ = NULL;
904
gchar* _tmp4_ = NULL;
905
gchar* _tmp5_ = NULL;
906
GHashTable* _tmp6_ = NULL;
907
gchar* _tmp7_ = NULL;
908
gchar* _tmp8_ = NULL;
909
GHashTable* _tmp9_ = NULL;
910
gchar* _tmp10_ = NULL;
911
gchar* _tmp11_ = NULL;
912
GHashTable* _tmp12_ = NULL;
913
gchar* _tmp13_ = NULL;
914
gchar* _tmp14_ = NULL;
915
GHashTable* _tmp15_ = NULL;
916
gchar* _tmp16_ = NULL;
917
gchar* _tmp17_ = NULL;
918
GHashTable* _tmp18_ = NULL;
919
gchar* _tmp19_ = NULL;
920
gchar* _tmp20_ = NULL;
921
GHashTable* _tmp21_ = NULL;
922
gchar* _tmp22_ = NULL;
923
gchar* _tmp23_ = NULL;
924
GHashTable* _tmp24_ = NULL;
925
gchar* _tmp25_ = NULL;
926
gchar* _tmp26_ = NULL;
927
GHashTable* _tmp27_ = NULL;
928
gchar* _tmp28_ = NULL;
929
gchar* _tmp29_ = NULL;
930
GHashTable* _tmp30_ = NULL;
931
gchar* _tmp31_ = NULL;
932
gchar* _tmp32_ = NULL;
933
GHashTable* _tmp33_ = NULL;
934
gchar* _tmp34_ = NULL;
935
gchar* _tmp35_ = NULL;
936
GHashTable* _tmp36_ = NULL;
937
gchar* _tmp37_ = NULL;
938
gchar* _tmp38_ = NULL;
939
GHashTable* _tmp39_ = NULL;
940
gchar* _tmp40_ = NULL;
941
gchar* _tmp41_ = NULL;
942
GHashTable* _tmp42_ = NULL;
943
gchar* _tmp43_ = NULL;
944
gchar* _tmp44_ = NULL;
945
GHashTable* _tmp45_ = NULL;
946
gchar* _tmp46_ = NULL;
947
gchar* _tmp47_ = NULL;
948
GHashTable* _tmp48_ = NULL;
949
gchar* _tmp49_ = NULL;
950
gchar* _tmp50_ = NULL;
951
GHashTable* _tmp51_ = NULL;
952
gchar* _tmp52_ = NULL;
953
gchar* _tmp53_ = NULL;
954
GHashTable* _tmp54_ = NULL;
955
gchar* _tmp55_ = NULL;
956
gchar* _tmp56_ = NULL;
957
GHashTable* _tmp57_ = NULL;
958
gchar* _tmp58_ = NULL;
959
gchar* _tmp59_ = NULL;
960
GHashTable* _tmp60_ = NULL;
961
gchar* _tmp61_ = NULL;
962
gchar* _tmp62_ = NULL;
963
GHashTable* _tmp63_ = NULL;
964
gchar* _tmp64_ = NULL;
965
gchar* _tmp65_ = NULL;
966
GHashTable* _tmp66_ = NULL;
967
gchar* _tmp67_ = NULL;
968
gchar* _tmp68_ = NULL;
969
GHashTable* _tmp69_ = NULL;
970
gchar* _tmp70_ = NULL;
971
gchar* _tmp71_ = NULL;
972
GHashTable* _tmp72_ = NULL;
973
gchar* _tmp73_ = NULL;
974
gchar* _tmp74_ = NULL;
975
GHashTable* _tmp75_ = NULL;
976
gchar* _tmp76_ = NULL;
977
gchar* _tmp77_ = NULL;
978
GHashTable* _tmp78_ = NULL;
979
gchar* _tmp79_ = NULL;
980
gchar* _tmp80_ = NULL;
981
GHashTable* _tmp81_ = NULL;
982
gchar* _tmp82_ = NULL;
983
gchar* _tmp83_ = NULL;
984
GHashTable* _tmp84_ = NULL;
985
gchar* _tmp85_ = NULL;
986
gchar* _tmp86_ = NULL;
987
GHashTable* _tmp87_ = NULL;
988
gchar* _tmp88_ = NULL;
989
gchar* _tmp89_ = NULL;
990
GHashTable* _tmp90_ = NULL;
991
gchar* _tmp91_ = NULL;
992
gchar* _tmp92_ = NULL;
993
GHashTable* _tmp93_ = NULL;
994
gchar* _tmp94_ = NULL;
995
gchar* _tmp95_ = NULL;
996
GHashTable* _tmp96_ = NULL;
997
gchar* _tmp97_ = NULL;
998
gchar* _tmp98_ = NULL;
999
GHashTable* _tmp99_ = NULL;
1000
gchar* _tmp100_ = NULL;
1001
gchar* _tmp101_ = NULL;
1002
GHashTable* _tmp102_ = NULL;
1003
gchar* _tmp103_ = NULL;
1004
gchar* _tmp104_ = NULL;
1005
GHashTable* _tmp105_ = NULL;
1006
gchar* _tmp106_ = NULL;
1007
gchar* _tmp107_ = NULL;
1008
GHashTable* _tmp108_ = NULL;
1009
gchar* _tmp109_ = NULL;
1010
gchar* _tmp110_ = NULL;
1011
GHashTable* _tmp111_ = NULL;
1012
gchar* _tmp112_ = NULL;
1013
gchar* _tmp113_ = NULL;
1014
GHashTable* _tmp114_ = NULL;
1015
gchar* _tmp115_ = NULL;
1016
gchar* _tmp116_ = NULL;
1017
GHashTable* _tmp117_ = NULL;
1018
gchar* _tmp118_ = NULL;
1019
gchar* _tmp119_ = NULL;
1020
GHashTable* _tmp120_ = NULL;
1021
gchar* _tmp121_ = NULL;
1022
gchar* _tmp122_ = NULL;
1023
GHashTable* _tmp123_ = NULL;
1024
gchar* _tmp124_ = NULL;
1025
gchar* _tmp125_ = NULL;
1026
GHashTable* _tmp126_ = NULL;
1027
gchar* _tmp127_ = NULL;
1028
gchar* _tmp128_ = NULL;
1029
GHashTable* _tmp129_ = NULL;
1030
gchar* _tmp130_ = NULL;
1031
gchar* _tmp131_ = NULL;
1032
GHashTable* _tmp132_ = NULL;
1033
gchar* _tmp133_ = NULL;
1034
gchar* _tmp134_ = NULL;
1035
GHashTable* _tmp135_ = NULL;
1036
gchar* _tmp136_ = NULL;
1037
gchar* _tmp137_ = NULL;
1038
GHashTable* _tmp138_ = NULL;
1039
gchar* _tmp139_ = NULL;
1040
gchar* _tmp140_ = NULL;
1041
GHashTable* _tmp141_ = NULL;
1042
gchar* _tmp142_ = NULL;
1043
gchar* _tmp143_ = NULL;
1044
GHashTable* _tmp144_ = NULL;
1045
gchar* _tmp145_ = NULL;
1046
gchar* _tmp146_ = NULL;
1047
GHashTable* _tmp147_ = NULL;
1048
gchar* _tmp148_ = NULL;
1049
gchar* _tmp149_ = NULL;
1050
GHashTable* _tmp150_ = NULL;
1051
gchar* _tmp151_ = NULL;
1052
gchar* _tmp152_ = NULL;
1053
GHashTable* _tmp153_ = NULL;
1054
gchar* _tmp154_ = NULL;
1055
gchar* _tmp155_ = NULL;
1056
gchar* filename = NULL;
1060
1057
gchar* _tmp156_ = NULL;
1062
1058
gchar* data = NULL;
1063
const gchar* _tmp161_;
1059
gchar** lines = NULL;
1060
const gchar* _tmp161_ = NULL;
1061
gchar** _tmp162_ = NULL;
1065
1062
gchar** _tmp163_ = NULL;
1071
gint _tmp164__length1;
1063
gint lines_length1 = 0;
1064
gint _lines_size_ = 0;
1065
gboolean in_data = FALSE;
1066
gchar** _tmp164_ = NULL;
1067
gint _tmp164__length1 = 0;
1072
1068
GError * _inner_error_ = NULL;
1073
1069
g_return_if_fail (self != NULL);
1074
1070
_tmp0_ = g_str_hash;
1384
1380
_tmp175_ = _tmp174_[0];
1385
1381
if (g_strcmp0 (_tmp175_, "Currency") != 0) {
1386
1382
gint value_index = 0;
1389
gint _tmp187__length1;
1384
gchar** _tmp186_ = NULL;
1385
gint _tmp186__length1 = 0;
1387
gboolean _tmp176_ = FALSE;
1392
1388
value_index = 1;
1393
1389
_tmp176_ = TRUE;
1398
gint _tmp180__length1;
1400
gint _tmp181__length1;
1402
const gchar* _tmp183_;
1403
gchar* _tmp184_ = NULL;
1405
const gchar* _tmp185_;
1406
_tmp177_ = _tmp176_;
1409
_tmp178_ = value_index;
1410
value_index = _tmp178_ + 1;
1392
gchar** _tmp179_ = NULL;
1393
gint _tmp179__length1 = 0;
1394
gchar* value = NULL;
1395
gchar** _tmp180_ = NULL;
1396
gint _tmp180__length1 = 0;
1398
const gchar* _tmp182_ = NULL;
1399
gchar* _tmp183_ = NULL;
1400
const gchar* _tmp184_ = NULL;
1403
_tmp177_ = value_index;
1404
value_index = _tmp177_ + 1;
1412
1406
_tmp176_ = FALSE;
1413
_tmp179_ = value_index;
1407
_tmp178_ = value_index;
1409
_tmp179__length1 = tokens_length1;
1410
if (!(_tmp178_ < _tmp179__length1)) {
1414
1413
_tmp180_ = tokens;
1415
1414
_tmp180__length1 = tokens_length1;
1416
if (!(_tmp179_ < _tmp180__length1)) {
1420
_tmp181__length1 = tokens_length1;
1421
_tmp182_ = value_index;
1422
_tmp183_ = _tmp181_[_tmp182_];
1423
_tmp184_ = string_chug (_tmp183_);
1426
if (g_strcmp0 (_tmp185_, "") != 0) {
1415
_tmp181_ = value_index;
1416
_tmp182_ = _tmp180_[_tmp181_];
1417
_tmp183_ = string_chug (_tmp182_);
1420
if (g_strcmp0 (_tmp184_, "") != 0) {
1427
1421
_g_free0 (value);
1430
1424
_g_free0 (value);
1433
_tmp186_ = value_index;
1435
_tmp187__length1 = tokens_length1;
1436
if (_tmp186_ < _tmp187__length1) {
1437
GHashTable* _tmp188_;
1439
gint _tmp189__length1;
1440
const gchar* _tmp190_;
1441
gconstpointer _tmp191_ = NULL;
1444
const gchar* _tmp193_;
1445
_tmp188_ = name_map;
1447
_tmp189__length1 = tokens_length1;
1448
_tmp190_ = _tmp189_[0];
1449
_tmp191_ = g_hash_table_lookup (_tmp188_, _tmp190_);
1450
_tmp192_ = g_strdup ((const gchar*) _tmp191_);
1453
if (_tmp193_ != NULL) {
1454
const gchar* _tmp194_;
1427
_tmp185_ = value_index;
1429
_tmp186__length1 = tokens_length1;
1430
if (_tmp185_ < _tmp186__length1) {
1431
gchar* symbol = NULL;
1432
GHashTable* _tmp187_ = NULL;
1433
gchar** _tmp188_ = NULL;
1434
gint _tmp188__length1 = 0;
1435
const gchar* _tmp189_ = NULL;
1436
gconstpointer _tmp190_ = NULL;
1437
gchar* _tmp191_ = NULL;
1438
const gchar* _tmp192_ = NULL;
1439
_tmp187_ = name_map;
1441
_tmp188__length1 = tokens_length1;
1442
_tmp189_ = _tmp188_[0];
1443
_tmp190_ = g_hash_table_lookup (_tmp187_, _tmp189_);
1444
_tmp191_ = g_strdup ((const gchar*) _tmp190_);
1447
if (_tmp192_ != NULL) {
1449
const gchar* _tmp193_ = NULL;
1450
Currency* _tmp194_ = NULL;
1455
1451
Currency* _tmp195_ = NULL;
1459
gint _tmp203__length1;
1461
const gchar* _tmp205_;
1452
Number* value = NULL;
1453
gchar** _tmp202_ = NULL;
1454
gint _tmp202__length1 = 0;
1456
const gchar* _tmp204_ = NULL;
1457
Number* _tmp205_ = NULL;
1462
1458
Number* _tmp206_ = NULL;
1465
Number* _tmp208_ = NULL;
1469
_tmp195_ = currency_manager_get_currency (self, _tmp194_);
1472
if (_tmp196_ == NULL) {
1474
gint _tmp197__length1;
1476
const gchar* _tmp199_;
1477
const gchar* _tmp200_;
1478
const gchar* _tmp201_;
1479
Currency* _tmp202_ = NULL;
1481
_tmp197__length1 = tokens_length1;
1482
_tmp198_ = value_index;
1483
_tmp199_ = _tmp197_[_tmp198_];
1459
Number* _tmp207_ = NULL;
1460
Currency* _tmp208_ = NULL;
1461
Number* _tmp209_ = NULL;
1463
_tmp194_ = currency_manager_get_currency (self, _tmp193_);
1466
if (_tmp195_ == NULL) {
1467
gchar** _tmp196_ = NULL;
1468
gint _tmp196__length1 = 0;
1470
const gchar* _tmp198_ = NULL;
1471
const gchar* _tmp199_ = NULL;
1472
const gchar* _tmp200_ = NULL;
1473
Currency* _tmp201_ = NULL;
1475
_tmp196__length1 = tokens_length1;
1476
_tmp197_ = value_index;
1477
_tmp198_ = _tmp196_[_tmp197_];
1479
g_debug ("currency.vala:267: Using IMF rate of %s for %s", _tmp198_, _tmp199_);
1484
1480
_tmp200_ = symbol;
1485
g_debug ("currency.vala:267: Using IMF rate of %s for %s", _tmp199_, _tmp200_);
1487
_tmp202_ = currency_manager_add_currency (self, _tmp201_);
1481
_tmp201_ = currency_manager_add_currency (self, _tmp200_);
1488
1482
_g_object_unref0 (c);
1492
_tmp203__length1 = tokens_length1;
1493
_tmp204_ = value_index;
1494
_tmp205_ = _tmp203_[_tmp204_];
1495
_tmp206_ = mp_set_from_string (_tmp205_, 10);
1498
_tmp208_ = number_reciprocal (_tmp207_);
1486
_tmp202__length1 = tokens_length1;
1487
_tmp203_ = value_index;
1488
_tmp204_ = _tmp202_[_tmp203_];
1489
_tmp205_ = mp_set_from_string (_tmp204_, 10);
1492
_tmp207_ = number_reciprocal (_tmp206_);
1499
1493
_number_unref0 (value);
1503
currency_set_value (_tmp209_, _tmp210_);
1497
currency_set_value (_tmp208_, _tmp209_);
1504
1498
_number_unref0 (value);
1505
1499
_g_object_unref0 (c);
1508
gint _tmp211__length1;
1509
const gchar* _tmp212_;
1511
_tmp211__length1 = tokens_length1;
1512
_tmp212_ = _tmp211_[0];
1513
g_warning ("currency.vala:275: Unknown currency '%s'", _tmp212_);
1501
gchar** _tmp210_ = NULL;
1502
gint _tmp210__length1 = 0;
1503
const gchar* _tmp211_ = NULL;
1505
_tmp210__length1 = tokens_length1;
1506
_tmp211_ = _tmp210_[0];
1507
g_warning ("currency.vala:275: Unknown currency '%s'", _tmp211_);
1515
1509
_g_free0 (symbol);
1530
1524
static void currency_manager_set_ecb_rate (CurrencyManager* self, xmlNode* node, Currency* eur_rate) {
1526
gchar* value = NULL;
1527
gboolean _tmp15_ = FALSE;
1533
1528
gboolean _tmp16_ = FALSE;
1534
gboolean _tmp17_ = FALSE;
1535
const gchar* _tmp18_;
1529
const gchar* _tmp17_ = NULL;
1538
1530
g_return_if_fail (self != NULL);
1539
1531
g_return_if_fail (node != NULL);
1540
1532
g_return_if_fail (eur_rate != NULL);
1536
xmlAttr* attribute = NULL;
1537
xmlNode* _tmp0_ = NULL;
1538
xmlAttr* _tmp1_ = NULL;
1548
1540
_tmp1_ = _tmp0_->properties;
1549
1541
attribute = _tmp1_;
1543
gboolean _tmp2_ = FALSE;
1559
const gchar* _tmp9_;
1565
_tmp5_ = _tmp4_->next;
1546
xmlAttr* _tmp5_ = NULL;
1548
xmlAttr* _tmp6_ = NULL;
1549
xmlAttr* _tmp7_ = NULL;
1550
const gchar* _tmp8_ = NULL;
1552
xmlAttr* _tmp3_ = NULL;
1553
xmlAttr* _tmp4_ = NULL;
1555
_tmp4_ = _tmp3_->next;
1568
1558
_tmp2_ = FALSE;
1560
if (!(_tmp5_ != NULL)) {
1569
1563
_tmp6_ = attribute;
1570
if (!(_tmp6_ != NULL)) {
1564
n = (xmlNode*) _tmp6_;
1573
1565
_tmp7_ = attribute;
1574
n = (xmlNode*) _tmp7_;
1576
_tmp9_ = _tmp8_->name;
1577
if (g_strcmp0 (_tmp9_, "currency") == 0) {
1579
gchar* _tmp11_ = NULL;
1581
_tmp11_ = xmlNodeGetContent (_tmp10_);
1566
_tmp8_ = _tmp7_->name;
1567
if (g_strcmp0 (_tmp8_, "currency") == 0) {
1568
xmlNode* _tmp9_ = NULL;
1569
gchar* _tmp10_ = NULL;
1571
_tmp10_ = (gchar*) xmlNodeGetContent (_tmp9_);
1582
1572
_g_free0 (name);
1586
const gchar* _tmp13_;
1587
_tmp12_ = attribute;
1588
_tmp13_ = _tmp12_->name;
1589
if (g_strcmp0 (_tmp13_, "rate") == 0) {
1591
gchar* _tmp15_ = NULL;
1593
_tmp15_ = xmlNodeGetContent (_tmp14_);
1575
xmlAttr* _tmp11_ = NULL;
1576
const gchar* _tmp12_ = NULL;
1577
_tmp11_ = attribute;
1578
_tmp12_ = _tmp11_->name;
1579
if (g_strcmp0 (_tmp12_, "rate") == 0) {
1580
xmlNode* _tmp13_ = NULL;
1581
gchar* _tmp14_ = NULL;
1583
_tmp14_ = (gchar*) xmlNodeGetContent (_tmp13_);
1594
1584
_g_free0 (value);
1602
if (_tmp18_ != NULL) {
1603
const gchar* _tmp19_;
1605
_tmp17_ = _tmp19_ != NULL;
1611
const gchar* _tmp21_;
1612
Currency* _tmp22_ = NULL;
1615
_tmp22_ = currency_manager_get_currency (self, _tmp21_);
1617
_tmp16_ = _tmp23_ == NULL;
1618
_g_object_unref0 (_tmp23_);
1592
if (_tmp17_ != NULL) {
1593
const gchar* _tmp18_ = NULL;
1595
_tmp16_ = _tmp18_ != NULL;
1620
1597
_tmp16_ = FALSE;
1624
const gchar* _tmp25_;
1625
const gchar* _tmp26_;
1626
const gchar* _tmp27_;
1600
const gchar* _tmp19_ = NULL;
1601
Currency* _tmp20_ = NULL;
1602
Currency* _tmp21_ = NULL;
1604
_tmp20_ = currency_manager_get_currency (self, _tmp19_);
1606
_tmp15_ = _tmp21_ == NULL;
1607
_g_object_unref0 (_tmp21_);
1612
const gchar* _tmp22_ = NULL;
1613
const gchar* _tmp23_ = NULL;
1615
const gchar* _tmp24_ = NULL;
1616
Currency* _tmp25_ = NULL;
1618
const gchar* _tmp26_ = NULL;
1619
Number* _tmp27_ = NULL;
1627
1621
Currency* _tmp28_ = NULL;
1629
const gchar* _tmp29_;
1622
Number* _tmp29_ = NULL;
1630
1623
Number* _tmp30_ = NULL;
1624
Number* _tmp31_ = NULL;
1633
1625
Number* _tmp32_ = NULL;
1637
Number* _tmp35_ = NULL;
1642
g_debug ("currency.vala:297: Using ECB rate of %s for %s", _tmp25_, _tmp26_);
1644
_tmp28_ = currency_manager_add_currency (self, _tmp27_);
1647
_tmp30_ = mp_set_from_string (_tmp29_, 10);
1650
_tmp32_ = currency_get_value (_tmp31_);
1626
Currency* _tmp33_ = NULL;
1627
Number* _tmp34_ = NULL;
1630
g_debug ("currency.vala:297: Using ECB rate of %s for %s", _tmp22_, _tmp23_);
1632
_tmp25_ = currency_manager_add_currency (self, _tmp24_);
1635
_tmp27_ = mp_set_from_string (_tmp26_, 10);
1638
_tmp29_ = currency_get_value (_tmp28_);
1642
_tmp32_ = number_multiply (_tmp30_, _tmp31_);
1654
_tmp35_ = number_multiply (_tmp33_, _tmp34_);
1659
currency_set_value (_tmp36_, _tmp37_);
1647
currency_set_value (_tmp33_, _tmp34_);
1660
1648
_number_unref0 (v);
1661
1649
_number_unref0 (r);
1662
1650
_g_object_unref0 (c);