forked from GNOME/gobject-introspection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog.pre-git
6128 lines (4462 loc) · 189 KB
/
ChangeLog.pre-git
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
2009-02-10 Rober Carr <[email protected]>
Bug 569633 – Typelib compiler fails with vararg callbacks
* girepository/girparser.c: Also filter out callback functions
which take vararg arguments.
2009-02-10 Xan Lopez <[email protected]>
Bug 570903 - Add information about -I flag to scanner manpage
* docs/g-ir-scanner.1: Add info about -I flag.
2009-02-06 Owen Taylor <[email protected]>
* gir/xlib-2.0.gir: Add KeySym and KeyCode to the dummy
xlib-2.0.gir.
2009-02-04 Johan Dahlin <[email protected]>
* girepository/Makefile.am:
* girepository/girffi.c (g_callable_info_get_ffi_arg_types),
(g_callable_info_get_ffi_return_type),
(g_callable_info_prepare_closure), (g_callable_info_free_closure):
* girepository/girffi.h:
Add utility functions for invocing closures given a GICallableInfo
using libffi.
2009-02-03 Andreas Rottmann <[email protected]>
* tests/scanner/utility.h (UtilityTaggedValue): Make the union
member anonymous.
(UtilityByte): New union typedef with an unnamed struct in it.
* giscanner/transformer.py (Transformer._create_struct): Create
unnamed structs for symbols with a None ident.
(Transformer._create_union): Likewise.
* giscanner/girwriter.py (GIRWriter._write_record): Allow name
being None.
(GIRWriter._write_union): Likewise.
* girepository/girparser.c (start_struct): Allow a NULL name for
non-toplevel structs.
(start_union): Likewise.
* tests/scanner/utility.h (UtilityTaggedValue): New struct
typedef, which has a nested union member.
* tests/scanner/utility-expected.gir: Adapted.
* giscanner/transformer.py (Transformer._create_member): Create
struct/union members if appropriate.
(Transformer._create_struct, Transformer._create_union): Allow for
structs/unions without a C type.
* giscanner/glibtransformer.py (GLibTransformer._resolve_field):
We don't need to resolve non-typef'd
(GLibTransformer._resolve_field): Add cases for non-typedef'd
struct/union "fields".
* giscanner/girwriter.py (GIRWriter._write_record): Allow for
records without a C type.
(GIRWriter._write_field): structs and unions may appear in places
where fields do.
2009-02-03 Andreas Rottmann <[email protected]>
* girepository/girparser.c (ParseContext): Removed member
current_node, added node_stack instead.
(CURRENT_NODE): New macro, returns the current node (top of
node_stack).
(pop_node, push_node): New functions; pop or push a node from
node_stack.
Rest of the file adapted to these changes, which are necessary
for supporting nested structs/and unions.
2009-02-02 Dan Winship <[email protected]>
* girepository/ginfo.c (g_registered_type_info_get_g_type): handle
the special case for GObject, whose glib:get-type is listed as
"intern".
2009-02-02 Andreas Rottmann <[email protected]>
Bug 569408 – Scanner doesn't handle arbitrary typedefs correctly
* giscanner/glibtransformer.py (GLibTransformer._create_gobject):
Treat GInitiallyUnowned specially.
Bug 568680 – Scanner misses fields (at least in GObject.Object)
* girepository/giroffsets.c (compute_struct_field_offsets): Fix
handling of callbacks (a callback member clobbered the size
computed so far).
* giscanner/transformer.py (Transformer._create_compound): Use
the (empty) compound created by a typedef if present; this means
that fields will no longer get lost.
* giscanner/transformer.py (Transformer._create_compound): New
method, contains logic common to _create_union and _create_struct.
(Transformer._create_struct, Transformer._create_union): Rewritten
in terms of _create_compound.
* gir/GObject-2.0.xpath: Some new assertations of the presence
GObject fields.
* tests/offsets/Makefile.am, tests/offsets/offsets.h: Added test
for object field offsets.
2009-02-02 Andreas Rottmann <[email protected]>
Bug 563469 – Arrays not treated correctly in struct offset calculation
* tests/offsets/offsets.h (OffsetsArray): New struct, containing a
bunch of arrays.
* tests/offsets/gen-gitestoffsets (FIELD_RE): Handle arrays.
* girepository/giroffsets.c (get_interface_size_alignment):
Refactored to make it more general, now takes a GIrNodeType*
instead of a GIrNodeField*, plus an additional 'who' parameter
that denotes what the size/alignment is calculated for.
(get_type_size_alignment): New function, refactored version of
get_field_size_alignment().
(get_field_size_alignment): Implemented in terms of
get_type_size_alignment().
(get_type_size_alignment): Handle array types correctly.
2009-01-28 Johan Bilien <[email protected]>
* tests/scanner/annotation-1.0-expected.gir: add missing
with_voidp
2009-01-27 Johan Dahlin <[email protected]>
* gir/cairo-1.0.gir:
* gir/fontconfig-2.0.gir:
* gir/freetype2-2.0.gir:
* gir/libxml2-2.0.gir:
* gir/xfixes-4.0.gir:
* gir/xft-2.0.gir:
* gir/xlib-2.0.gir:
Remove shared-library tags for these too.
2009-01-27 Johan Dahlin <[email protected]>
* gir/GL-1.0.gir:
Remove shared-library which removes the build
time dependency on mesa.
2009-01-27 Dan Winship <[email protected]>
Misc warning fixes
* giscanner/scannerparser.y: Fix the "Ignoring non-UTF-8 constant
string" error to print the right value.
* tests/scanner/annotation.c (backslash_parsing_tester)
(backslash_parsing_tester_2): make these non-static to avoid a
warning.
(annotation_object_string_out)
(annotation_string_zero_terminated): fix return values
* tests/scanner/annotation.h (annotation_object_with_voidp):
prototype this
* tests/scanner/gtkfrob.c:
* tests/scanner/gtkfrob.h (gtk_frob_language_manager_get_default):
fix prototype. (s/()/(void)/).
* tools/compiler.c (format_output): fix signed/unsigned warning.
Output a prototype for register_typelib() to avoid warnings later.
2009-01-26 Johan Dahlin <[email protected]>
* tests/everything/everything.c (test_callback):
* tests/everything/everything.h:
Add a couple of callback tests.
2009-01-26 Johan Dahlin <[email protected]>
* girepository/ginfo.c (g_base_info_unref):
Only unref the repository if it's actually set.
2009-01-23 Johan Dahlin <[email protected]>
* tests/everything/everything.c (test_enum_param):
* tests/everything/everything.h:
Add an enum param test function
2009-01-21 Johan Dahlin <[email protected]>
* configure.ac:
Post-release version bump
=== 0.6.2 ===
2009-01-21 Johan Dahlin <[email protected]>
* NEWS: Update
2009-01-21 Johan Dahlin <[email protected]>
Bug 562622 – Errordomains missing
* giscanner/girwriter.py:
* giscanner/glibast.py:
* giscanner/glibtransformer.py:
* tests/scanner/Makefile.am:
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir:
* tests/scanner/foo.c (foo_error_get_type), (foo_error_quark):
* tests/scanner/foo.h:
2009-01-20 Johan Dahlin <[email protected]>
* giscanner/scannerlexer.l:
Increase the buffer size to 1M, so
gtkalias.h can be parsed.
2009-01-20 Johan Dahlin <[email protected]>
* giscanner/glibtransformer.py:
When trying to map functions to structs, do
not require a public structure to exist, should
fix Gst gir generation in.
2009-01-20 Johan Dahlin <[email protected]>
Bug 562615 – Struct methods missing
* giscanner/annotationparser.py:
* giscanner/ast.py:
* giscanner/girwriter.py:
* giscanner/glibast.py:
* giscanner/glibtransformer.py:
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir:
2009-01-16 Dan Winship <[email protected]>
* gir/GL-1.0.gir: add back GLvoid, which got lost during the
gir-repository -> gobject-introspection migration
2009-01-15 Johan Dahlin <[email protected]>
* gir/freetype2-2.0.gir: add FT_Int32
* gir/xft-2.0.gir: add XftFont
* girepository/gdump.c (g_irepository_dump):
Report errors when an invalid type is encountered
* giscanner/glibtransformer.py:
Make the error message a bit nicer.
Part of preparating for gir generating inside pango.
2009-01-15 Johan Dahlin <[email protected]>
* gir/GL-1.0.gir:
* gir/Makefile.am:
* gir/cairo-1.0.gir:
* gir/fontconfig-2.0.gir:
* gir/freetype2-2.0.gir:
* gir/libxml2-2.0.gir:
* gir/xfixes-4.0.gir:
* gir/xft-2.0.gir:
* gir/xlib-2.0.gir:
Move over the hand-written girs from gir-repository
so upstream libraries depending on these can avoid
a gir-repository dependency.
2009-01-15 Johan Dahlin <[email protected]>
Bug 567813 – Everything should be versioned
* gir/Makefile.am:
* girepository/Makefile.am:
* girepository/girepository.c (init_globals):
* girepository/girparser.c (locate_gir):
* giscanner/dumper.py:
* giscanner/transformer.py:
* gobject-introspection-1.0.pc.in:
* tests/everything/Makefile.am:
* tests/invoke/Makefile.am:
* tests/offsets/Makefile.am:
* tests/repository/Makefile.am:
* tests/scanner/Makefile.am:
* tools/Makefile.am:
2009-01-13 Johan Dahlin <[email protected]>
Bug 555036 – put gtk-doc in GIR
* giscanner/annotationparser.py:
* giscanner/ast.py:
* giscanner/girwriter.py:
* giscanner/glibast.py:
* tests/scanner/annotation-1.0-expected.gir:
* tests/scanner/annotation.h:
* tests/scanner/foo-1.0-expected.gir:
2009-01-13 Johan Dahlin <[email protected]>
* giscanner/cachestore.py (CacheStore.load): Catch AttributeError
which seems to be occasionally raised for Record.
* giscanner/annotationparser.py:
Fix a bug where \n was not present in a comment
2009-01-12 Johan Dahlin <[email protected]>
Bug 562467 – Property annotation
* giscanner/annotationparser.py:
* tests/scanner/annotation-1.0-expected.gir:
* tests/scanner/annotation-1.0-expected.tgir:
* tests/scanner/annotation.c (annotation_object_set_property),
(annotation_object_get_property), (annotation_object_class_init):
Annotations are parsed for properties.
2009-01-12 Johan Dahlin <[email protected]>
Bug 546739 – Introspection should know precise signal parameter types
* giscanner/annotationparser.py:
* tests/scanner/annotation-1.0-expected.gir:
* tests/scanner/annotation-1.0-expected.tgir:
* tests/scanner/annotation.c (annotation_object_class_init):
Annotations are parsed for signals, the (type) annotation is introduced.
2009-01-12 Johan Dahlin <[email protected]>
Bug 563591 – Flags not recognized when there is no introspection data
* giscanner/ast.py:
* giscanner/girwriter.py:
* giscanner/giscannermodule.c (type_get_is_bitfield):
* giscanner/glibast.py:
* giscanner/glibtransformer.py:
* giscanner/scannerparser.y:
* giscanner/sourcescanner.c (gi_source_type_copy):
* giscanner/sourcescanner.h:
* giscanner/sourcescanner.py:
* giscanner/transformer.py:
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir:
* tests/scanner/foo.h:
Large parts of this patch was done by Jürg Billeter.
2009-01-12 Havoc Pennington <[email protected]>
Bug 563386 – scanner ignores "const" on boxed return values
* tests/everything/everything.c (test_simple_boxed_a_const_return):
* tests/everything/everything.h:
This adds just the tests specified in the bug above, the fix itself
was included in Bug 563794
2009-01-03 Andreas Rottmann <[email protected]>
Bug 566404 – Annotations for GLib
* gir/glib-2.0.c: Added allow-none annotations for g_thread_init()
and g_main_loop_new().
2009-01-12 Johan Dahlin <[email protected]>
Bug 566419 – Element type of arrays not properly handled in all cases
* giscanner/annotationparser.py:
* tests/scanner/annotation-1.0-expected.gir:
* tests/scanner/annotation-1.0-expected.tgir:
* tests/scanner/annotation.c (annotation_object_set_data),
(annotation_object_set_data2), (annotation_object_set_data3):
* tests/scanner/annotation.h:
Based on patch by Andreas Rottmann
2009-01-12 Johan Dahlin <[email protected]>
Bug 566560 – giscanner.transformer.SkipError
* giscanner/transformer.py:
Catch SkipError for all nodes, not just functions.
Makes it possible to skip unsupported parameter types in
callbacks.
2009-01-12 Johan Dahlin <[email protected]>
Bug 563794 - Redo annotation parsing & applying
Thanks to Colin for helping out considerably in landing this.
* giscanner/Makefile.am:
* giscanner/ast.py:
* giscanner/dumper.py:
* giscanner/girparser.py:
* giscanner/giscannermodule.c (pygi_source_scanner_get_comments),
(calc_attrs_length), (pygi_collect_attributes), (init_giscanner):
* giscanner/glibtransformer.py:
* giscanner/scannerlexer.l:
* giscanner/sourcescanner.c (gi_source_symbol_unref),
(gi_source_scanner_new), (gi_source_scanner_free),
(gi_source_scanner_get_comments):
* giscanner/sourcescanner.h:
* giscanner/sourcescanner.py:
* giscanner/transformer.py:
* giscanner/xmlwriter.py:
* tests/scanner/annotation-1.0-expected.gir:
* tests/scanner/annotation-1.0-expected.tgir:
* tests/scanner/annotation.c:
* tests/scanner/annotation.h:
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir:
* tests/scanner/foo.h:
* tools/g-ir-scanner:
This commit merges the annotation parser rewrite branch.
It'll change the annotation parsing to be done completely in python
code which will make it easier to do further annotation parsing
easier.
2009-01-03 Andreas Rottmann <[email protected]>
Bug 563469 – Arrays not treated correctly in struct offset calculation
* tests/scanner/foo.h (FooObject): Added field `some_int'.
* tests/scanner/foo-1.0-expected.gir,
* tests/scanner/foo-1.0-expected.tgir: Adapted.
* giscanner/glibtransformer.py (GLibTransformer._create_gobject):
carry over object fields from original (struct) node.
(GLibTransformer._pair_class_struct): Don't add fields of the
class struct to to the node for the class, they should go under a
nested <record> element (see also Bug 551738). This is needed as
otherwise offset calculation would not work, as the instance
fields are mingled with the class fields without a way to
distinguish them.
2009-01-03 Johan Dahlin <[email protected]>
* misc/pep8.py:
Disable blank line check, it works differently under
Python 2.5 from 2.6 and was rather annoying from the start.
2008-01-03 Andreas Rottmann <[email protected]>
Bug 556489 – callback annotations
* giscanner/transformer.py
* tools/generate.c (write_callable_info): Write out the new scope,
closure and destroy attributes.
* giscanner/transformer.py (Transformer._type_is_callback): New
method, checking if a given type is a callback.
(Transformer._augment_callback_params): New method; adds
information (closure, destroy) to callback parameters.
(Transformer._handle_closure, Transformer._handle_destroy): New methods,
auxiliary to _augment_callback_params.
(Transformer._create_function): Call _augment_callback_params().
(Transformer._create_parameter): Handle scope option.
(Transformer._create_typedef_callback): New method, creates a
callback, and registers it in the typedef namespace
(Transformer._create_typedef): Use _create_typedef_callback()
instead of the plain _create_callback().
* giscanner/ast.py (Parameter): Added callback-related fields.
* giscanner/girwriter.py: Write out new Parameter fields.
* girepository/girnode.h (GIrNodeParam): Added fields scope,
closure and destroy.
* girepository/gtypelib.h (ArgBlob): Ditto.
* girepository/girparser.c (start_parameter): Handle new fields.
* girepository/girmodule.c (g_ir_module_build_typelib): Adjust
arg_blob_size, bump major version due to this change.
* girepository/girnode.c (g_ir_node_get_full_size_internal)
(g_ir_node_build_typelib)
* girepository/gtypelib.c (g_typelib_check_sanity): ArgBlob size
adjustments.
(g_ir_node_build_typelib): Fill in new ArgBlob flags from param.
* girepository/girepository.h (GIScope): New enumeration, listing
the different possible scopes for callbacks.
* girepository/ginfo.c (g_arg_info_get_scope)
(g_arg_info_get_closure, g_arg_info_get_destroy): Accessors for
callback-related argument indices (callback scope, closure for a
callback, destroy notification for a callback).
* tests/scanner/: Added testcases for new features.
2009-01-03 Jürg Billeter <[email protected]>
* giscanner/ast.py:
* giscanner/dumper.py:
* giscanner/girparser.py:
* giscanner/glibtransformer.py:
* giscanner/sourcescanner.py:
* giscanner/transformer.py:
* giscanner/xmlwriter.py:
Fix inconsistencies with PEP8
2008-12-21 Johan Dahlin <[email protected]>
* gir/gio-2.0.c:
Annotate transfer, direction and allow none for
g_file_load_contents, g_file_load_contents_finish and
g_file_load_partial_contents_finish parameters.
2008-12-12 Owen Taylor <[email protected]>
Disable array auto-detection for out-annotated parameters (#563934)
If we have a parameter annotated as (out), then having a ctype of
'char **' (or similar) doesn't necessarily indicate an array.
* giscanner/transformer.py: Skip array-detection logic for
(out)-annotated parameters.
* tests/scanner/annotation.h tests/scanner/annotation.c
tests/scanner/annotation-1.0-expected.gir
tests/scanner/annotation-1.0-expected.tgir: Add a test for
an (out) string parameter.
2008-12-12 Johan Dahlin <[email protected]>
* giscanner/dumper.py (DumpCompiler._link): Pass in
--tag=CC to libtool to avoid making libtool confused
when CC is different from gcc on some systems.
2008-12-10 Johan Bilien <[email protected]>
Bug 563998 – Cache the GIBaseInfo for GTypes
* girepository/girepository.c (g_irepository_find_by_gtype):
add a cache of GType -> GIBaseInfo.
2008-12-09 Johan Bilien <[email protected]>
Bug 562545 – Add function taking / returning GValue
* tests/everything/everything.[ch]: add a test of function taking and
returning "const GValue *"
2008-12-09 Johan Dahlin <[email protected]>
* giscanner/cachestore.py (CacheStore.store): Use
shutil.move instead of os.rename, since it will
automatically fall back to copying+remove if the
src directory is on a different partition from
the dst directory.
2008-12-08 Tristan Van Berkom <[email protected]>
Bug 563742 – introspection should record the introduced version of
symbols marked with the "Since:" tag
reviewed by: Johan
* giscanner/ast.py:
* giscanner/girwriter.py:
* giscanner/scannerlexer.l:
* giscanner/transformer.py:
* tests/scanner/annotation-1.0-expected.gir:
* tests/scanner/annotation-1.0-expected.tgir:
* tests/scanner/annotation.c (annotation_versioned):
* tests/scanner/annotation.h:
2008-12-08 Johan Dahlin <[email protected]>
* giscanner/cachestore.py (_get_cachedir): Don't require
HOME to be set and if it set, don't require the
directory to exist.
2008-12-08 Johan Dahlin <[email protected]>
* giscanner/cachestore.py (CacheStore.store): Dump the cache
file to a temporary file and rename it the expected filename
only when it's completely written.
This should make the cache more roboust when run in parallel,
and hopefully avoid triggering bugs in Python.
2008-12-03 Christophe Fergeau <[email protected]>
Bug 562971 – g-ir-scanner failure on libgpod headers
* giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the
default 16384. Without it, the lexer was aborting with a cryptic
error message on source files containing really long comment
blocks.
2008-12-01 Colin Walters <[email protected]>
* girepository/gfield.c: Fix memory leak; unref type info we
created, not field info
2008-11-30 Johan Dahlin <[email protected]>
Bug 562289 – Race when removing invalid cache
* giscanner/cachestore.py:
ENOENT is mapped to a OSError, not IOError.
2008-11-27 Johan Dahlin <[email protected]>
* gir/glib-2.0.c: Add return value transfer annotation
for g_markup_escape_text.
2008-11-25 Colin Walters <[email protected]>
* tools/g-ir-scanner: Add --libtool option which we expect Automake-using
people to pass.
* giscanner/dumper.py: Implement it.
* gir/Makefile.am, tests/**/Makefile.am: Use it.
2008-11-25 Colin Walters <[email protected]>
* tests/scanner/Makefile.am: Remove hand-rolled generation of .tgir; easier
to just use a Makefile rule and dependencies. This corresponds with a change
made to gir-repository to fix srcdir != builddir issues.
2008-11-25 Johan Dahlin <[email protected]>
* configure.ac:
Post release version bump
=== 0.6.1 ===
2008-11-25 Johan Dahlin <[email protected]>
* NEWS:
Release 0.6.1
2008-11-25 Colin Walters <[email protected]>
Bug 559705 – Missing association between static methods and classes
* docs/typelib-format.txt:
* girepository/ginfo.c (g_function_info_get_flags):
* girepository/girmodule.c (g_ir_module_build_typelib):
* girepository/girnode.c (g_ir_node_get_size),
(g_ir_node_build_typelib):
* girepository/girparser.c (start_function):
* girepository/gtypelib.c (g_typelib_check_sanity),
(validate_header), (validate_function_blob):
* girepository/gtypelib.h:
* giscanner/ast.py:
* giscanner/girwriter.py:
* giscanner/glibtransformer.py:
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir:
* tests/scanner/foo.h:
2008-11-25 Johan Dahlin <[email protected]>
* giscanner/ast.py: Define socklen_t as an alias for int32.
2008-11-24 Johan Dahlin <[email protected]>
* girepository/gdump.c (dump_type): Remove a warning,
be less verbose on error on fundamental types.
2008-11-23 Johan Dahlin <[email protected]>
* giscanner/dumper.py: Add license headers,
refactor into a class, avoid some duplication and do some
extra pedantic checks.
2008-11-23 Johan Dahlin <[email protected]>
Make it compilable with -Werror on my system by adding
a couple of prototypes and including headers.
2008-11-23 Johan Dahlin <[email protected]>
Bug 562022 – gobject-introspection needs python headers
* configure.ac: fail without python headers present.
Patch by: Tom Parker
2008-11-21 Johan Dahlin <[email protected]>
Bug 561617 – Return value array annotations
* giscanner/transformer.py:
* tests/scanner/annotation.c (annotation_return_array):
* tests/scanner/annotation.h:
Add support for (array) for return value annotations as well.
2008-11-20 Johan Bilien <[email protected]>
* tests/everything/everything.[ch]: add a test function which calls a
closure.
2008-11-19 Johan Dahlin <[email protected]>
* giscanner/cachestore.py:
Catch ValueError exceptions.
2008-11-18 Tommi Komulainen <[email protected]>
* tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir
2008-11-18 Andreas Rottmann <[email protected]>
* girepository/girnode.c (g_ir_node_build_typelib): Use sizeof()
instead of hard-coding struct sizes.
2008-11-18 Owen Taylor <[email protected]>
Bug 561296 - Add "storage type" to the typelib data for enums
In order to set and get enum and flag fields in structures, we need
to know the integral type that the enumeration is stored as. We are already
computing that at compile time in order to compute struct offsets, so the
easiest thing to do is to save that in the typelib.
* docs/typelib-format.txt girepository/girnode.[ch] girepository/giroffsets.c
girepository/gtypelib.h: Add 'storage_type' to the typelib format for EnumBlob
and compute and save it at compile time.
* girepository/girepository.h girepository/ginfo.c:
Add g_enum_info_get_storage_type().
* girepository/gfield.c: Implement reading and writing enum and flags fields
based on the storage type.
2008-11-18 Owen Taylor <[email protected]>
Add enums to the Everything test module
* tests/everything/everything.[ch]: Add TestEnum and TestFlags to the Everything
test module and register them as GTypes.
https://bugzilla.gnome.org/show_bug.cgi?id=561296
2008-11-18 Johan Dahlin <[email protected]>
* giscanner/cachestore.py:
Catch BadPickleGet exceptions as well.
2008-11-17 Owen Taylor <[email protected]>
* tests/everything/everything.c: Fix doc comment annotations
for test_struct_b_clone() to refer to the right function.
2008-11-17 Dan Winship <[email protected]>
* giscanner/glibtransformer.py (GLibTransformer.__init__): fix
spelling of GHashTable. #561135
* tests/scanner/annotation.c (annotation_object_get_hash):
* tests/scanner/annotation-1.0-expected.gir:
* tests/scanner/annotation-1.0-expected.tgir: add a test of
GHashTable annotations
2008-11-17 Andreas Rottmann <[email protected]>
* giscanner/ast.py: Change string array match type to be in terms
of canonicalized type.
* giscanner/transformer.py: Add canonicalize_ctype which gives us
a version of a c:type without aliases, so we can deep canonicalize
char** to utf8*. Update parse_ctype to use it.
* tests/*: Add gtk_init like int*/char*** arg functions for testing.
2008-11-16 Colin Walters <[email protected]>
* girepository/girepository.c: Ensure we always call init_globals,
even if passed a non-default repository.
2008-11-16 Colin Walters <[email protected]>
Bug 559706 - Interface prerequisites
* common.mk: Dep on libgirepository.la for scanner libs so that
we rebuild things even if just gdump.c changes.
* girepository/gdump.c: Dump prerequisites.
* giscanner/ast.py: Add prerequisite list.
* giscanner/girparser.py: Parse them from gdump.
* giscanner/girwriter.py: Write them.
* giscanner/glibtransformer.py: Resolve them.
* tests/*: Test.
2008-11-16 Owen Taylor <[email protected]>
Bug 561087 - Respect is_pointer in serialize_type()
Add a '*' to the serialization for the cases where we set is_pointer
in the type blob we write out depending on node->is_pointer. Don't
add the '*' in the cases where is_pointer is set or not set in a
fixed fashion.
http://bugzilla.gnome.org/show_bug.cgi?id=561087
2008-11-16 Owen Taylor <[email protected]>
Bug 560825 – Add size and alignment to typelib
Include the size and alignment of structures and unions in the typelib,
and add getter methods to retrieve them from GIStructInfo/GIUnionInfo.
* docs/typelib-format.txt girepository/gtypelib.h girepository/girnode.c
girepository/girmodule.c girepository/gtypelib.c: Add size and alignment
to StructBlob and UnionBlob.
* girepository/ginfo.c girepository/girepository.h:
Add g_[struct|union]_get[size|alignment]().
* test/offsets/gen-gitestoffsets: Test overall structure size and alignment.
2008-11-16 Owen Taylor <[email protected]>
Bug 552371 – implement struct field get/set
* girepository/gfield.c girepository/girepository.h: Add
convenience functions g_field_info_set_field() and
g_field_info_get_field() to set and get fields based on the
offsets in GIFieldInfo.
2008-11-16 Andreas Rottmann <[email protected]>
Bug 560241 - Out-arguments should not be marked as being pointers
in all cases
* girepository/girparser.c: Improved logic for out arguments.
2008-11-16 Andreas Rottmann <[email protected]>
Bug 559601 - Pointers in structs/unions unduly treated as arrays
* giscanner/transformer.py: Differentiate type creation logic
between parameters and struct components.
2008-11-15 Colin Walters <[email protected]>
* giscanner/dumper.py: Check return code from pkg-config
invocations.
2008-11-14 Johan Dahlin <[email protected]>
* tests/everything/everything.c (test_array_int_in),
(test_array_gtype_in):
* tests/everything/everything.h:
Rename the int/gtype array tests. Make the return value
useful, an aggregation of the array input values.
2008-11-14 Johan Dahlin <[email protected]>
* tests/everything/Makefile.am:
* tests/everything/everything.c:
* tests/everything/everything.h:
* tests/everything/gitesttypes.c:
* tests/everything/gitesttypes.h:
Rename gitesttypes.[ch] to everything.[ch]
2008-11-13 Andreas Rottmann <[email protected]>
Bug 560708 – Don't treat arrays that have a length specified as
zero-terminated by default
* giscanner/transformer.py: Default to non zero terminated for
arrays with length.
* tests/*: Update, add test for zero vs not.
2008-11-13 Andreas Rottmann <[email protected]>
Bug 557788 - Return types for constructors in generated typelib bogus
* girepository/girnode.c: Namespace-qualify XREFs; not doing so is
obviously broken in the face of duplicate names in different
namespaces.
* tests/scanner/*expected.gir: Fix up.
2008-11-13 Owen Taylor <[email protected]>
* girepository/girffi.c: Fix "Unexpected time for time_t"
message.
2008-11-13 Colin Walters <[email protected]>
Bug 558436 - avoid having scanner load app code
* giscanner/cgobject.py: Delete; we no longer load shared
libraries directly.
* giscanner/dumper.py: Support for linking a library to
a stub binary for introspection.
* giscanner/glibtransformer.py: Rewrite to use gdump XML
from invocation of child binary.
* giscanner/transformer.py: Fix up to use fully qualified
name in parse tree. Make parse_ctype public so we can use
it inside glibtransformer.
* tests/scanner/barapp.c: New test, using --program arg
for g-ir-scanner.
* tests/*: Update to use common.mk for invoking scanner.
* tools/g-ir-scanner: Add options --program, --program-arg,
and --no-libtool.
* docs/g-ir-scanner.1: Update.
2008-11-13 Colin Walters <[email protected]>
* configure.ac: Depend on Gio, we use it in gdump.c.
* girepository/gdump.c: Code to dump GType data to XML.
* girepository/girepository.c: Add option group for dumping.
* girepository/girepository.h: Define API for the above.
2008-11-13 Colin Walters <[email protected]>
* common.mk: Add a file to include with Makefile fragments
useful for scanner invocation.
2008-11-13 Tommi Komulainen <[email protected]>
* tests/everything/gitesttypes.c (test_filename_return): Return
strings in filename encoding.
2008-11-13 Owen Taylor <[email protected]>
Bug 560253 – Add structure and boxed types to Everything test module
* tests/everything/gitesttypes.[ch]: Add examples of:
Plain old data structs
Plain old data structs with nested fields
Plain old data boxed
Plain old data boxed with nested fields
More complicated boxed types with internal state
2008-11-12 Johan Dahlin <[email protected]>
* tests/everything/gitesttypes.c (test_gtype_in):
* tests/everything/gitesttypes.h:
Add a test of GType arrays, a la gtk_list_store_set_columns.
2008-11-12 Owen Taylor <[email protected]>
Bug 560419 – Cache includes when parsing
Keep track of all modules parsed within a GIrParser, and when a
module is referenced a second time, use the existing parsed copy
instead of reparsing.
2008-11-12 Owen Taylor <[email protected]>
Fix management of ParseContext.includes_modules (#560419)
* girepository/girparser.c: Fix some trivial bugs in managing the
list of include modules. (Add to module's list twice, not
initialized to NULL, not freed.)
2008-11-12 Owen Taylor <[email protected]>
Keep aliases and disguised_structures local to each module (#560419)
* girepository/girmodule.[ch]: When parsing, keep keep a separate
hash tables of aliases and 'disguised' flags for each module, and
store that on the module.
After parsing an include merge the aliases/disguised flags to the
including module.
* girepository/girparser.c: Remove 'prefix_aliases' flag and
always prefix aliases/disguised structure types when parsing; this
simplifies the code considerably.
2008-11-12 Owen Taylor <[email protected]>
Fix mismatches between .gir name and 'name' attribute (#560419)
* tests/boxed.gir tests/constant.gir tests/enum.gir tests/invoke/invoke.c
tests/invoke/testfns-1.0.gir tests/object.gir tests/struct.gir: Fix places
where the 'name' element of <namespace/> didn't match the filename of the
gir, an assumption that the compiler has always expected and now enforces.
2008-11-12 Owen Taylor <[email protected]>
Only allow one <namespace/> element per <repository/> (#560419)
* girepository/girparser.c: The logic in girparser.c didn't work
very well if there were multiple <namespace/> nodes within a
single <repository/> (context->namespace was always the overall
filename and not the the name specified in the <namespace/>
element for one thing; this would cause aliases to be mis-prefixed
in include modules.) Also check that the "name" in the
<namespace/> node matches the filename.
2008-11-12 Owen Taylor <[email protected]>
Add a GirParser object to hold the state of a compilation
* girepository/girparser.[ch] tools/compiler.c: Add a toplevel
GirParser object to hold state that is global across a
compilation. Currently just holds the include path, but will
eventually also keep a cached list of parsed modules.