File: NCC.i

package info (click to toggle)
brp-pacu 2.1.1+git20111020-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,388 kB
  • sloc: sh: 8,885; ansic: 4,613; makefile: 52
file content (4289 lines) | stat: -rw-r--r-- 99,113 bytes parent folder | download | duplicates (3)
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
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
# 1 "gui.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/nognu" 1
# 1 "<command-line>" 2
# 1 "gui.c"
# 23 "gui.c"
# 1 "/usr/include/stdio.h" 1 3 4
# 28 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/features.h" 1 3 4
# 330 "/usr/include/features.h" 3 4
# 1 "/usr/include/sys/cdefs.h" 1 3 4
# 348 "/usr/include/sys/cdefs.h" 3 4
# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 349 "/usr/include/sys/cdefs.h" 2 3 4
# 331 "/usr/include/features.h" 2 3 4
# 354 "/usr/include/features.h" 3 4
# 1 "/usr/include/gnu/stubs.h" 1 3 4



# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 5 "/usr/include/gnu/stubs.h" 2 3 4




# 1 "/usr/include/gnu/stubs-64.h" 1 3 4
# 10 "/usr/include/gnu/stubs.h" 2 3 4
# 355 "/usr/include/features.h" 2 3 4
# 29 "/usr/include/stdio.h" 2 3 4





# 1 "/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stddef.h" 1 3 4
# 214 "/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stddef.h" 3 4
typedef long unsigned int size_t;
# 35 "/usr/include/stdio.h" 2 3 4

# 1 "/usr/include/bits/types.h" 1 3 4
# 28 "/usr/include/bits/types.h" 3 4
# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 29 "/usr/include/bits/types.h" 2 3 4


typedef unsigned char __u_char;
typedef unsigned short int __u_short;
typedef unsigned int __u_int;
typedef unsigned long int __u_long;


typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;

typedef signed long int __int64_t;
typedef unsigned long int __uint64_t;







typedef long int __quad_t;
typedef unsigned long int __u_quad_t;
# 131 "/usr/include/bits/types.h" 3 4
# 1 "/usr/include/bits/typesizes.h" 1 3 4
# 132 "/usr/include/bits/types.h" 2 3 4


typedef unsigned long int __dev_t;
typedef unsigned int __uid_t;
typedef unsigned int __gid_t;
typedef unsigned long int __ino_t;
typedef unsigned long int __ino64_t;
typedef unsigned int __mode_t;
typedef unsigned long int __nlink_t;
typedef long int __off_t;
typedef long int __off64_t;
typedef int __pid_t;
typedef struct { int __val[2]; } __fsid_t;
typedef long int __clock_t;
typedef unsigned long int __rlim_t;
typedef unsigned long int __rlim64_t;
typedef unsigned int __id_t;
typedef long int __time_t;
typedef unsigned int __useconds_t;
typedef long int __suseconds_t;

typedef int __daddr_t;
typedef long int __swblk_t;
typedef int __key_t;


typedef int __clockid_t;


typedef void * __timer_t;


typedef long int __blksize_t;




typedef long int __blkcnt_t;
typedef long int __blkcnt64_t;


typedef unsigned long int __fsblkcnt_t;
typedef unsigned long int __fsblkcnt64_t;


typedef unsigned long int __fsfilcnt_t;
typedef unsigned long int __fsfilcnt64_t;

typedef long int __ssize_t;



typedef __off64_t __loff_t;
typedef __quad_t *__qaddr_t;
typedef char *__caddr_t;


typedef long int __intptr_t;


typedef unsigned int __socklen_t;
# 37 "/usr/include/stdio.h" 2 3 4
# 45 "/usr/include/stdio.h" 3 4
struct _IO_FILE;



typedef struct _IO_FILE FILE;





# 65 "/usr/include/stdio.h" 3 4
typedef struct _IO_FILE __FILE;
# 75 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/libio.h" 1 3 4
# 32 "/usr/include/libio.h" 3 4
# 1 "/usr/include/_G_config.h" 1 3 4
# 15 "/usr/include/_G_config.h" 3 4
# 1 "/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stddef.h" 1 3 4
# 16 "/usr/include/_G_config.h" 2 3 4




# 1 "/usr/include/wchar.h" 1 3 4
# 78 "/usr/include/wchar.h" 3 4
typedef struct
{
  int __count;
  union
  {

    unsigned int __wch;



    char __wchb[4];
  } __value;
} __mbstate_t;
# 21 "/usr/include/_G_config.h" 2 3 4

typedef struct
{
  __off_t __pos;
  __mbstate_t __state;
} _G_fpos_t;
typedef struct
{
  __off64_t __pos;
  __mbstate_t __state;
} _G_fpos64_t;
# 53 "/usr/include/_G_config.h" 3 4
typedef int _G_int16_t ;
typedef int _G_int32_t ;
typedef unsigned int _G_uint16_t ;
typedef unsigned int _G_uint32_t ;
# 33 "/usr/include/libio.h" 2 3 4
# 53 "/usr/include/libio.h" 3 4
# 1 "/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stdarg.h" 1 3 4
# 43 "/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stdarg.h" 3 4
typedef char* __gnuc_va_list;
# 54 "/usr/include/libio.h" 2 3 4
# 170 "/usr/include/libio.h" 3 4
struct _IO_jump_t; struct _IO_FILE;
# 180 "/usr/include/libio.h" 3 4
typedef void _IO_lock_t;





struct _IO_marker {
  struct _IO_marker *_next;
  struct _IO_FILE *_sbuf;



  int _pos;
# 203 "/usr/include/libio.h" 3 4
};


enum __codecvt_result
{
  __codecvt_ok,
  __codecvt_partial,
  __codecvt_error,
  __codecvt_noconv
};
# 271 "/usr/include/libio.h" 3 4
struct _IO_FILE {
  int _flags;




  char* _IO_read_ptr;
  char* _IO_read_end;
  char* _IO_read_base;
  char* _IO_write_base;
  char* _IO_write_ptr;
  char* _IO_write_end;
  char* _IO_buf_base;
  char* _IO_buf_end;

  char *_IO_save_base;
  char *_IO_backup_base;
  char *_IO_save_end;

  struct _IO_marker *_markers;

  struct _IO_FILE *_chain;

  int _fileno;



  int _flags2;

  __off_t _old_offset;



  unsigned short _cur_column;
  signed char _vtable_offset;
  char _shortbuf[1];



  _IO_lock_t *_lock;
# 319 "/usr/include/libio.h" 3 4
  __off64_t _offset;
# 328 "/usr/include/libio.h" 3 4
  void *__pad1;
  void *__pad2;
  void *__pad3;
  void *__pad4;
  size_t __pad5;

  int _mode;

  char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];

};


typedef struct _IO_FILE _IO_FILE;


struct _IO_FILE_plus;

extern struct _IO_FILE_plus _IO_2_1_stdin_;
extern struct _IO_FILE_plus _IO_2_1_stdout_;
extern struct _IO_FILE_plus _IO_2_1_stderr_;
# 364 "/usr/include/libio.h" 3 4
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);







typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf,
     size_t __n);







typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);


typedef int __io_close_fn (void *__cookie);
# 416 "/usr/include/libio.h" 3 4
extern int __underflow (_IO_FILE *);
extern int __uflow (_IO_FILE *);
extern int __overflow (_IO_FILE *, int);
# 458 "/usr/include/libio.h" 3 4
extern int _IO_getc (_IO_FILE *__fp);
extern int _IO_putc (int __c, _IO_FILE *__fp);
extern int _IO_feof (_IO_FILE *__fp) ;
extern int _IO_ferror (_IO_FILE *__fp) ;

extern int _IO_peekc_locked (_IO_FILE *__fp);





extern void _IO_flockfile (_IO_FILE *) ;
extern void _IO_funlockfile (_IO_FILE *) ;
extern int _IO_ftrylockfile (_IO_FILE *) ;
# 488 "/usr/include/libio.h" 3 4
extern int _IO_vfscanf (_IO_FILE * , const char * ,
   __gnuc_va_list, int *);
extern int _IO_vfprintf (_IO_FILE *, const char *,
    __gnuc_va_list);
extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);

extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);

extern void _IO_free_backup_area (_IO_FILE *) ;
# 76 "/usr/include/stdio.h" 2 3 4
# 89 "/usr/include/stdio.h" 3 4


typedef _G_fpos_t fpos_t;




# 141 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/bits/stdio_lim.h" 1 3 4
# 142 "/usr/include/stdio.h" 2 3 4



extern struct _IO_FILE *stdin;
extern struct _IO_FILE *stdout;
extern struct _IO_FILE *stderr;







extern int remove (const char *__filename) ;

extern int rename (const char *__old, const char *__new) ;














extern FILE *tmpfile (void) ;
# 186 "/usr/include/stdio.h" 3 4
extern char *tmpnam (char *__s) ;





extern char *tmpnam_r (char *__s) ;
# 204 "/usr/include/stdio.h" 3 4
extern char *tempnam (const char *__dir, const char *__pfx)
     ;








extern int fclose (FILE *__stream);




extern int fflush (FILE *__stream);

# 229 "/usr/include/stdio.h" 3 4
extern int fflush_unlocked (FILE *__stream);
# 243 "/usr/include/stdio.h" 3 4






extern FILE *fopen (const char * __filename,
      const char * __modes) ;




extern FILE *freopen (const char * __filename,
        const char * __modes,
        FILE * __stream) ;
# 272 "/usr/include/stdio.h" 3 4

# 283 "/usr/include/stdio.h" 3 4
extern FILE *fdopen (int __fd, const char *__modes) ;
# 304 "/usr/include/stdio.h" 3 4



extern void setbuf (FILE * __stream, char * __buf) ;



extern int setvbuf (FILE * __stream, char * __buf,
      int __modes, size_t __n) ;





extern void setbuffer (FILE * __stream, char * __buf,
         size_t __size) ;


extern void setlinebuf (FILE *__stream) ;








extern int fprintf (FILE * __stream,
      const char * __format, ...);




extern int printf (const char * __format, ...);

extern int sprintf (char * __s,
      const char * __format, ...) ;





extern int vfprintf (FILE * __s, const char * __format,
       __gnuc_va_list __arg);




extern int vprintf (const char * __format, __gnuc_va_list __arg);

extern int vsprintf (char * __s, const char * __format,
       __gnuc_va_list __arg) ;





extern int snprintf (char * __s, size_t __maxlen,
       const char * __format, ...)
     ;

extern int vsnprintf (char * __s, size_t __maxlen,
        const char * __format, __gnuc_va_list __arg)
     ;

# 398 "/usr/include/stdio.h" 3 4





extern int fscanf (FILE * __stream,
     const char * __format, ...) ;




extern int scanf (const char * __format, ...) ;

extern int sscanf (const char * __s,
     const char * __format, ...) ;
# 441 "/usr/include/stdio.h" 3 4

# 504 "/usr/include/stdio.h" 3 4





extern int fgetc (FILE *__stream);
extern int getc (FILE *__stream);





extern int getchar (void);

# 528 "/usr/include/stdio.h" 3 4
extern int getc_unlocked (FILE *__stream);
extern int getchar_unlocked (void);
# 539 "/usr/include/stdio.h" 3 4
extern int fgetc_unlocked (FILE *__stream);











extern int fputc (int __c, FILE *__stream);
extern int putc (int __c, FILE *__stream);





extern int putchar (int __c);

# 572 "/usr/include/stdio.h" 3 4
extern int fputc_unlocked (int __c, FILE *__stream);







extern int putc_unlocked (int __c, FILE *__stream);
extern int putchar_unlocked (int __c);






extern int getw (FILE *__stream);


extern int putw (int __w, FILE *__stream);








extern char *fgets (char * __s, int __n, FILE * __stream)
     ;






extern char *gets (char *__s) ;

# 653 "/usr/include/stdio.h" 3 4





extern int fputs (const char * __s, FILE * __stream);





extern int puts (const char *__s);






extern int ungetc (int __c, FILE *__stream);






extern size_t fread (void * __ptr, size_t __size,
       size_t __n, FILE * __stream) ;




extern size_t fwrite (const void * __ptr, size_t __size,
        size_t __n, FILE * __s) ;

# 706 "/usr/include/stdio.h" 3 4
extern size_t fread_unlocked (void * __ptr, size_t __size,
         size_t __n, FILE * __stream) ;
extern size_t fwrite_unlocked (const void * __ptr, size_t __size,
          size_t __n, FILE * __stream) ;








extern int fseek (FILE *__stream, long int __off, int __whence);




extern long int ftell (FILE *__stream) ;




extern void rewind (FILE *__stream);

# 742 "/usr/include/stdio.h" 3 4
extern int fseeko (FILE *__stream, __off_t __off, int __whence);




extern __off_t ftello (FILE *__stream) ;
# 761 "/usr/include/stdio.h" 3 4






extern int fgetpos (FILE * __stream, fpos_t * __pos);




extern int fsetpos (FILE *__stream, const fpos_t *__pos);
# 784 "/usr/include/stdio.h" 3 4

# 793 "/usr/include/stdio.h" 3 4


extern void clearerr (FILE *__stream) ;

extern int feof (FILE *__stream) ;

extern int ferror (FILE *__stream) ;




extern void clearerr_unlocked (FILE *__stream) ;
extern int feof_unlocked (FILE *__stream) ;
extern int ferror_unlocked (FILE *__stream) ;








extern void perror (const char *__s);






# 1 "/usr/include/bits/sys_errlist.h" 1 3 4
# 27 "/usr/include/bits/sys_errlist.h" 3 4
extern int sys_nerr;
extern const char *const sys_errlist[];
# 823 "/usr/include/stdio.h" 2 3 4




extern int fileno (FILE *__stream) ;




extern int fileno_unlocked (FILE *__stream) ;
# 842 "/usr/include/stdio.h" 3 4
extern FILE *popen (const char *__command, const char *__modes) ;





extern int pclose (FILE *__stream);





extern char *ctermid (char *__s) ;
# 882 "/usr/include/stdio.h" 3 4
extern void flockfile (FILE *__stream) ;



extern int ftrylockfile (FILE *__stream) ;


extern void funlockfile (FILE *__stream) ;
# 912 "/usr/include/stdio.h" 3 4

# 24 "gui.c" 2
# 33 "gui.c"
# 1 "/usr/local/include/gtkdatabox.h" 1 3
# 23 "/usr/local/include/gtkdatabox.h" 3
# 1 "/usr/local/include/gtkdatabox_typedefs.h" 1 3
# 25 "/usr/local/include/gtkdatabox_typedefs.h" 3
G_BEGIN_DECLS
# 38 "/usr/local/include/gtkdatabox_typedefs.h" 3
   typedef struct _GtkDatabox GtkDatabox;
# 51 "/usr/local/include/gtkdatabox_typedefs.h" 3
typedef struct _GtkDataboxGraph GtkDataboxGraph;
G_END_DECLS
# 24 "/usr/local/include/gtkdatabox.h" 2 3
# 1 "/usr/local/include/gtkdatabox_graph.h" 1 3
# 40 "/usr/local/include/gtkdatabox_graph.h" 3
# 1 "/usr/local/include/gtkdatabox.h" 1 3
# 41 "/usr/local/include/gtkdatabox_graph.h" 2 3

G_BEGIN_DECLS
# 58 "/usr/local/include/gtkdatabox_graph.h" 3
   typedef struct _GtkDataboxGraphClass GtkDataboxGraphClass;
# 67 "/usr/local/include/gtkdatabox_graph.h" 3
   typedef struct _GtkDataboxGraphPrivate GtkDataboxGraphPrivate;
# 77 "/usr/local/include/gtkdatabox_graph.h" 3
   struct _GtkDataboxGraph
   {

      GObject parent;

      GtkDataboxGraphPrivate *priv;
   };

   struct _GtkDataboxGraphClass
   {
      GObjectClass parent_class;




      void (*draw) (GtkDataboxGraph * graph, GtkDatabox * box);

      gint (*calculate_extrema) (GtkDataboxGraph * graph,
                                 gfloat * min_x, gfloat * max_x,
     gfloat * min_y, gfloat * max_y);
      GdkGC* (*create_gc) (GtkDataboxGraph * graph, GtkDatabox * box);
   };

   GType gtk_databox_graph_get_type (void);

   GdkGC* gtk_databox_graph_get_gc (GtkDataboxGraph * graph);
   void gtk_databox_graph_set_gc (GtkDataboxGraph * graph, GdkGC *gc);

   void gtk_databox_graph_set_hide (GtkDataboxGraph * graph, gboolean hide);
   gboolean gtk_databox_graph_get_hide (GtkDataboxGraph * graph);

   void gtk_databox_graph_set_color (GtkDataboxGraph * graph,
         GdkColor * color);
   GdkColor *gtk_databox_graph_get_color (GtkDataboxGraph * graph);

   void gtk_databox_graph_set_size (GtkDataboxGraph * graph, gint size);
   gint gtk_databox_graph_get_size (GtkDataboxGraph * graph);

   gint gtk_databox_graph_calculate_extrema (GtkDataboxGraph * graph,
          gfloat * min_x, gfloat * max_x,
          gfloat * min_y, gfloat * max_y);

   void gtk_databox_graph_draw (GtkDataboxGraph * graph, GtkDatabox * box);


   GdkGC* gtk_databox_graph_create_gc (GtkDataboxGraph * graph, GtkDatabox * box);

G_END_DECLS
# 25 "/usr/local/include/gtkdatabox.h" 2 3
# 1 "/usr/local/include/gtkdatabox_ruler.h" 1 3
# 67 "/usr/local/include/gtkdatabox_ruler.h" 3
# 1 "/usr/local/include/gtkdatabox_scale.h" 1 3
# 32 "/usr/local/include/gtkdatabox_scale.h" 3
G_BEGIN_DECLS
# 43 "/usr/local/include/gtkdatabox_scale.h" 3
typedef enum
{
   GTK_DATABOX_SCALE_LINEAR = 0,
   GTK_DATABOX_SCALE_LOG,
   GTK_DATABOX_SCALE_LOG2
}
GtkDataboxScaleType;

GType gtk_databox_scale_type_get_type (void);

G_END_DECLS
# 68 "/usr/local/include/gtkdatabox_ruler.h" 2 3

G_BEGIN_DECLS
# 82 "/usr/local/include/gtkdatabox_ruler.h" 3
typedef struct _GtkDataboxRuler GtkDataboxRuler;
typedef struct _GtkDataboxRulerClass GtkDataboxRulerClass;
# 99 "/usr/local/include/gtkdatabox_ruler.h" 3
 typedef struct _GtkDataboxRulerPrivate GtkDataboxRulerPrivate;

struct _GtkDataboxRuler
{
   GtkWidget widget;

   GtkDataboxRulerPrivate *priv;
};

struct _GtkDataboxRulerClass
{
   GtkWidgetClass parent_class;
};


GType
gtk_databox_ruler_get_type (void)
   G_GNUC_CONST;
     GtkWidget *gtk_databox_ruler_new (GtkOrientation orientation);

     void gtk_databox_ruler_set_range (GtkDataboxRuler * ruler,
           gdouble lower,
           gdouble upper, gdouble position);
     void gtk_databox_ruler_set_max_length (GtkDataboxRuler * ruler,
         guint max_length);
     void gtk_databox_ruler_set_scale_type (GtkDataboxRuler * ruler,
         guint scale_type);

     void gtk_databox_ruler_get_range (GtkDataboxRuler * ruler,
           gdouble * lower,
           gdouble * upper, gdouble * position);
     guint gtk_databox_ruler_get_max_length (GtkDataboxRuler * ruler);
     GtkDataboxScaleType gtk_databox_ruler_get_scale_type (GtkDataboxRuler *
          ruler);

     void gtk_databox_ruler_set_orientation (GtkDataboxRuler * ruler,
          GtkOrientation orientation);

     GtkOrientation gtk_databox_ruler_get_orientation (GtkDataboxRuler *
             ruler);

G_END_DECLS
# 26 "/usr/local/include/gtkdatabox.h" 2 3
# 54 "/usr/local/include/gtkdatabox.h" 3
G_BEGIN_DECLS
# 71 "/usr/local/include/gtkdatabox.h" 3
   typedef struct _GtkDataboxClass GtkDataboxClass;
# 80 "/usr/local/include/gtkdatabox.h" 3
   typedef struct _GtkDataboxPrivate GtkDataboxPrivate;

   typedef struct
   {
      gfloat x1;
      gfloat x2;
      gfloat y1;
      gfloat y2;
   } GtkDataboxValueRectangle;
# 98 "/usr/local/include/gtkdatabox.h" 3
   struct _GtkDatabox
   {

      GtkWidget box;

      GtkDataboxPrivate *priv;
   };

   struct _GtkDataboxClass
   {
      GtkWidgetClass parent_class;

      void (*zoomed) (GtkDatabox * box);
      void (*selection_started) (GtkDatabox * box,
     GtkDataboxValueRectangle * selectionValues);
      void (*selection_changed) (GtkDatabox * box,
     GtkDataboxValueRectangle * selectionValues);
      void (*selection_finalized) (GtkDatabox * box,
       GtkDataboxValueRectangle *
       selectionValues);
      void (*selection_canceled) (GtkDatabox * box);
   };

   GType gtk_databox_get_type (void);

   GtkWidget *gtk_databox_new (void);

   gint gtk_databox_graph_add (GtkDatabox * box, GtkDataboxGraph * graph);
   gint gtk_databox_graph_remove (GtkDatabox * box, GtkDataboxGraph * graph);
   gint gtk_databox_graph_remove_all (GtkDatabox * box);

   gint gtk_databox_auto_rescale (GtkDatabox * box, gfloat border);
   gint gtk_databox_calculate_extrema (GtkDatabox * box,
           gfloat * min_x, gfloat * max_x,
           gfloat * min_y, gfloat * max_y);

   void gtk_databox_set_total_limits (GtkDatabox * box,
          gfloat left, gfloat right,
          gfloat top, gfloat bottom);
   void gtk_databox_set_visible_limits (GtkDatabox * box,
     gfloat left, gfloat right,
     gfloat top, gfloat bottom);
   void gtk_databox_get_total_limits (GtkDatabox * box,
          gfloat * left, gfloat * right,
          gfloat * top, gfloat * bottom);
   void gtk_databox_get_visible_limits (GtkDatabox * box,
     gfloat * left, gfloat * right,
     gfloat * top, gfloat * bottom);

   void gtk_databox_set_adjustment_x (GtkDatabox * box, GtkAdjustment * adj);
   void gtk_databox_set_adjustment_y (GtkDatabox * box, GtkAdjustment * adj);
   GtkAdjustment *gtk_databox_get_adjustment_x (GtkDatabox * box);
   GtkAdjustment *gtk_databox_get_adjustment_y (GtkDatabox * box);

   void gtk_databox_set_ruler_x (GtkDatabox * box, GtkDataboxRuler * ruler);
   void gtk_databox_set_ruler_y (GtkDatabox * box, GtkDataboxRuler * ruler);
   GtkDataboxRuler *gtk_databox_get_ruler_x (GtkDatabox * box);
   GtkDataboxRuler *gtk_databox_get_ruler_y (GtkDatabox * box);

   void gtk_databox_set_scale_type_x (GtkDatabox * box,
          GtkDataboxScaleType scale_type);
   void gtk_databox_set_scale_type_y (GtkDatabox * box,
          GtkDataboxScaleType scale_type);
   GtkDataboxScaleType gtk_databox_get_scale_type_x (GtkDatabox * box);
   GtkDataboxScaleType gtk_databox_get_scale_type_y (GtkDatabox * box);

   void gtk_databox_set_enable_selection (GtkDatabox * box, gboolean enable);
   void gtk_databox_set_enable_zoom (GtkDatabox * box, gboolean enable);

   gboolean gtk_databox_get_enable_selection (GtkDatabox * box);
   gboolean gtk_databox_get_enable_zoom (GtkDatabox * box);

   void gtk_databox_zoom_to_selection (GtkDatabox * box);
   void gtk_databox_zoom_out (GtkDatabox * box);
   void gtk_databox_zoom_home (GtkDatabox * box);

   gint16 gtk_databox_value_to_pixel_x (GtkDatabox * box, gfloat value);
   gint16 gtk_databox_value_to_pixel_y (GtkDatabox * box, gfloat value);
   gfloat gtk_databox_pixel_to_value_x (GtkDatabox * box, gint16 pixel);
   gfloat gtk_databox_pixel_to_value_y (GtkDatabox * box, gint16 pixel);
   void gtk_databox_values_to_pixels (GtkDatabox * box,
          guint len,
          const gfloat * values_x,
          const gfloat * values_y,
          GdkPoint * pixels);

   void gtk_databox_create_box_with_scrollbars_and_rulers (GtkWidget **
          p_box,
          GtkWidget **
          p_table,
          gboolean scrollbar_x,
          gboolean scrollbar_y,
          gboolean ruler_x,
          gboolean ruler_y);


   GdkPixmap* gtk_databox_get_backing_pixmap(GtkDatabox * box);

G_END_DECLS
# 34 "gui.c" 2
# 1 "/usr/local/include/gtkdatabox_points.h" 1 3
# 33 "/usr/local/include/gtkdatabox_points.h" 3
# 1 "/usr/local/include/gtkdatabox_xyc_graph.h" 1 3
# 37 "/usr/local/include/gtkdatabox_xyc_graph.h" 3
G_BEGIN_DECLS
# 61 "/usr/local/include/gtkdatabox_xyc_graph.h" 3
   typedef struct _GtkDataboxXYCGraph GtkDataboxXYCGraph;

   typedef struct _GtkDataboxXYCGraphClass GtkDataboxXYCGraphClass;
# 72 "/usr/local/include/gtkdatabox_xyc_graph.h" 3
   typedef struct _GtkDataboxXYCGraphPrivate GtkDataboxXYCGraphPrivate;

   struct _GtkDataboxXYCGraph
   {

      GtkDataboxGraph parent;

      GtkDataboxXYCGraphPrivate *priv;
   };

   struct _GtkDataboxXYCGraphClass
   {
      GtkDataboxGraphClass parent_class;
   };

   GType gtk_databox_xyc_graph_get_type (void);

   guint gtk_databox_xyc_graph_get_length (GtkDataboxXYCGraph * xyc_graph);
   gfloat *gtk_databox_xyc_graph_get_X (GtkDataboxXYCGraph * xyc_graph);
   gfloat *gtk_databox_xyc_graph_get_Y (GtkDataboxXYCGraph * xyc_graph);

G_END_DECLS
# 34 "/usr/local/include/gtkdatabox_points.h" 2 3

G_BEGIN_DECLS
# 59 "/usr/local/include/gtkdatabox_points.h" 3
   typedef struct _GtkDataboxPoints GtkDataboxPoints;

   typedef struct _GtkDataboxPointsClass GtkDataboxPointsClass;
# 70 "/usr/local/include/gtkdatabox_points.h" 3
   typedef struct _GtkDataboxPointsPrivate GtkDataboxPointsPrivate;

   struct _GtkDataboxPoints
   {

      GtkDataboxXYCGraph parent;

      GtkDataboxPointsPrivate *priv;
   };

   struct _GtkDataboxPointsClass
   {
      GtkDataboxXYCGraphClass parent_class;
   };

   GType gtk_databox_points_get_type (void);

   GtkDataboxGraph *gtk_databox_points_new (guint len, gfloat * X, gfloat * Y,
         GdkColor * color, gint size);

G_END_DECLS
# 35 "gui.c" 2
# 1 "/usr/local/include/gtkdatabox_lines.h" 1 3
# 35 "/usr/local/include/gtkdatabox_lines.h" 3
G_BEGIN_DECLS
# 57 "/usr/local/include/gtkdatabox_lines.h" 3
   typedef struct _GtkDataboxLines GtkDataboxLines;

   typedef struct _GtkDataboxLinesClass GtkDataboxLinesClass;
# 69 "/usr/local/include/gtkdatabox_lines.h" 3
   typedef struct _GtkDataboxLinesPrivate GtkDataboxLinesPrivate;

   struct _GtkDataboxLines
   {

      GtkDataboxXYCGraph parent;

      GtkDataboxLinesPrivate *priv;
   };

   struct _GtkDataboxLinesClass
   {
      GtkDataboxXYCGraphClass parent_class;
   };

   GType gtk_databox_lines_get_type (void);

   GtkDataboxGraph *gtk_databox_lines_new (guint len, gfloat * X, gfloat * Y,
        GdkColor * color, guint size);

G_END_DECLS
# 36 "gui.c" 2


# 1 "/usr/local/include/gtkdatabox_grid.h" 1 3
# 36 "/usr/local/include/gtkdatabox_grid.h" 3
G_BEGIN_DECLS
# 60 "/usr/local/include/gtkdatabox_grid.h" 3
   typedef struct _GtkDataboxGrid GtkDataboxGrid;

   typedef struct _GtkDataboxGridClass GtkDataboxGridClass;
# 71 "/usr/local/include/gtkdatabox_grid.h" 3
   typedef struct _GtkDataboxGridPrivate GtkDataboxGridPrivate;

   struct _GtkDataboxGrid
   {
      GtkDataboxGraph parent;

      GtkDataboxGridPrivate *priv;
   };

   struct _GtkDataboxGridClass
   {
      GtkDataboxGraphClass parent_class;
   };

   GType gtk_databox_grid_get_type (void);

   GtkDataboxGraph *gtk_databox_grid_new (gint hlines, gint vlines,
       GdkColor * color, guint size);

   void gtk_databox_grid_set_hlines (GtkDataboxGrid * grid, gint hlines);
   gint gtk_databox_grid_get_hlines (GtkDataboxGrid * grid);

   void gtk_databox_grid_set_vlines (GtkDataboxGrid * grid, gint vlines);
   gint gtk_databox_grid_get_vlines (GtkDataboxGrid * grid);

G_END_DECLS
# 39 "gui.c" 2

# 1 "/usr/include/math.h" 1 3 4
# 30 "/usr/include/math.h" 3 4




# 1 "/usr/include/bits/huge_val.h" 1 3 4
# 35 "/usr/include/math.h" 2 3 4
# 47 "/usr/include/math.h" 3 4
# 1 "/usr/include/bits/mathdef.h" 1 3 4
# 48 "/usr/include/math.h" 2 3 4
# 71 "/usr/include/math.h" 3 4
# 1 "/usr/include/bits/mathcalls.h" 1 3 4
# 53 "/usr/include/bits/mathcalls.h" 3 4


extern double acos (double __x) ; extern double __acos (double __x) ;

extern double asin (double __x) ; extern double __asin (double __x) ;

extern double atan (double __x) ; extern double __atan (double __x) ;

extern double atan2 (double __y, double __x) ; extern double __atan2 (double __y, double __x) ;


extern double cos (double __x) ; extern double __cos (double __x) ;

extern double sin (double __x) ; extern double __sin (double __x) ;

extern double tan (double __x) ; extern double __tan (double __x) ;




extern double cosh (double __x) ; extern double __cosh (double __x) ;

extern double sinh (double __x) ; extern double __sinh (double __x) ;

extern double tanh (double __x) ; extern double __tanh (double __x) ;

# 87 "/usr/include/bits/mathcalls.h" 3 4


extern double acosh (double __x) ; extern double __acosh (double __x) ;

extern double asinh (double __x) ; extern double __asinh (double __x) ;

extern double atanh (double __x) ; extern double __atanh (double __x) ;







extern double exp (double __x) ; extern double __exp (double __x) ;


extern double frexp (double __x, int *__exponent) ; extern double __frexp (double __x, int *__exponent) ;


extern double ldexp (double __x, int __exponent) ; extern double __ldexp (double __x, int __exponent) ;


extern double log (double __x) ; extern double __log (double __x) ;


extern double log10 (double __x) ; extern double __log10 (double __x) ;


extern double modf (double __x, double *__iptr) ; extern double __modf (double __x, double *__iptr) ;

# 127 "/usr/include/bits/mathcalls.h" 3 4


extern double expm1 (double __x) ; extern double __expm1 (double __x) ;


extern double log1p (double __x) ; extern double __log1p (double __x) ;


extern double logb (double __x) ; extern double __logb (double __x) ;

# 152 "/usr/include/bits/mathcalls.h" 3 4


extern double pow (double __x, double __y) ; extern double __pow (double __x, double __y) ;


extern double sqrt (double __x) ; extern double __sqrt (double __x) ;





extern double hypot (double __x, double __y) ; extern double __hypot (double __x, double __y) ;






extern double cbrt (double __x) ; extern double __cbrt (double __x) ;








extern double ceil (double __x) ; extern double __ceil (double __x) ;


extern double fabs (double __x) ; extern double __fabs (double __x) ;


extern double floor (double __x) ; extern double __floor (double __x) ;


extern double fmod (double __x, double __y) ; extern double __fmod (double __x, double __y) ;




extern int __isinf (double __value) ;


extern int __finite (double __value) ;





extern int isinf (double __value) ;


extern int finite (double __value) ;


extern double drem (double __x, double __y) ; extern double __drem (double __x, double __y) ;



extern double significand (double __x) ; extern double __significand (double __x) ;





extern double copysign (double __x, double __y) ; extern double __copysign (double __x, double __y) ;

# 231 "/usr/include/bits/mathcalls.h" 3 4
extern int __isnan (double __value) ;



extern int isnan (double __value) ;


extern double j0 (double) ; extern double __j0 (double) ;
extern double j1 (double) ; extern double __j1 (double) ;
extern double jn (int, double) ; extern double __jn (int, double) ;
extern double y0 (double) ; extern double __y0 (double) ;
extern double y1 (double) ; extern double __y1 (double) ;
extern double yn (int, double) ; extern double __yn (int, double) ;






extern double erf (double) ; extern double __erf (double) ;
extern double erfc (double) ; extern double __erfc (double) ;
extern double lgamma (double) ; extern double __lgamma (double) ;

# 265 "/usr/include/bits/mathcalls.h" 3 4
extern double gamma (double) ; extern double __gamma (double) ;






extern double lgamma_r (double, int *__signgamp) ; extern double __lgamma_r (double, int *__signgamp) ;







extern double rint (double __x) ; extern double __rint (double __x) ;


extern double nextafter (double __x, double __y) ; extern double __nextafter (double __x, double __y) ;





extern double remainder (double __x, double __y) ; extern double __remainder (double __x, double __y) ;



extern double scalbn (double __x, int __n) ; extern double __scalbn (double __x, int __n) ;



extern int ilogb (double __x) ; extern int __ilogb (double __x) ;
# 359 "/usr/include/bits/mathcalls.h" 3 4





extern double scalb (double __x, double __n) ; extern double __scalb (double __x, double __n) ;
# 72 "/usr/include/math.h" 2 3 4
# 94 "/usr/include/math.h" 3 4
# 1 "/usr/include/bits/mathcalls.h" 1 3 4
# 53 "/usr/include/bits/mathcalls.h" 3 4


extern float acosf (float __x) ; extern float __acosf (float __x) ;

extern float asinf (float __x) ; extern float __asinf (float __x) ;

extern float atanf (float __x) ; extern float __atanf (float __x) ;

extern float atan2f (float __y, float __x) ; extern float __atan2f (float __y, float __x) ;


extern float cosf (float __x) ; extern float __cosf (float __x) ;

extern float sinf (float __x) ; extern float __sinf (float __x) ;

extern float tanf (float __x) ; extern float __tanf (float __x) ;




extern float coshf (float __x) ; extern float __coshf (float __x) ;

extern float sinhf (float __x) ; extern float __sinhf (float __x) ;

extern float tanhf (float __x) ; extern float __tanhf (float __x) ;

# 87 "/usr/include/bits/mathcalls.h" 3 4


extern float acoshf (float __x) ; extern float __acoshf (float __x) ;

extern float asinhf (float __x) ; extern float __asinhf (float __x) ;

extern float atanhf (float __x) ; extern float __atanhf (float __x) ;







extern float expf (float __x) ; extern float __expf (float __x) ;


extern float frexpf (float __x, int *__exponent) ; extern float __frexpf (float __x, int *__exponent) ;


extern float ldexpf (float __x, int __exponent) ; extern float __ldexpf (float __x, int __exponent) ;


extern float logf (float __x) ; extern float __logf (float __x) ;


extern float log10f (float __x) ; extern float __log10f (float __x) ;


extern float modff (float __x, float *__iptr) ; extern float __modff (float __x, float *__iptr) ;

# 127 "/usr/include/bits/mathcalls.h" 3 4


extern float expm1f (float __x) ; extern float __expm1f (float __x) ;


extern float log1pf (float __x) ; extern float __log1pf (float __x) ;


extern float logbf (float __x) ; extern float __logbf (float __x) ;

# 152 "/usr/include/bits/mathcalls.h" 3 4


extern float powf (float __x, float __y) ; extern float __powf (float __x, float __y) ;


extern float sqrtf (float __x) ; extern float __sqrtf (float __x) ;





extern float hypotf (float __x, float __y) ; extern float __hypotf (float __x, float __y) ;






extern float cbrtf (float __x) ; extern float __cbrtf (float __x) ;








extern float ceilf (float __x) ; extern float __ceilf (float __x) ;


extern float fabsf (float __x) ; extern float __fabsf (float __x) ;


extern float floorf (float __x) ; extern float __floorf (float __x) ;


extern float fmodf (float __x, float __y) ; extern float __fmodf (float __x, float __y) ;




extern int __isinff (float __value) ;


extern int __finitef (float __value) ;





extern int isinff (float __value) ;


extern int finitef (float __value) ;


extern float dremf (float __x, float __y) ; extern float __dremf (float __x, float __y) ;



extern float significandf (float __x) ; extern float __significandf (float __x) ;





extern float copysignf (float __x, float __y) ; extern float __copysignf (float __x, float __y) ;

# 231 "/usr/include/bits/mathcalls.h" 3 4
extern int __isnanf (float __value) ;



extern int isnanf (float __value) ;


extern float j0f (float) ; extern float __j0f (float) ;
extern float j1f (float) ; extern float __j1f (float) ;
extern float jnf (int, float) ; extern float __jnf (int, float) ;
extern float y0f (float) ; extern float __y0f (float) ;
extern float y1f (float) ; extern float __y1f (float) ;
extern float ynf (int, float) ; extern float __ynf (int, float) ;






extern float erff (float) ; extern float __erff (float) ;
extern float erfcf (float) ; extern float __erfcf (float) ;
extern float lgammaf (float) ; extern float __lgammaf (float) ;

# 265 "/usr/include/bits/mathcalls.h" 3 4
extern float gammaf (float) ; extern float __gammaf (float) ;






extern float lgammaf_r (float, int *__signgamp) ; extern float __lgammaf_r (float, int *__signgamp) ;







extern float rintf (float __x) ; extern float __rintf (float __x) ;


extern float nextafterf (float __x, float __y) ; extern float __nextafterf (float __x, float __y) ;





extern float remainderf (float __x, float __y) ; extern float __remainderf (float __x, float __y) ;



extern float scalbnf (float __x, int __n) ; extern float __scalbnf (float __x, int __n) ;



extern int ilogbf (float __x) ; extern int __ilogbf (float __x) ;
# 359 "/usr/include/bits/mathcalls.h" 3 4





extern float scalbf (float __x, float __n) ; extern float __scalbf (float __x, float __n) ;
# 95 "/usr/include/math.h" 2 3 4
# 141 "/usr/include/math.h" 3 4
# 1 "/usr/include/bits/mathcalls.h" 1 3 4
# 53 "/usr/include/bits/mathcalls.h" 3 4


extern long double acosl (long double __x) ; extern long double __acosl (long double __x) ;

extern long double asinl (long double __x) ; extern long double __asinl (long double __x) ;

extern long double atanl (long double __x) ; extern long double __atanl (long double __x) ;

extern long double atan2l (long double __y, long double __x) ; extern long double __atan2l (long double __y, long double __x) ;


extern long double cosl (long double __x) ; extern long double __cosl (long double __x) ;

extern long double sinl (long double __x) ; extern long double __sinl (long double __x) ;

extern long double tanl (long double __x) ; extern long double __tanl (long double __x) ;




extern long double coshl (long double __x) ; extern long double __coshl (long double __x) ;

extern long double sinhl (long double __x) ; extern long double __sinhl (long double __x) ;

extern long double tanhl (long double __x) ; extern long double __tanhl (long double __x) ;

# 87 "/usr/include/bits/mathcalls.h" 3 4


extern long double acoshl (long double __x) ; extern long double __acoshl (long double __x) ;

extern long double asinhl (long double __x) ; extern long double __asinhl (long double __x) ;

extern long double atanhl (long double __x) ; extern long double __atanhl (long double __x) ;







extern long double expl (long double __x) ; extern long double __expl (long double __x) ;


extern long double frexpl (long double __x, int *__exponent) ; extern long double __frexpl (long double __x, int *__exponent) ;


extern long double ldexpl (long double __x, int __exponent) ; extern long double __ldexpl (long double __x, int __exponent) ;


extern long double logl (long double __x) ; extern long double __logl (long double __x) ;


extern long double log10l (long double __x) ; extern long double __log10l (long double __x) ;


extern long double modfl (long double __x, long double *__iptr) ; extern long double __modfl (long double __x, long double *__iptr) ;

# 127 "/usr/include/bits/mathcalls.h" 3 4


extern long double expm1l (long double __x) ; extern long double __expm1l (long double __x) ;


extern long double log1pl (long double __x) ; extern long double __log1pl (long double __x) ;


extern long double logbl (long double __x) ; extern long double __logbl (long double __x) ;

# 152 "/usr/include/bits/mathcalls.h" 3 4


extern long double powl (long double __x, long double __y) ; extern long double __powl (long double __x, long double __y) ;


extern long double sqrtl (long double __x) ; extern long double __sqrtl (long double __x) ;





extern long double hypotl (long double __x, long double __y) ; extern long double __hypotl (long double __x, long double __y) ;






extern long double cbrtl (long double __x) ; extern long double __cbrtl (long double __x) ;








extern long double ceill (long double __x) ; extern long double __ceill (long double __x) ;


extern long double fabsl (long double __x) ; extern long double __fabsl (long double __x) ;


extern long double floorl (long double __x) ; extern long double __floorl (long double __x) ;


extern long double fmodl (long double __x, long double __y) ; extern long double __fmodl (long double __x, long double __y) ;




extern int __isinfl (long double __value) ;


extern int __finitel (long double __value) ;





extern int isinfl (long double __value) ;


extern int finitel (long double __value) ;


extern long double dreml (long double __x, long double __y) ; extern long double __dreml (long double __x, long double __y) ;



extern long double significandl (long double __x) ; extern long double __significandl (long double __x) ;





extern long double copysignl (long double __x, long double __y) ; extern long double __copysignl (long double __x, long double __y) ;

# 231 "/usr/include/bits/mathcalls.h" 3 4
extern int __isnanl (long double __value) ;



extern int isnanl (long double __value) ;


extern long double j0l (long double) ; extern long double __j0l (long double) ;
extern long double j1l (long double) ; extern long double __j1l (long double) ;
extern long double jnl (int, long double) ; extern long double __jnl (int, long double) ;
extern long double y0l (long double) ; extern long double __y0l (long double) ;
extern long double y1l (long double) ; extern long double __y1l (long double) ;
extern long double ynl (int, long double) ; extern long double __ynl (int, long double) ;






extern long double erfl (long double) ; extern long double __erfl (long double) ;
extern long double erfcl (long double) ; extern long double __erfcl (long double) ;
extern long double lgammal (long double) ; extern long double __lgammal (long double) ;

# 265 "/usr/include/bits/mathcalls.h" 3 4
extern long double gammal (long double) ; extern long double __gammal (long double) ;






extern long double lgammal_r (long double, int *__signgamp) ; extern long double __lgammal_r (long double, int *__signgamp) ;







extern long double rintl (long double __x) ; extern long double __rintl (long double __x) ;


extern long double nextafterl (long double __x, long double __y) ; extern long double __nextafterl (long double __x, long double __y) ;





extern long double remainderl (long double __x, long double __y) ; extern long double __remainderl (long double __x, long double __y) ;



extern long double scalbnl (long double __x, int __n) ; extern long double __scalbnl (long double __x, int __n) ;



extern int ilogbl (long double __x) ; extern int __ilogbl (long double __x) ;
# 359 "/usr/include/bits/mathcalls.h" 3 4





extern long double scalbl (long double __x, long double __n) ; extern long double __scalbl (long double __x, long double __n) ;
# 142 "/usr/include/math.h" 2 3 4
# 157 "/usr/include/math.h" 3 4
extern int signgam;
# 284 "/usr/include/math.h" 3 4
typedef enum
{
  _IEEE_ = -1,
  _SVID_,
  _XOPEN_,
  _POSIX_,
  _ISOC_
} _LIB_VERSION_TYPE;




extern _LIB_VERSION_TYPE _LIB_VERSION;
# 309 "/usr/include/math.h" 3 4
struct exception

  {
    int type;
    char *name;
    double arg1;
    double arg2;
    double retval;
  };




extern int matherr (struct exception *__exc);
# 465 "/usr/include/math.h" 3 4

# 41 "gui.c" 2
# 1 "/usr/include/errno.h" 1 3 4
# 32 "/usr/include/errno.h" 3 4




# 1 "/usr/include/bits/errno.h" 1 3 4
# 25 "/usr/include/bits/errno.h" 3 4
# 1 "/usr/include/linux/errno.h" 1 3 4



# 1 "/usr/include/asm/errno.h" 1 3 4
# 1 "/usr/include/asm-generic/errno.h" 1 3 4



# 1 "/usr/include/asm-generic/errno-base.h" 1 3 4
# 5 "/usr/include/asm-generic/errno.h" 2 3 4
# 1 "/usr/include/asm/errno.h" 2 3 4
# 5 "/usr/include/linux/errno.h" 2 3 4
# 26 "/usr/include/bits/errno.h" 2 3 4
# 43 "/usr/include/bits/errno.h" 3 4
extern int *__errno_location (void) ;
# 37 "/usr/include/errno.h" 2 3 4
# 59 "/usr/include/errno.h" 3 4

# 42 "gui.c" 2
# 1 "/usr/include/string.h" 1 3 4
# 28 "/usr/include/string.h" 3 4





# 1 "/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stddef.h" 1 3 4
# 34 "/usr/include/string.h" 2 3 4




extern void *memcpy (void * __dest,
       const void * __src, size_t __n)
     ;


extern void *memmove (void *__dest, const void *__src, size_t __n)
     ;






extern void *memccpy (void * __dest, const void * __src,
        int __c, size_t __n)
     ;





extern void *memset (void *__s, int __c, size_t __n) ;


extern int memcmp (const void *__s1, const void *__s2, size_t __n)
     ;


extern void *memchr (const void *__s, int __c, size_t __n)
      ;

# 82 "/usr/include/string.h" 3 4


extern char *strcpy (char * __dest, const char * __src)
     ;

extern char *strncpy (char * __dest,
        const char * __src, size_t __n)
     ;


extern char *strcat (char * __dest, const char * __src)
     ;

extern char *strncat (char * __dest, const char * __src,
        size_t __n) ;


extern int strcmp (const char *__s1, const char *__s2)
     ;

extern int strncmp (const char *__s1, const char *__s2, size_t __n)
     ;


extern int strcoll (const char *__s1, const char *__s2)
     ;

extern size_t strxfrm (char * __dest,
         const char * __src, size_t __n)
     ;

# 130 "/usr/include/string.h" 3 4
extern char *strdup (const char *__s)
     ;
# 165 "/usr/include/string.h" 3 4


extern char *strchr (const char *__s, int __c)
     ;

extern char *strrchr (const char *__s, int __c)
     ;

# 181 "/usr/include/string.h" 3 4



extern size_t strcspn (const char *__s, const char *__reject)
     ;


extern size_t strspn (const char *__s, const char *__accept)
     ;

extern char *strpbrk (const char *__s, const char *__accept)
     ;

extern char *strstr (const char *__haystack, const char *__needle)
     ;



extern char *strtok (char * __s, const char * __delim)
     ;




extern char *__strtok_r (char * __s,
    const char * __delim,
    char ** __save_ptr)
     ;

extern char *strtok_r (char * __s, const char * __delim,
         char ** __save_ptr)
     ;
# 240 "/usr/include/string.h" 3 4


extern size_t strlen (const char *__s)
     ;

# 254 "/usr/include/string.h" 3 4


extern char *strerror (int __errnum) ;

# 270 "/usr/include/string.h" 3 4
extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") ;
# 294 "/usr/include/string.h" 3 4
extern void __bzero (void *__s, size_t __n) ;



extern void bcopy (const void *__src, void *__dest, size_t __n)
     ;


extern void bzero (void *__s, size_t __n) ;


extern int bcmp (const void *__s1, const void *__s2, size_t __n)
     ;


extern char *index (const char *__s, int __c)
     ;


extern char *rindex (const char *__s, int __c)
     ;



extern int ffs (int __i) ;
# 331 "/usr/include/string.h" 3 4
extern int strcasecmp (const char *__s1, const char *__s2)
     ;


extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
     ;
# 354 "/usr/include/string.h" 3 4
extern char *strsep (char ** __stringp,
       const char * __delim)
     ;
# 432 "/usr/include/string.h" 3 4

# 43 "gui.c" 2
# 1 "gui.h" 1
# 23 "gui.h"
# 1 "main.h" 1
# 27 "main.h"
# 1 "/usr/include/fftw.h" 1 3 4
# 28 "/usr/include/fftw.h" 3 4
# 1 "/usr/include/stdlib.h" 1 3 4
# 33 "/usr/include/stdlib.h" 3 4
# 1 "/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stddef.h" 1 3 4
# 326 "/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stddef.h" 3 4
typedef int wchar_t;
# 34 "/usr/include/stdlib.h" 2 3 4


# 96 "/usr/include/stdlib.h" 3 4


typedef struct
  {
    int quot;
    int rem;
  } div_t;



typedef struct
  {
    long int quot;
    long int rem;
  } ldiv_t;



# 140 "/usr/include/stdlib.h" 3 4
extern size_t __ctype_get_mb_cur_max (void) ;




extern double atof (const char *__nptr)
     ;

extern int atoi (const char *__nptr)
     ;

extern long int atol (const char *__nptr)
     ;





 extern long long int atoll (const char *__nptr)
     ;





extern double strtod (const char * __nptr,
        char ** __endptr)
     ;

# 182 "/usr/include/stdlib.h" 3 4


extern long int strtol (const char * __nptr,
   char ** __endptr, int __base)
     ;

extern unsigned long int strtoul (const char * __nptr,
      char ** __endptr, int __base)
     ;





extern long long int strtoq (const char * __nptr,
        char ** __endptr, int __base)
     ;


extern unsigned long long int strtouq (const char * __nptr,
           char ** __endptr, int __base)
     ;






extern long long int strtoll (const char * __nptr,
         char ** __endptr, int __base)
     ;


extern unsigned long long int strtoull (const char * __nptr,
     char ** __endptr, int __base)
     ;

# 311 "/usr/include/stdlib.h" 3 4
extern char *l64a (long int __n) ;


extern long int a64l (const char *__s)
     ;




# 1 "/usr/include/sys/types.h" 1 3 4
# 29 "/usr/include/sys/types.h" 3 4






typedef __u_char u_char;
typedef __u_short u_short;
typedef __u_int u_int;
typedef __u_long u_long;
typedef __quad_t quad_t;
typedef __u_quad_t u_quad_t;
typedef __fsid_t fsid_t;




typedef __loff_t loff_t;



typedef __ino_t ino_t;
# 62 "/usr/include/sys/types.h" 3 4
typedef __dev_t dev_t;




typedef __gid_t gid_t;




typedef __mode_t mode_t;




typedef __nlink_t nlink_t;




typedef __uid_t uid_t;





typedef __off_t off_t;
# 100 "/usr/include/sys/types.h" 3 4
typedef __pid_t pid_t;




typedef __id_t id_t;




typedef __ssize_t ssize_t;





typedef __daddr_t daddr_t;
typedef __caddr_t caddr_t;





typedef __key_t key_t;
# 133 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/time.h" 1 3 4
# 75 "/usr/include/time.h" 3 4


typedef __time_t time_t;



# 93 "/usr/include/time.h" 3 4
typedef __clockid_t clockid_t;
# 105 "/usr/include/time.h" 3 4
typedef __timer_t timer_t;
# 134 "/usr/include/sys/types.h" 2 3 4
# 147 "/usr/include/sys/types.h" 3 4
# 1 "/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stddef.h" 1 3 4
# 148 "/usr/include/sys/types.h" 2 3 4



typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;
# 195 "/usr/include/sys/types.h" 3 4
typedef int int8_t ;
typedef int int16_t ;
typedef int int32_t ;
typedef int int64_t ;


typedef unsigned int u_int8_t ;
typedef unsigned int u_int16_t ;
typedef unsigned int u_int32_t ;
typedef unsigned int u_int64_t ;

typedef int register_t ;
# 217 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/endian.h" 1 3 4
# 37 "/usr/include/endian.h" 3 4
# 1 "/usr/include/bits/endian.h" 1 3 4
# 38 "/usr/include/endian.h" 2 3 4
# 218 "/usr/include/sys/types.h" 2 3 4


# 1 "/usr/include/sys/select.h" 1 3 4
# 31 "/usr/include/sys/select.h" 3 4
# 1 "/usr/include/bits/select.h" 1 3 4
# 32 "/usr/include/sys/select.h" 2 3 4


# 1 "/usr/include/bits/sigset.h" 1 3 4
# 24 "/usr/include/bits/sigset.h" 3 4
typedef int __sig_atomic_t;




typedef struct
  {
    unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
  } __sigset_t;
# 35 "/usr/include/sys/select.h" 2 3 4



typedef __sigset_t sigset_t;





# 1 "/usr/include/time.h" 1 3 4
# 121 "/usr/include/time.h" 3 4
struct timespec
  {
    __time_t tv_sec;
    long int tv_nsec;
  };
# 45 "/usr/include/sys/select.h" 2 3 4

# 1 "/usr/include/bits/time.h" 1 3 4
# 69 "/usr/include/bits/time.h" 3 4
struct timeval
  {
    __time_t tv_sec;
    __suseconds_t tv_usec;
  };
# 47 "/usr/include/sys/select.h" 2 3 4


typedef __suseconds_t suseconds_t;





typedef long int __fd_mask;
# 67 "/usr/include/sys/select.h" 3 4
typedef struct
  {






    __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))];


  } fd_set;






typedef __fd_mask fd_mask;
# 99 "/usr/include/sys/select.h" 3 4

# 109 "/usr/include/sys/select.h" 3 4
extern int select (int __nfds, fd_set * __readfds,
     fd_set * __writefds,
     fd_set * __exceptfds,
     struct timeval * __timeout);
# 121 "/usr/include/sys/select.h" 3 4
extern int pselect (int __nfds, fd_set * __readfds,
      fd_set * __writefds,
      fd_set * __exceptfds,
      const struct timespec * __timeout,
      const __sigset_t * __sigmask);



# 221 "/usr/include/sys/types.h" 2 3 4


# 1 "/usr/include/sys/sysmacros.h" 1 3 4
# 30 "/usr/include/sys/sysmacros.h" 3 4

extern unsigned int gnu_dev_major (unsigned long long int __dev)
     ;

extern unsigned int gnu_dev_minor (unsigned long long int __dev)
     ;

extern unsigned long long int gnu_dev_makedev (unsigned int __major,
            unsigned int __minor)
     ;
# 224 "/usr/include/sys/types.h" 2 3 4
# 235 "/usr/include/sys/types.h" 3 4
typedef __blkcnt_t blkcnt_t;



typedef __fsblkcnt_t fsblkcnt_t;



typedef __fsfilcnt_t fsfilcnt_t;
# 270 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
# 23 "/usr/include/bits/pthreadtypes.h" 3 4
# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 24 "/usr/include/bits/pthreadtypes.h" 2 3 4
# 50 "/usr/include/bits/pthreadtypes.h" 3 4
typedef unsigned long int pthread_t;


typedef union
{
  char __size[56];
  long int __align;
} pthread_attr_t;



typedef struct __pthread_internal_list
{
  struct __pthread_internal_list *__prev;
  struct __pthread_internal_list *__next;
} __pthread_list_t;
# 76 "/usr/include/bits/pthreadtypes.h" 3 4
typedef union
{
  struct __pthread_mutex_s
  {
    int __lock;
    unsigned int __count;
    int __owner;

    unsigned int __nusers;



    int __kind;

    int __spins;
    __pthread_list_t __list;
# 101 "/usr/include/bits/pthreadtypes.h" 3 4
  } __data;
  char __size[40];
  long int __align;
} pthread_mutex_t;

typedef union
{
  char __size[4];
  int __align;
} pthread_mutexattr_t;




typedef union
{
  struct
  {
    int __lock;
    unsigned int __futex;
    unsigned long long int __total_seq;
    unsigned long long int __wakeup_seq;
    unsigned long long int __woken_seq;
    void *__mutex;
    unsigned int __nwaiters;
    unsigned int __broadcast_seq;
  } __data;
  char __size[48];
  long long int __align;
} pthread_cond_t;

typedef union
{
  char __size[4];
  int __align;
} pthread_condattr_t;



typedef unsigned int pthread_key_t;



typedef int pthread_once_t;





typedef union
{

  struct
  {
    int __lock;
    unsigned int __nr_readers;
    unsigned int __readers_wakeup;
    unsigned int __writer_wakeup;
    unsigned int __nr_readers_queued;
    unsigned int __nr_writers_queued;
    int __writer;
    int __shared;
    unsigned long int __pad1;
    unsigned long int __pad2;


    unsigned int __flags;
  } __data;
# 187 "/usr/include/bits/pthreadtypes.h" 3 4
  char __size[56];
  long int __align;
} pthread_rwlock_t;

typedef union
{
  char __size[8];
  long int __align;
} pthread_rwlockattr_t;





typedef volatile int pthread_spinlock_t;




typedef union
{
  char __size[32];
  long int __align;
} pthread_barrier_t;

typedef union
{
  char __size[4];
  int __align;
} pthread_barrierattr_t;
# 271 "/usr/include/sys/types.h" 2 3 4



# 321 "/usr/include/stdlib.h" 2 3 4






extern long int random (void) ;


extern void srandom (unsigned int __seed) ;





extern char *initstate (unsigned int __seed, char *__statebuf,
   size_t __statelen) ;



extern char *setstate (char *__statebuf) ;







struct random_data
  {
    int32_t *fptr;
    int32_t *rptr;
    int32_t *state;
    int rand_type;
    int rand_deg;
    int rand_sep;
    int32_t *end_ptr;
  };

extern int random_r (struct random_data * __buf,
       int32_t * __result) ;

extern int srandom_r (unsigned int __seed, struct random_data *__buf)
     ;

extern int initstate_r (unsigned int __seed, char * __statebuf,
   size_t __statelen,
   struct random_data * __buf)
     ;

extern int setstate_r (char * __statebuf,
         struct random_data * __buf)
     ;






extern int rand (void) ;

extern void srand (unsigned int __seed) ;




extern int rand_r (unsigned int *__seed) ;







extern double drand48 (void) ;
extern double erand48 (unsigned short int __xsubi[3]) ;


extern long int lrand48 (void) ;
extern long int nrand48 (unsigned short int __xsubi[3])
     ;


extern long int mrand48 (void) ;
extern long int jrand48 (unsigned short int __xsubi[3])
     ;


extern void srand48 (long int __seedval) ;
extern unsigned short int *seed48 (unsigned short int __seed16v[3])
     ;
extern void lcong48 (unsigned short int __param[7]) ;





struct drand48_data
  {
    unsigned short int __x[3];
    unsigned short int __old_x[3];
    unsigned short int __c;
    unsigned short int __init;
    unsigned long long int __a;
  };


extern int drand48_r (struct drand48_data * __buffer,
        double * __result) ;
extern int erand48_r (unsigned short int __xsubi[3],
        struct drand48_data * __buffer,
        double * __result) ;


extern int lrand48_r (struct drand48_data * __buffer,
        long int * __result)
     ;
extern int nrand48_r (unsigned short int __xsubi[3],
        struct drand48_data * __buffer,
        long int * __result)
     ;


extern int mrand48_r (struct drand48_data * __buffer,
        long int * __result)
     ;
extern int jrand48_r (unsigned short int __xsubi[3],
        struct drand48_data * __buffer,
        long int * __result)
     ;


extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
     ;

extern int seed48_r (unsigned short int __seed16v[3],
       struct drand48_data *__buffer) ;

extern int lcong48_r (unsigned short int __param[7],
        struct drand48_data *__buffer)
     ;









extern void *malloc (size_t __size) ;

extern void *calloc (size_t __nmemb, size_t __size)
     ;










extern void *realloc (void *__ptr, size_t __size)
     ;

extern void free (void *__ptr) ;




extern void cfree (void *__ptr) ;



# 1 "/usr/include/alloca.h" 1 3 4
# 25 "/usr/include/alloca.h" 3 4
# 1 "/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stddef.h" 1 3 4
# 26 "/usr/include/alloca.h" 2 3 4







extern void *alloca (size_t __size) ;






# 498 "/usr/include/stdlib.h" 2 3 4




extern void *valloc (size_t __size) ;




extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
     ;




extern void abort (void) ;



extern int atexit (void (*__func) (void)) ;





extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
     ;






extern void exit (int __status) ;

# 543 "/usr/include/stdlib.h" 3 4


extern char *getenv (const char *__name) ;




extern char *__secure_getenv (const char *__name)
     ;





extern int putenv (char *__string) ;





extern int setenv (const char *__name, const char *__value, int __replace)
     ;


extern int unsetenv (const char *__name) ;






extern int clearenv (void) ;
# 583 "/usr/include/stdlib.h" 3 4
extern char *mktemp (char *__template) ;
# 594 "/usr/include/stdlib.h" 3 4
extern int mkstemp (char *__template) ;
# 614 "/usr/include/stdlib.h" 3 4
extern char *mkdtemp (char *__template) ;
# 640 "/usr/include/stdlib.h" 3 4





extern int system (const char *__command) ;

# 662 "/usr/include/stdlib.h" 3 4
extern char *realpath (const char * __name,
         char * __resolved) ;






typedef int (*__compar_fn_t) (const void *, const void *);
# 680 "/usr/include/stdlib.h" 3 4



extern void *bsearch (const void *__key, const void *__base,
        size_t __nmemb, size_t __size, __compar_fn_t __compar)
     ;



extern void qsort (void *__base, size_t __nmemb, size_t __size,
     __compar_fn_t __compar) ;
# 699 "/usr/include/stdlib.h" 3 4
extern int abs (int __x) ;
extern long int labs (long int __x) ;












extern div_t div (int __numer, int __denom)
     ;
extern ldiv_t ldiv (long int __numer, long int __denom)
     ;

# 735 "/usr/include/stdlib.h" 3 4
extern char *ecvt (double __value, int __ndigit, int * __decpt,
     int * __sign) ;




extern char *fcvt (double __value, int __ndigit, int * __decpt,
     int * __sign) ;




extern char *gcvt (double __value, int __ndigit, char *__buf)
     ;




extern char *qecvt (long double __value, int __ndigit,
      int * __decpt, int * __sign)
     ;
extern char *qfcvt (long double __value, int __ndigit,
      int * __decpt, int * __sign)
     ;
extern char *qgcvt (long double __value, int __ndigit, char *__buf)
     ;




extern int ecvt_r (double __value, int __ndigit, int * __decpt,
     int * __sign, char * __buf,
     size_t __len) ;
extern int fcvt_r (double __value, int __ndigit, int * __decpt,
     int * __sign, char * __buf,
     size_t __len) ;

extern int qecvt_r (long double __value, int __ndigit,
      int * __decpt, int * __sign,
      char * __buf, size_t __len)
     ;
extern int qfcvt_r (long double __value, int __ndigit,
      int * __decpt, int * __sign,
      char * __buf, size_t __len)
     ;







extern int mblen (const char *__s, size_t __n) ;


extern int mbtowc (wchar_t * __pwc,
     const char * __s, size_t __n) ;


extern int wctomb (char *__s, wchar_t __wchar) ;



extern size_t mbstowcs (wchar_t * __pwcs,
   const char * __s, size_t __n) ;

extern size_t wcstombs (char * __s,
   const wchar_t * __pwcs, size_t __n)
     ;








extern int rpmatch (const char *__response) ;
# 840 "/usr/include/stdlib.h" 3 4
extern int posix_openpt (int __oflag) ;
# 875 "/usr/include/stdlib.h" 3 4
extern int getloadavg (double __loadavg[], int __nelem)
     ;
# 891 "/usr/include/stdlib.h" 3 4

# 29 "/usr/include/fftw.h" 2 3 4
# 46 "/usr/include/fftw.h" 3 4
typedef double fftw_real;





typedef struct {
     fftw_real re, im;
} fftw_complex;




typedef enum {
     FFTW_FORWARD = -1, FFTW_BACKWARD = 1
} fftw_direction;


typedef fftw_complex FFTW_COMPLEX;
typedef fftw_real FFTW_REAL;
# 81 "/usr/include/fftw.h" 3 4
typedef enum {
     FFTW_SUCCESS = 0, FFTW_FAILURE = -1
} fftw_status;




typedef void (fftw_notw_codelet)
     (const fftw_complex *, fftw_complex *, int, int);
typedef void (fftw_twiddle_codelet)
     (fftw_complex *, const fftw_complex *, int,
      int, int);
typedef void (fftw_generic_codelet)
     (fftw_complex *, const fftw_complex *, int,
      int, int, int);
typedef void (fftw_real2hc_codelet)
     (const fftw_real *, fftw_real *, fftw_real *,
      int, int, int);
typedef void (fftw_hc2real_codelet)
     (const fftw_real *, const fftw_real *,
      fftw_real *, int, int, int);
typedef void (fftw_hc2hc_codelet)
     (fftw_real *, const fftw_complex *,
      int, int, int);
typedef void (fftw_rgeneric_codelet)
     (fftw_real *, const fftw_complex *, int,
      int, int, int);
# 116 "/usr/include/fftw.h" 3 4
enum fftw_node_type {
     FFTW_NOTW, FFTW_TWIDDLE, FFTW_GENERIC, FFTW_RADER,
     FFTW_REAL2HC, FFTW_HC2REAL, FFTW_HC2HC, FFTW_RGENERIC
};


typedef struct {
     const char *name;
     void (*codelet) ();
     int size;
     fftw_direction dir;
     enum fftw_node_type type;
     int signature;
     int ntwiddle;
     const int *twiddle_order;




} fftw_codelet_desc;
# 151 "/usr/include/fftw.h" 3 4
extern const char * fftw_version;
# 166 "/usr/include/fftw.h" 3 4
typedef struct fftw_twiddle_struct {
     int n;
     const fftw_codelet_desc *cdesc;
     fftw_complex *twarray;
     struct fftw_twiddle_struct *next;
     int refcnt;
} fftw_twiddle;

typedef struct fftw_rader_data_struct {
     struct fftw_plan_struct *plan;
     fftw_complex *omega;
     int g, ginv;
     int p, flags, refcount;
     struct fftw_rader_data_struct *next;
     fftw_codelet_desc *cdesc;
} fftw_rader_data;

typedef void (fftw_rader_codelet)
     (fftw_complex *, const fftw_complex *, int,
      int, int, fftw_rader_data *);


typedef struct fftw_plan_node_struct {
     enum fftw_node_type type;

     union {

   struct {
        int size;
        fftw_notw_codelet *codelet;
        const fftw_codelet_desc *codelet_desc;
   } notw;


   struct {
        int size;
        fftw_twiddle_codelet *codelet;
        fftw_twiddle *tw;
        struct fftw_plan_node_struct *recurse;
        const fftw_codelet_desc *codelet_desc;
   } twiddle;


   struct {
        int size;
        fftw_generic_codelet *codelet;
        fftw_twiddle *tw;
        struct fftw_plan_node_struct *recurse;
   } generic;


   struct {
        int size;
        fftw_rader_codelet *codelet;
        fftw_rader_data *rader_data;
        fftw_twiddle *tw;
        struct fftw_plan_node_struct *recurse;
   } rader;


   struct {
        int size;
        fftw_real2hc_codelet *codelet;
        const fftw_codelet_desc *codelet_desc;
   } real2hc;


   struct {
        int size;
        fftw_hc2real_codelet *codelet;
        const fftw_codelet_desc *codelet_desc;
   } hc2real;


   struct {
        int size;
        fftw_direction dir;
        fftw_hc2hc_codelet *codelet;
        fftw_twiddle *tw;
        struct fftw_plan_node_struct *recurse;
        const fftw_codelet_desc *codelet_desc;
   } hc2hc;


   struct {
        int size;
        fftw_direction dir;
        fftw_rgeneric_codelet *codelet;
        fftw_twiddle *tw;
        struct fftw_plan_node_struct *recurse;
   } rgeneric;
     } nodeu;

     int refcnt;
} fftw_plan_node;

typedef enum {
     FFTW_NORMAL_RECURSE = 0,
     FFTW_VECTOR_RECURSE = 1
} fftw_recurse_kind;

struct fftw_plan_struct {
     int n;
     int refcnt;
     fftw_direction dir;
     int flags;
     int wisdom_signature;
     enum fftw_node_type wisdom_type;
     struct fftw_plan_struct *next;
     fftw_plan_node *root;
     double cost;
     fftw_recurse_kind recurse_kind;
     int vector_size;
};

typedef struct fftw_plan_struct *fftw_plan;
# 301 "/usr/include/fftw.h" 3 4
extern fftw_plan fftw_create_plan_specific(int n, fftw_direction dir,
        int flags,
        fftw_complex *in, int istride,
      fftw_complex *out, int ostride);

extern fftw_plan fftw_create_plan(int n, fftw_direction dir, int flags);
extern void fftw_print_plan(fftw_plan plan);
extern void fftw_destroy_plan(fftw_plan plan);
extern void fftw(fftw_plan plan, int howmany, fftw_complex *in, int istride,
   int idist, fftw_complex *out, int ostride, int odist);
extern void fftw_one(fftw_plan plan, fftw_complex *in, fftw_complex *out);
extern void fftw_die(const char *s);
extern void *fftw_malloc(size_t n);
extern void fftw_free(void *p);
extern void fftw_check_memory_leaks(void);
extern void fftw_print_max_memory_usage(void);

typedef void *(*fftw_malloc_type_function) (size_t n);
typedef void (*fftw_free_type_function) (void *p);
typedef void (*fftw_die_type_function) (const char *errString);
extern fftw_malloc_type_function fftw_malloc_hook;
extern fftw_free_type_function fftw_free_hook;
extern fftw_die_type_function fftw_die_hook;

extern size_t fftw_sizeof_fftw_real(void);







extern void fftw_forget_wisdom(void);
extern void fftw_export_wisdom(void (*emitter) (char c, void *), void *data);
extern fftw_status fftw_import_wisdom(int (*g) (void *), void *data);
extern void fftw_export_wisdom_to_file(FILE *output_file);
extern fftw_status fftw_import_wisdom_from_file(FILE *input_file);
extern char *fftw_export_wisdom_to_string(void);
extern fftw_status fftw_import_wisdom_from_string(const char *input_string);






extern void fftw_fprint_plan(FILE *f, fftw_plan plan);




typedef struct {
     int is_in_place;

     int rank;



     int *n;



     fftw_direction dir;

     int *n_before;


     int *n_after;

     fftw_plan *plans;

     int nbuffers, nwork;
     fftw_complex *work;




} fftwnd_data;

typedef fftwnd_data *fftwnd_plan;


extern fftwnd_plan fftw2d_create_plan(int nx, int ny, fftw_direction dir,
          int flags);
extern fftwnd_plan fftw3d_create_plan(int nx, int ny, int nz,
          fftw_direction dir, int flags);
extern fftwnd_plan fftwnd_create_plan(int rank, const int *n,
          fftw_direction dir,
          int flags);

extern fftwnd_plan fftw2d_create_plan_specific(int nx, int ny,
            fftw_direction dir,
            int flags,
        fftw_complex *in, int istride,
      fftw_complex *out, int ostride);
extern fftwnd_plan fftw3d_create_plan_specific(int nx, int ny, int nz,
        fftw_direction dir, int flags,
        fftw_complex *in, int istride,
      fftw_complex *out, int ostride);
extern fftwnd_plan fftwnd_create_plan_specific(int rank, const int *n,
            fftw_direction dir,
            int flags,
        fftw_complex *in, int istride,
      fftw_complex *out, int ostride);


extern void fftwnd_destroy_plan(fftwnd_plan plan);


extern void fftwnd_fprint_plan(FILE *f, fftwnd_plan p);
extern void fftwnd_print_plan(fftwnd_plan p);



extern void fftwnd(fftwnd_plan plan, int howmany,
     fftw_complex *in, int istride, int idist,
     fftw_complex *out, int ostride, int odist);
extern void fftwnd_one(fftwnd_plan p, fftw_complex *in, fftw_complex *out);
# 28 "main.h" 2






struct dat
{
   double k;
};

struct FFT_Frame
{
   fftw_plan plan;
   fftw_plan reverse_plan;
   short * prewin_buffer_data_1;
   short * prewin_buffer_data_2;
   short * buffer_data_1;
   short * buffer_data_2;
   double * fft_returned_1;
   double * fft_returned_2;
   double * rfft_returned_1;
   float volume_pink;
   char pink_muted;

   short * delay;
   int delay_size;
   char find_delay;
   char find_impulse;
};
static gint
MyGTKFunction (struct FFT_Frame * frame_data);
# 24 "gui.h" 2
# 38 "gui.h"
gboolean gui_idle_func (struct FFT_Frame * data);

gboolean create_gui (struct FFT_Frame * data);
# 44 "gui.c" 2
# 1 "testfft.h" 1
# 24 "testfft.h"
# 1 "main.h" 1
# 25 "testfft.h" 2
# 39 "testfft.h"
struct AUDIO_SESSION
{
   fftw_plan plan;
   short * buffer_data;
   double * fft_returned;
};

int fft_capture(struct FFT_Frame * session);

int impulse_capture(struct FFT_Frame * session);
# 45 "gui.c" 2
# 1 "config.h" 1
# 46 "gui.c" 2




static GdkPixmap *measured_pixmap = ((void *)0);
static GdkPixmap *reference_pixmap = ((void *)0);
static GtkWidget *measured_draw;
static GtkWidget *reference_draw;

static GtkDataboxGraph **graph;
static GtkDataboxGraph *graph_impulse;
static GtkWidget *box;
static GtkWidget *impulse_box;
static GtkWidget *about_me_window = ((void *)0);
static GtkWidget *about_ok = ((void *)0);
static GtkWidget *delay_window = ((void *)0);
static GtkWidget *impulse_window = ((void *)0);
static GtkWidget *volume_pink_gui = ((void *)0);
static GtkWidget *pinknoise_button = ((void *)0);
static GtkWidget *transfer_function_toggle = ((void *)0);
static GtkWidget *buffer_button[5] = { ((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0) };
static GtkWidget *buffer_menu[5] = { ((void *)0), ((void *)0), ((void *)0), ((void *)0), ((void *)0) };
static gfloat volume_pink_value = 0;
static gfloat *guiX = ((void *)0);
static gfloat *guiY = ((void *)0);
static gfloat *gui_impulse_Y = ((void *)0);
static gfloat *gui_impulse_X = ((void *)0);
static gfloat guiYBuf[5][8192/2];
static gfloat guiYBufAvgHold[8192/2];
static char* save_name = ((void *)0);
static char * home_string, *file_path1, *file_path2;

static char pinknoise_muted = 0;
static char find_delay = 0;
static char update_delay = 0;
static char buffer[5] = {2, 2, 2, 2, 2};
static gfloat avg_gain = 0;
static int buffer_last_clicked;
static GtkWidget *bkg_dialog;

static GtkWidget *cb;
static GtkWidget *save_now;
static GtkWidget *save_as;
static GtkWidget *open_menuitem;

static gint avg_index = 0;
static gchar tf = 1;
static gfloat avgY[8192/2][32];

static gint gui_idle = 0;
static gfloat gui_frequency = 3. * G_PI / 2.;
static GtkWidget *gui_label = ((void *)0);
static GtkWidget *gui_db_label = ((void *)0);
static GtkWidget *gui_status_delay_label = ((void *)0);
static GtkWidget *gui_sb_label = ((void *)0);
static GtkWidget *gui_sb = ((void *)0);
static GtkWidget *open_dialog = ((void *)0);
static GtkWidget *save_as_dialog = ((void *)0);
static guint gui_counter = 0;

static GdkColor background_color;
static GdkColor grid_color;
static GdkColor trace_transfer_color;
static GdkColor trace_impulse_color;
static GdkColor line_color[5] = {

      {0, 16384 ,16384 ,65535 },
      {0, 0 ,65535 ,0 },
      {0, 65535 ,0 ,0 },
      {0, 65535 ,16384 ,65535 },
      {0, 65535 ,65535 ,65535 }
   };
# 161 "gui.c"
gboolean
gui_idle_func (struct FFT_Frame *data)
{
   gfloat tmp[8192/2];
   gint smoothing;
   gint index;
   gint i;
   gint j, k;
   gint max;
   gfloat temp, max_x, min_x, max_y, min_y, tmp_spin;
   gchar * label = ((void *)0);
   GdkColor myColor1 = { 0, 0x3333, 0x3333, 0x3333 };
   GdkColor myColor2 = { 0, 0x3333, 0x3333, 0x3333 };
   GdkGC *gc1 = ((void *)0);
   GdkGC *gc2 = ((void *)0);

   if (!(G_TYPE_CHECK_INSTANCE_TYPE ((box), (gtk_databox_get_type ()))))
   {
      fprintf(stderr, "Box not a gtk_databox\n");
      return FALSE;
   }
   gc1 = gdk_gc_new(measured_draw->window);
   gc2 = gdk_gc_new(reference_draw->window);

   data->pink_muted = pinknoise_muted;

   data->volume_pink = volume_pink_value;
   avg_index++;
   if (avg_index == 32) avg_index = 0;
   min_y = 0.0;
   max_y = 0.0;

   if (data->find_impulse == 2)
   {

      for (i = 0; i < 8192; i++)
      {
         index = i;
         temp = (gfloat)data->rfft_returned_1[index] / 32767.0;
         gui_impulse_Y[i] = temp;

         if (temp > max_y)
            max_y = temp;
         if (temp < min_y)
            min_y = temp;
      }
   }
   else
   {
      for (i = 0; i < 8192/2; i++)
      {
         index = i;
         if (tf)
            avgY[i][avg_index] = (0.0 + 20.0 * log10((gfloat)data->fft_returned_1[index] / (gfloat)data->fft_returned_2[index]));

         else
            avgY[i][avg_index] = (0.0 + 20.0 * log10((gfloat)data->fft_returned_1[index]));


         tmp[i] = 0;
         for (k = 0; k < 32; k++)
         {
            tmp[i] += avgY[i][k];
         }
         tmp[i] /= 32;


      }
   }

   for (i = 0; i < 8192/2; i++)
   {
      smoothing = (int)pow(10, (((float)i) / ((float)(8192 / 4)) + 1.0));
      smoothing = smoothing > 0 ? smoothing : 0;


      guiY[i] = tmp[i];
      for (j = 1; j <= smoothing; j++)
      {
         guiY[i] += tmp[(i-j)>=0?(i-j):0];
         guiY[i] += tmp[(i+j)<8192/2?(i+j):(8192/2 -1)];
      }
      guiY[i] /= (smoothing * 2.0 + 1.0);
   }
   guiY[0] = tmp[3];
   guiY[1] = tmp[3];
   guiY[2] = tmp[4];
   guiY[8192/2 -1] = tmp[8192/2 -1];
   guiY[8192/2 -2] = tmp[8192/2 -2];

   if (data->find_impulse == 2)
   {
      min_x = 0.0;
      max_x = ((gfloat) 8192) / 44100/2;
      gtk_databox_set_total_limits ((G_TYPE_CHECK_INSTANCE_CAST ((impulse_box), (gtk_databox_get_type ()), GtkDatabox)), min_x, max_x, max_y, min_y);

      gtk_widget_queue_draw(GTK_WIDGET (impulse_box));
      data->find_impulse = 0;
   }
   if (data->find_delay == 1)
   {
      label = g_strdup_printf ( "<b>Finding Delay.....</b>" );
      gtk_label_set_markup (GTK_LABEL (gui_sb_label), label);
      g_free((gpointer)label);
   }

   if (data->find_delay == 2)
   {
      label = g_strdup_printf ( "<b> Found:  %g secs </b>", (float) data->delay_size * (1.0 / (float)44100) );
      gtk_label_set_markup (GTK_LABEL (gui_sb_label), label);
      g_free((gpointer)label);
      data->find_delay = 0;
   }
   if (update_delay)
   {
      tmp_spin = gtk_spin_button_get_value_as_float(GTK_SPIN_BUTTON (gui_sb));
      data->delay_size = (int) (((gfloat)tmp_spin) * (gfloat) 44100);
      update_delay = 0;
      gtk_widget_hide_all (delay_window);
   }
   label = g_strdup_printf ( "Current Delay %g msecs", (float) data->delay_size * (1.0 / (float)44100) * 1000.0 );
   gtk_label_set_text (GTK_LABEL (gui_status_delay_label), label);
   g_free((gpointer)label);



   max = 0;
   for (k = 8192 - 2000; k < 8192; k++)
   {
      if (max < data->buffer_data_1[k])
         max = data->buffer_data_1[k];
   }

   if (max > 20000)
   {
      myColor1.red = 0xFFFF;
      myColor1.green = 0x3333;
      myColor1.blue = 0x3333;
   }
   else if (max > 5000)
   {
      myColor1.red = 0xCCCC;
      myColor1.green = 0xFFFF;
      myColor1.blue = 0x3333;
   }
   else if (max > 1000)
   {
      myColor1.red = 0x3333;
      myColor1.green = 0xDDDD;
      myColor1.blue = 0x3333;
   }
   else if (max > 40)
   {
      myColor1.red = 0x3333;
      myColor1.green = 0x8888;
      myColor1.blue = 0x3333;
   }

   gdk_gc_set_rgb_fg_color (gc1, &myColor1);
   gdk_draw_rectangle (measured_pixmap, gc1, TRUE, 7, 7, 16, 16);
   gdk_draw_drawable (measured_draw->window, measured_draw->style->fg_gc[GTK_WIDGET_STATE (measured_draw)], measured_pixmap, 5, 5, 5, 5, 20, 20);

   max = 0;
   for (k = 8192 - 2000; k < 8192; k++)
   {
      if (max < data->buffer_data_2[k])
         max = data->buffer_data_2[k];
   }

   if (max > 20000)
   {
      myColor2.red = 0xFFFF;
      myColor2.green = 0x3333;
      myColor2.blue = 0x3333;
   }
   else if (max > 5000)
   {
      myColor2.red = 0xCCCC;
      myColor2.green = 0xFFFF;
      myColor2.blue = 0x3333;
   }
   else if (max > 1000)
   {
      myColor2.red = 0x3333;
      myColor2.green = 0xDDDD;
      myColor2.blue = 0x3333;
   }
   else if (max > 40)
   {
      myColor2.red = 0x3333;
      myColor2.green = 0x8888;
      myColor2.blue = 0x3333;
   }
   gdk_gc_set_rgb_fg_color (gc2, &myColor2);



   gdk_draw_rectangle (reference_pixmap, gc2, TRUE, 7, 7, 16, 16);
   gdk_draw_drawable (reference_draw->window, reference_draw->style->fg_gc[GTK_WIDGET_STATE (reference_draw)], reference_pixmap, 5, 5, 5, 5, 20, 20);

   gtk_widget_queue_draw(GTK_WIDGET (box));
   g_object_unref(gc1);
   g_object_unref(gc2);
   return TRUE;
}

static void
delay_custom_cb(GtkWidget *widget)
{
   update_delay = 1;
}
static void
pinknoise_mute(GtkWidget *widget)
{
   pinknoise_muted ^= 1;
}
static void
volume_gui(GtkWidget *widget)
{
   volume_pink_value = gtk_spin_button_get_value_as_float(GTK_SPIN_BUTTON (volume_pink_gui));
}
static void
delay_keep_cb(GtkWidget *widget)
{
   gtk_widget_hide_all (delay_window);
}
static void
about_ok_cb(GtkWidget *widget)
{
   gtk_widget_hide_all (about_me_window);
}
static void
about_me_cb(GtkWidget *widget)
{
   gtk_widget_show_all (about_me_window);
   gtk_window_present (about_me_window);
}

static void
transfer_fxn_cb(GtkWidget *widget)
{
   tf = (tf == 0);
}

static void
transfer_function_toggled_cb(GtkWidget *widget)
{

   gtk_toggle_button_set_active(transfer_function_toggle, !gtk_toggle_button_get_active(transfer_function_toggle));
}


static void
capture_cb(GtkWidget *widget, GtkWidget *box)
{
   int i, k, write_output;
   float avg_avg = 0;
   FILE *file_handle;
   gint tmp_array[1];

   if (buffer[buffer_last_clicked] == 1)
   {
      if (buffer_last_clicked == 5 - 1)
      {
         for (k = 0; k < 8192/2; k++)
         {
            guiYBuf[5 -1][k] = 0.0;
            for (i = 0; i < 5 - 1; i++)
               guiYBuf[5 -1][k] += guiYBuf[i][k];
            guiYBuf[5 -1][k] /= 4.0;
            avg_avg += guiYBuf[5 -1][k] * (1.0 / ((float) 8192/2));

         }


         for (k = 0; k < 8192/2; k++)
         {
            guiYBufAvgHold[k] = 0.0 - guiYBuf[5 -1][k] + (avg_avg * 2);
            guiYBuf[5 -1][k] = avg_gain + guiYBufAvgHold[k];

         }

      }
      else
         for (k = 0; k < 8192/2; k++)
            guiYBuf[buffer_last_clicked][k] = guiY[k];
   }
   write_output = mkdir(file_path1, 0770);
   if ( ((write_output == -1) && ((*__errno_location ()) == 17)) || (write_output == 0) )
      write_output = 1;
   if ( write_output == 1)
   {
      file_handle = fopen(file_path2, "wb");
      if (file_handle == ((void *)0))
      {
         write_output = 0;
         fprintf(stderr, "Could not open file %s, permissions issue?\n", file_path2);
      }
   }
   if (write_output == 1)
   {
      tmp_array[0] = 8192/2;
      fprintf(stderr, "Writing %d elements per buffer to %s\n", tmp_array[0], file_path2);
      fwrite (tmp_array, sizeof(gint), 1, file_handle );
      for (i = 0; i < 5; i++)
         fwrite (guiYBuf[i], sizeof(gfloat), 8192/2, file_handle );
      fclose(file_handle);
   }
}


static void gain_cb( GtkWidget *widget, GtkSpinButton *spin )
{
   int k;
   avg_gain = gtk_spin_button_get_value_as_float (spin);
   for (k = 0; k < 8192/2; k++)
      guiYBuf[5 - 1][k] = avg_gain + guiYBufAvgHold[k];
}

static void
buffer_button_cb(GtkWidget *widget, gpointer p)
{
   GtkWidget *bufferwid;
   GtkWidget *bufferwid_m;
   gint i;
   i = GPOINTER_TO_INT(p);
   bufferwid = buffer_button[i];
   bufferwid_m = buffer_menu[i];
   if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (bufferwid)))
   {
      if (buffer[i] != 1)
      {
         gtk_databox_graph_add ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), graph[i+1]);
         buffer[i] = 1;
         gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(bufferwid_m), TRUE);
      }
   }
   else
   {
      if (buffer[i] == 1)
      {
         gtk_databox_graph_remove ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), graph[i+1]);
         buffer[i] = 0;
         gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(bufferwid_m), FALSE);
      }
   }
   buffer_last_clicked = i;
}

static void
buffer_menu_cb(GtkWidget *widget, gpointer p)
{
   GtkWidget *bufferwid;
   GtkWidget *bufferwid_m;
   gint i;
   i = GPOINTER_TO_INT(p);
   bufferwid = buffer_button[i];
   bufferwid_m = buffer_menu[i];

   if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (bufferwid_m)))
   {
      if (buffer[i] != 1)
      {
         gtk_databox_graph_add ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), graph[i+1]);
         buffer[i] = 1;
         gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (bufferwid), TRUE);
      }
   }
   else
   {
      if (buffer[i] == 1)
      {
         gtk_databox_graph_remove ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), graph[i+1]);
         buffer[i] = 0;
         gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (bufferwid), FALSE);
      }
   }
   buffer_last_clicked = i;
}

static void
impulse_hide(GtkWidget *widget, struct FFT_Frame * data)
{

   printf("Delete event\n");
   gtk_widget_hide_all (impulse_window);
}

static void
delay_hide(GtkWidget *widget, struct FFT_Frame * data)
{

   gtk_widget_hide_all (delay_window);
}

static void
cleanup_gui(GtkWidget *widget, struct FFT_Frame * data)
{
   gtk_widget_destroy (GTK_WIDGET(open_dialog));
   gtk_widget_destroy (GTK_WIDGET(save_as_dialog));

   gtk_main_quit();
   printf("GUI is done with cleanup\n");
}

void
open_file(char *fn)
{
   int k;
   FILE *file_handle;
   gint read_plot_pts[1];
      printf("%s is being opened\n", fn );
      file_handle = fopen( fn, "rb");
      if (file_handle != ((void *)0))
      {
         fread (read_plot_pts, sizeof(gint), 1, file_handle );
         if (read_plot_pts[0] == 8192/2)
         {
            for (k = 0; k < 5; k++)
               fread (guiYBuf[k], sizeof(gfloat), 8192/2, file_handle );
            save_name = fn;
         }
         else
            fprintf (stderr, "PLOT_PTS is different from PLOT_PTS last captured size, N has been changed from N=%d * 2 since your last capture.\n", read_plot_pts );
      }
      else
         fprintf (stderr, "Couldn't open file %s for reading\n", save_name);
      fclose(file_handle);
}

static void
open_cb(GtkWidget *widget, char *data)
{

   GtkFileFilter *file_filter= ((void *)0);
   gint result;

   if (open_dialog != ((void *)0))
   {
      gtk_window_present (open_dialog);
      return(0);
   }

   open_dialog = gtk_file_chooser_dialog_new ("Open Capture Buffers From", GTK_WINDOW(bkg_dialog), GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, ((void *)0));
   if(save_name)
      gtk_file_chooser_select_filename(GTK_FILE_CHOOSER(open_dialog),save_name);
   else
      gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(open_dialog),home_string);
   file_filter = gtk_file_filter_new ();
   gtk_file_filter_add_pattern (file_filter, "*.brp");
   gtk_file_filter_set_name(file_filter, "BRP-PACU files");
   gtk_file_chooser_set_filter (GTK_FILE_CHOOSER(open_dialog), GTK_FILE_FILTER(file_filter));

   gtk_widget_set_sensitive(save_as, 0);
   gtk_widget_set_sensitive(save_now, 0);
   result = gtk_dialog_run (GTK_DIALOG (open_dialog));
   switch (result)
   {
   case GTK_RESPONSE_ACCEPT:
      open_file(gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(open_dialog)));
      break;
   default:
      break;
   }
   gtk_widget_destroy (open_dialog);
   gtk_widget_set_sensitive(save_as, 1);
   gtk_widget_set_sensitive(save_now, 1);
   open_dialog = ((void *)0);
   return(0);
}

static void
save_file(char* fn)
{
   int k;
   gint tmp_array[1];
   FILE *file_handle;
   printf("%s is being saved\n", fn);




   file_handle = fopen(fn, "wb");
   if (file_handle != ((void *)0))
   {
      tmp_array[0] = 8192/2;
      fwrite (tmp_array, sizeof(gint), 1, file_handle );
      for (k = 0; k < 5; k++)
         fwrite (guiYBuf[k], sizeof(gfloat), 8192/2, file_handle );
      save_name = fn;
      fclose(file_handle);
   }
   else
      fprintf (stderr, "Couldn't open file %s for writing.  Usually this is a permissions issue\n", save_name);

}

static void
save_as_cb(GtkWidget *widget, char *data)
{

   int k;
   gint result;
   GtkFileFilter *file_filter= ((void *)0);

   if (save_as_dialog != ((void *)0))
   {
      gtk_window_present (save_as_dialog);
      return(0);
   }

   save_as_dialog = gtk_file_chooser_dialog_new ("Save Capture Buffers As (*.brp recommended)", GTK_WINDOW(bkg_dialog), GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE_AS, GTK_RESPONSE_ACCEPT, ((void *)0));

   if(!gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(save_as_dialog),save_name))
      gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(save_as_dialog),home_string);
   gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(save_as_dialog),
       save_name==((void *)0)?"Untitled.brp":strrchr(save_name,'/')+1);

   file_filter = gtk_file_filter_new ();
   gtk_file_filter_add_pattern (file_filter, "*.brp");
   gtk_file_filter_set_name(file_filter, "BRP-PACU files");
   gtk_file_chooser_set_filter (GTK_FILE_CHOOSER(save_as_dialog), GTK_FILE_FILTER(file_filter));

   gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (save_as_dialog), TRUE);

   gtk_widget_set_sensitive(open_menuitem, 0);
   result = gtk_dialog_run (GTK_DIALOG (save_as_dialog));
   switch (result)
   {
   case GTK_RESPONSE_ACCEPT:
      save_file(gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(save_as_dialog)));
      break;
   default:
      break;
   }
   gtk_widget_destroy (save_as_dialog);
   save_as_dialog = ((void *)0);
   gtk_widget_set_sensitive(open_menuitem, 1);
   return(0);
}

static void
save_now_cb(GtkWidget *widget, char *data)
{
   if (save_name == ((void *)0))
   {
      save_as_cb(widget, data);
   }
   else
      save_file(save_name);
}


static void
impulse_cb(GtkWidget *widget, struct FFT_Frame * data)
{
   gtk_widget_show_all(GTK_DIALOG(impulse_window));
   gtk_widget_show_all(GTK_DIALOG(impulse_window));
   data->find_impulse = 1;
   data->find_delay = 1;
}


static void
delay_cb(GtkWidget *widget, struct FFT_Frame * data)
{
   gtk_widget_show_all(GTK_DIALOG(delay_window));
   gtk_window_present (delay_window);

   data->find_delay = 1;
}

static void
resize_default_cb(GtkWidget *widget, GtkWidget *box )
{
   gfloat min_x, min_y, max_x, max_y;
   min_x = 30.0;
   max_x = (gfloat) 44100/2;
   min_y = -100.0;
   max_y = 100.0;
   gtk_databox_set_total_limits ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), min_x, max_x, max_y, min_y);

   gtk_widget_queue_draw(GTK_WIDGET (box));

}

static void
resize_cb(GtkWidget *widget, GtkWidget *box )
{
   gint k;
   gfloat min_x, min_y, max_x, max_y, tempY;
   min_x = 30.0;
   max_x = (gfloat) 44100/2;
   max_y = -100.0;
   min_y = 100.0;
   for (k = min_x * (gfloat)(float) ((float) 44100)/( ((float)8192)/1.0) + 10; k < 8192/2 - 10; k++)
   {
      tempY = guiY[k];
      max_y = (max_y > tempY) ? max_y : tempY;
      min_y = (min_y < tempY) ? min_y : tempY;
   }
   gtk_databox_set_total_limits ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), min_x, max_x, max_y + 10, min_y - 10);

   gtk_widget_queue_draw(GTK_WIDGET (box));

}


static gint
show_motion_notify_cb(GtkWidget *widget, GdkEventMotion *event)
{
   gfloat x;
   gfloat y;
   GtkDatabox *box_coords = (G_TYPE_CHECK_INSTANCE_CAST ((widget), (gtk_databox_get_type ()), GtkDatabox));

   x = gtk_databox_pixel_to_value_x (box_coords, event->x);
   y = gtk_databox_pixel_to_value_y (box_coords, event->y);
   gchar *label;


   label = g_strdup_printf ( "%g Hz", x);
   gtk_label_set_text (GTK_LABEL (gui_label), label);
   g_free((gpointer)label);
   label = g_strdup_printf ( "%g dB", (y) );
   gtk_label_set_text (GTK_LABEL (gui_db_label), label);
   g_free((gpointer)label);
   return FALSE;
}




static gboolean configure_event_measured( GtkWidget *widget,
      GdkEventConfigure *event )
{

   GdkGC *gc = ((void *)0);
   gc = gdk_gc_new(measured_draw->window);

   GdkColor myColor = { 0, 0x8888, 0x8888, 0x8888 };
   gdk_gc_set_rgb_fg_color (gc, &myColor);
   if (measured_pixmap)
      g_object_unref (measured_pixmap);

   measured_pixmap = gdk_pixmap_new (measured_draw->window, widget->allocation.width,
                                     widget->allocation.height, -1);
   gdk_draw_rectangle (measured_pixmap, gc, TRUE, 0, 0, widget->allocation.width,
                       widget->allocation.height);

   myColor.red = 0x3333;
   myColor.green = 0x3333;
   myColor.blue = 0x3333;
   gdk_gc_set_rgb_fg_color (gc, &myColor);

   gdk_draw_rectangle (measured_pixmap, gc, TRUE, 7, 7, 16, 16);
   printf("config\n");
   g_object_unref(gc);
   return TRUE;
}
static gboolean configure_event_reference( GtkWidget *widget,
      GdkEventConfigure *event )
{

   GdkGC *gc = ((void *)0);
   gc = gdk_gc_new(reference_draw->window);

   GdkColor myColor = { 0, 0x8888, 0x8888, 0x8888 };
   gdk_gc_set_rgb_fg_color (gc, &myColor);
   if (reference_pixmap)
      g_object_unref (reference_pixmap);

   reference_pixmap = gdk_pixmap_new (reference_draw->window, widget->allocation.width,
                                      widget->allocation.height, -1);
   gdk_draw_rectangle (reference_pixmap, gc, TRUE, 0, 0, widget->allocation.width,
                       widget->allocation.height);

   myColor.red = 0x3333;
   myColor.green = 0x3333;
   myColor.blue = 0x3333;
   gdk_gc_set_rgb_fg_color (gc, &myColor);

   gdk_draw_rectangle (reference_pixmap, gc, TRUE, 7, 7, 16, 16);
   printf("config\n");
   g_object_unref(gc);
   return TRUE;
}

gboolean
create_gui (struct FFT_Frame * data)
{
   GtkWidget *window = ((void *)0);
   GtkWidget *box_container;
   GtkWidget *box_container_impulse;

   GtkWidget *table;
   GtkWidget *table_impulse;
   GtkWidget *separator;

   GladeXML *xml = ((void *)0);
   GtkDataboxGrid *my_grid;

   FILE * file_handle;
   gint read_plot_pts[1];

   char tmp_string[] = "BRP-PACU vxx.xx.xx ";
   graph = g_new0 (GtkDataboxGraph *, 10);
   graph_impulse = g_new0 (GtkDataboxGraph, 1);
   gint k;
   gint i;
   gfloat min_x, max_x, min_y, max_y;

   min_x = 30.0;
   max_x = (gfloat) 44100/2;
   min_y = -100.0;
   max_y = 100.0;
# 890 "gui.c"
   xml = glade_xml_new ("gui.glade", ((void *)0), ((void *)0));
   if (!xml)
   {
      xml = glade_xml_new (DATADIR"/BRP_PACU/gui.glade", ((void *)0), ((void *)0));
      if (!xml)
      {
         fprintf(stderr, "Couldn't find glade file\n");
         return(FALSE);
      }
   }

   window = glade_xml_get_widget (xml, "window1");
   bkg_dialog = glade_xml_get_widget (xml, "bkg_dialog");
   about_me_window = glade_xml_get_widget (xml, "about_me_window");
   about_ok = glade_xml_get_widget (xml, "about_ok");
   delay_window = glade_xml_get_widget (xml, "delay1");
   impulse_window = glade_xml_get_widget (xml, "impulse_window");
   box_container = glade_xml_get_widget (xml, "vbox1");
   gui_label = glade_xml_get_widget (xml, "label3");
   gui_sb_label = glade_xml_get_widget (xml, "delay_label");
   gui_sb = glade_xml_get_widget (xml, "spinbutton1");
   gui_db_label = glade_xml_get_widget (xml, "label4");
   save_as = glade_xml_get_widget (xml, "save_as");
   save_now = glade_xml_get_widget (xml, "save_now");
   open_menuitem = glade_xml_get_widget (xml, "open");
   box_container_impulse = glade_xml_get_widget (xml, "vbox_impulse");
   measured_draw = glade_xml_get_widget(xml, "Measured_Draw");
   reference_draw = glade_xml_get_widget(xml, "Reference_Draw");
   gui_status_delay_label = glade_xml_get_widget (xml, "delay_status_label");
   volume_pink_gui = glade_xml_get_widget (xml, "volumebutton1");
   pinknoise_button = glade_xml_get_widget (xml, "pinknoise_button");
   transfer_function_toggle = glade_xml_get_widget (xml, "TransferFxn");
   buffer_button[0] = glade_xml_get_widget (xml, "buff0");
   buffer_button[1] = glade_xml_get_widget (xml, "buff1");
   buffer_button[2] = glade_xml_get_widget (xml, "buff2");
   buffer_button[3] = glade_xml_get_widget (xml, "buff3");
   buffer_button[4] = glade_xml_get_widget (xml, "buffAvg");
   buffer_menu[0] = glade_xml_get_widget (xml, "buff0_m");
   buffer_menu[1] = glade_xml_get_widget (xml, "buff1_m");
   buffer_menu[2] = glade_xml_get_widget (xml, "buff2_m");
   buffer_menu[3] = glade_xml_get_widget (xml, "buff3_m");
   buffer_menu[4] = glade_xml_get_widget (xml, "buffAvg_m");
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "pinknoise_button")), "clicked", G_CALLBACK (pinknoise_mute), ((void *)0));

   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "volumebutton1")), "value-changed", G_CALLBACK (volume_gui), ((void *)0));


   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "quit_ap")), "activate", G_CALLBACK (cleanup_gui), ((void *)0));
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "save_as")), "activate", G_CALLBACK (save_as_cb), ((void *)0));
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "save_now")), "activate", G_CALLBACK (save_now_cb), ((void *)0));
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "open")), "activate", G_CALLBACK (open_cb), ((void *)0));
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "about_me")), "activate", G_CALLBACK (about_me_cb), ((void *)0));
   g_signal_connect (G_OBJECT (about_me_window), "delete_event", G_CALLBACK (about_ok_cb), ((void *)0));
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "about_ok")), "clicked", G_CALLBACK (about_ok_cb), ((void *)0));
   g_signal_connect (G_OBJECT (transfer_function_toggle), "toggled", G_CALLBACK (transfer_fxn_cb), ((void *)0));
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "transfer_fxn")), "activate", G_CALLBACK (transfer_function_toggled_cb), ((void *)0));
   g_signal_connect (GTK_BUTTON (glade_xml_get_widget (xml, "find_delay")), "clicked", G_CALLBACK (delay_cb), data);
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "find_delay_m")), "activate", G_CALLBACK (delay_cb), data);
   g_signal_connect (GTK_OBJECT (window), "destroy", G_CALLBACK (cleanup_gui), ((void *)0));
   g_signal_connect (GTK_OBJECT (window), "delete_event", G_CALLBACK (cleanup_gui), ((void *)0));
   g_signal_connect (GTK_OBJECT (delay_window), "delete_event", G_CALLBACK (delay_hide), ((void *)0));
   g_signal_connect (G_OBJECT (glade_xml_get_widget(xml, "delay_keep_button")), "clicked", G_CALLBACK (delay_keep_cb), ((void *)0));
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "impulse_response")), "activate", G_CALLBACK (impulse_cb), data);
   g_signal_connect (GTK_OBJECT (impulse_window), "delete_event", G_CALLBACK (impulse_hide), ((void *)0));

   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "delay_custom_button")), "clicked", G_CALLBACK (delay_custom_cb), ((void *)0));

   gui_frequency = 0;
   gtk_widget_set_size_request (window, 1200, 650);

   sprintf(tmp_string, "BRP-PACU v%s", "2.0.7");
   gtk_window_set_title (GTK_WINDOW (window), tmp_string);
   gtk_container_set_border_width (GTK_CONTAINER (window), 0);


   gtk_widget_set_size_request (impulse_window, 900, 500);

   sprintf(tmp_string, "BRP-PACU Impulse");
   gtk_window_set_title (GTK_WINDOW (impulse_window), tmp_string);
   gtk_container_set_border_width (GTK_CONTAINER (impulse_window), 0);


   separator = gtk_hseparator_new ();
   gtk_box_pack_start (GTK_BOX (box_container), separator, FALSE, FALSE, 0);
   gtk_label_set_text (GTK_LABEL (gui_label), "0");

   gui_idle = 0;
   gui_frequency = 3. * G_PI / 2.;
   gui_counter = 0;


   gtk_databox_create_box_with_scrollbars_and_rulers (&box, &table,
         TRUE, TRUE,
         TRUE, TRUE);

   gtk_databox_create_box_with_scrollbars_and_rulers (&impulse_box, &table_impulse,
         TRUE, TRUE,
         TRUE, TRUE);

   gtk_databox_set_total_limits ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), min_x, max_x, max_y,
                                 min_y);

   min_x = 30.0;
   max_x = (gfloat) 44100/2;
   min_y = -100.0;
   max_y = 100.0;
   gtk_databox_set_total_limits ((G_TYPE_CHECK_INSTANCE_CAST ((impulse_box), (gtk_databox_get_type ()), GtkDatabox)), min_x, max_x, max_y,
                                 min_y);


   gtk_databox_set_scale_type_x ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), GTK_DATABOX_SCALE_LOG);
   gtk_databox_set_scale_type_y ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), GTK_DATABOX_SCALE_LINEAR);




   g_signal_connect (G_OBJECT (box), "motion_notify_event", G_CALLBACK (show_motion_notify_cb), ((void *)0));


   gtk_box_pack_start (GTK_BOX (box_container), table, TRUE, TRUE, 0);
   gtk_box_pack_start (GTK_BOX (box_container_impulse), table_impulse, TRUE, TRUE, 0);

   background_color.red = 8192;
   background_color.green = 8192;
   background_color.blue = 8192;

   gtk_widget_modify_bg (box, GTK_STATE_NORMAL, &background_color);

   guiX = g_new0 (gfloat, 8192/2);
   guiY = g_new0 (gfloat, 8192/2);
   gui_impulse_Y = g_new0 (gfloat, 8192);
   gui_impulse_X = g_new0 (gfloat, 8192);

   for (i = 0; i < 8192/2; i++)
   {
      gui_impulse_Y[i] = .01;
      gui_impulse_X[i] = ((gfloat)i) / ((gfloat)44100);
   }
   for (i = 0; i < 8192/2; i++)
   {
      guiX[i] = ((gfloat)i) * (gfloat)(float) ((float) 44100)/( ((float)8192)/1.0);
      for (k = 0; k < 32; k++)
         avgY[i][k] = .01;
      guiY[i] = .01;
      for (k = 0; k < 5; k++)
         guiYBuf[k][i] = 0.0;
      guiYBufAvgHold[i] = 0.0;

   }
   trace_transfer_color.red = 16384;
   trace_transfer_color.green = 65535;
   trace_transfer_color.blue = 16384;

   graph[0] = gtk_databox_lines_new (8192/2, guiX, guiY,
                                     &trace_transfer_color, 1);
   gtk_databox_graph_add ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), graph[0]);
   for (i = 0; i < 5; i++)
      graph[i+1] = gtk_databox_lines_new (8192/2, guiX, guiYBuf[i],
                                     &line_color[i], 1);
   grid_color.red = 65535;
   grid_color.green = 65535;
   grid_color.blue = 16384;
   my_grid = gtk_databox_grid_new (19, 21.5, &grid_color, 1);
   gtk_databox_graph_add ((G_TYPE_CHECK_INSTANCE_CAST ((box), (gtk_databox_get_type ()), GtkDatabox)), my_grid);

   trace_impulse_color.red = 16384;
   trace_impulse_color.green = 16384;
   trace_impulse_color.blue = 65535;
   graph_impulse = gtk_databox_lines_new (8192/2, gui_impulse_X, gui_impulse_Y,
                                          &trace_impulse_color, 1);
   gtk_databox_graph_add ((G_TYPE_CHECK_INSTANCE_CAST ((impulse_box), (gtk_databox_get_type ()), GtkDatabox)), graph_impulse);

   buffer_button[0] = glade_xml_get_widget (xml, "buff1");
   buffer_button[1] = glade_xml_get_widget (xml, "buff2");
   buffer_button[2] = glade_xml_get_widget (xml, "buff3");
   buffer_button[3] = glade_xml_get_widget (xml, "buff4");
   buffer_button[4] = glade_xml_get_widget (xml, "buffAvg");
   buffer_menu[0] = glade_xml_get_widget (xml, "buffer_1");
   buffer_menu[1] = glade_xml_get_widget (xml, "buffer_2");
   buffer_menu[2] = glade_xml_get_widget (xml, "buffer_3");
   buffer_menu[3] = glade_xml_get_widget (xml, "buffer_4");
   buffer_menu[4] = glade_xml_get_widget (xml, "bufferAvg");

   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "auto_resize")), "clicked", G_CALLBACK (resize_cb), (gpointer) box);
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "resize_default")), "clicked", G_CALLBACK (resize_default_cb), (gpointer) box);
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "auto_resize_m")), "activate", G_CALLBACK (resize_cb), (gpointer) box);
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "resize_default_m")), "activate", G_CALLBACK (resize_default_cb), (gpointer) box);
   for (i = 0; i < 5; i++)
   {
      g_signal_connect (G_OBJECT (buffer_button[i]), "clicked", G_CALLBACK (buffer_button_cb), GINT_TO_POINTER((gint) i));
      g_signal_connect (G_OBJECT (buffer_menu[i]), "activate", G_CALLBACK (buffer_menu_cb), GINT_TO_POINTER((gint) i));
   }
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "capt")), "clicked", G_CALLBACK (capture_cb), (gpointer) box);
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "capt_m")), "activate", G_CALLBACK (capture_cb), (gpointer) box);
   g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "gain1")), "value-changed", G_CALLBACK (gain_cb), (G_OBJECT (glade_xml_get_widget (xml, "gain1")) ));



   g_signal_connect (G_OBJECT (reference_draw), "configure_event",
                     G_CALLBACK (configure_event_reference), ((void *)0));
   g_signal_connect (G_OBJECT (measured_draw), "configure_event",
                     G_CALLBACK (configure_event_measured), ((void *)0));

   volume_pink_value = gtk_spin_button_get_value_as_float(GTK_SPIN_BUTTON (volume_pink_gui));
   gtk_widget_show_all (window);



   home_string = getenv ("HOME");
   file_path1 = malloc(sizeof(home_string) + 30);
   file_path2 = malloc(sizeof(home_string) + 50);




   sprintf(file_path1, "%s/.BRP_PACU", home_string);

   sprintf(file_path2, "%s/buff_store.brp", file_path1 );
   if ((file_handle = fopen(file_path2, "rb")) <= 0)
      fprintf(stderr, "\n\nNo BRP_PACU initialization file yet\nAre you running BRP_PACU for the 1st time?\nIf so, a file will be created for you on your next capture\n\n");
   else
   {
      fread (read_plot_pts, sizeof(gint), 1, file_handle );
      if (read_plot_pts[0] == 8192/2)
      {
         for (i = 0; i < 5; i++)
            fread (guiYBuf[i], sizeof(gfloat), 8192/2, file_handle );
      }
      else
         fprintf (stderr, "PLOT_PTS is different from PLOT_PTS saved size, this is because you have changed N since your last capture.  Please change it back to %d * 2. Otherwise making a new capture should overwrite the old file\n", read_plot_pts );
      fclose(file_handle);
   }
# 1161 "gui.c"
   g_object_unref (G_OBJECT(xml));
   return(TRUE);

}