-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathChangeLog.old
1187 lines (715 loc) · 35.4 KB
/
ChangeLog.old
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
CHANGES ABOVE THIS POINT ARE FOR VERSIONS AFTER THE MOVE OF THE REPOSITORY
TO GITHUB AND ARE DESCRIBED IN THE MAIN ChangeLog FILE.
2005-12-12 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* c2hs/gen/GenBind.hs: When translating the target type of a
pointer hook into a Haskell type, don't take the pointer hook
alias map into account.
* c2hs.cabal: version 0.14.5
* c2hs/gen/GenBind.hs: Suppress code generation if requested
* c2hs/chs/CHS.hs: Added `nocode' to pointer hooks
* c2hs/chs/CHSLexer.hs: Added `nocode'
2005-12-05 Jelmer Vernooij <jelmer@samba.org>
* c2hs/c/CTrav.hs: only match in `checkForOneCUName' if there are
no indirections
2005-12-05 Jelmer Vernooij <jelmer@samba.org>
* c2hs/gen/GenBind.hs: support mapping struct and union names to haskell
types
* c2hs/c/CTrav.hs: added `checkForOneCUName'
Fri Nov 25 10:54:56 EST 2005 Jelmer Vernooij <jelmer@samba.org>
* add prettify functions for structs, enums and unions
2005-08-10 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* c2hs/gen/GBMonad.hs: apply `upcaseFirstLetter' and
`downcaseFirstLetter' if specified
* c2hs/chs/CHS.hs: added `upcaseFirstLetter' and `downcaseFirstLetter'
2005-08-09 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* c2hs/gen/CInfo.hs: exports `getPlatform'
2005-08-08 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* c2hs/toplevel/Main.hs: Added --platform switch for cross compilation
* c2hs.cabal: 0.14.3
2005-08-08 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* c2hs.cabal: 0.14.2
* Support asm construct (Duncon Coutts)
* Hierachical modules (Duncon Coutts)
2005-07-13 Duncan Coutts <duncan.coutts@worc.ox.ac.uk>
* Remove old C lexer & parser and replace them with new ones using
alex and happy
2005-07-14 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* C2HS library as a single file added to the generated binding
code
2005-07-13 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* Cabal-ised the build system
* c2hs.cabal (Version): 0.14.0
2005-05-18 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.13.6
2005-03-14 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c/CParser.hs: Allow lists of GNU C attributes (patch contributed
by Duncan Coutts <duncan.coutts@worc.ox.ac.uk>)
* chs/CHSLexer.hs (instr): Allow 8-bit characters (Volker Wysk
<post@volker-wysk.de> requested support for umlauts in strings)
* toplevel/Version.hs (versnum): 0.13.5
2004-10-18 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* chs/CHS.hs (showCHSModule): Don't add extra '\n' after directive
during pretty printing
* chs/CHSLexer.hs (cpp): forgot to adapt lexing of #c to the new
situation where directives don't consume the following '\n'
2004-10-17 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c2hs.conf.in: Modernised package deps and options
* gen/GenBind.hs (expandHook): We use the shadow identifier for
generating the Haskell name.
* chs/CHSLexer.hs (identOrKW): Identifier may be put in single quotes
* toplevel/Version.hs (versnum): 0.13.4
2004-10-13 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* chs/CHSLexer.hs (cpp): fixed lexing of directives such that they
don't consume the '\n' that ends them
* toplevel/Version.hs (versnum): 0.13.3
* toplevel/Main.hs (Flag): Added `--output-dir' option and removed
`--old-ffi'.
* gen/GenBind.hs (noDftMarshErr): better error message when
default marshallers are not available
(isIntegralCPrimType): handle C chars as integral types for marshalling
* toplevel/Main.hs (process): if there is no explicit output file
specified, the header file is put in the same directory as the
binding file; otherwise, it goes in the directory where the output
file is put
2004-10-09 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Main.hs (process): store header file name in switch board
* state/Switches.hs: Store the name of the generated header file
(needed to generate complete foreign import declarations)
* gen/GenBind.hs (foreignImport): Add name of header file to
extent strings of generated foreign import declarations
* c/CAttrs.hs (applyPrefix): never create empty shadow identifiers
2004-10-08 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* chs/CHS.hs (dumpCHS): Header doesn't contain the "-- **"
sequence anymore that Haddock dislikes.
* c/CParser.hs (parseCStructUnion): We allow structs and unions
with no declarations, as GNU C does
* toplevel/Version.hs (versnum): 0.13.2
2004-08-21 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* tests/Makefile: use configured $HC (courtesy Don Stewart
<dons@cse.unsw.edu.au>)
2004-06-11 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (pointerDef): Adapted to the standard interface
for foreign pointers
2004-06-10 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c/CParser.hs: Added parsing of function bodies
* c/CLexer.hs: Added tokens occuring in the statement syntax
2004-06-09 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c/CAST.hs: Added function bodies
* c/CPretty.hs: Added `auto' and `register' storage specifiers
* c/CLexer.hs: Added tokens for `auto' and `register' keywords
* toplevel/Version.hs (versnum): 0.13.1
2004-05-15 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c/CParser.hs (parseCHeader): Duncan Coutts
<duncan.coutts@worcester.oxford.ac.uk> identified a space (and
time) leak in the old typedef-name morphing setup; this has been
rewritten now
2004-05-14 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.13.0 "Pressing Forward"
2003-10-20 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (foreignImport): brought generated foreign import
declarations in line with FFI Addendum
* toplevel/C2HSConfig.hs.in: removed legacy FFI support
* configure.in: removed legacy FFI support
* mk/config.mk.in: removed legacy FFI support
* lib/Makefile: Removed all deprecated code and support code for
old versions of the FFI
* toplevel/Version.hs (versnum): 0.12.1
2003-10-19 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* c2hs.spec.in: Contributions by Jens Petersen
<petersen@haskell.org>: specify ghc version to build with;
don't redundantly provide c2hs; separate library out into
separate ghc version specific subpackage; put docs into separate
subpackage; disable empty debuginfo subpackage generation -
remove buildroot before installing; remove installed doc files,
since they're explicitly listed
* c/CLexer.hs (linedir): allow an arbitrary number of ints after
the filename in a #line directive; problem was first reported by Sean
Seefried <sseefried@cse.unsw.edu.au>
* gen/GBMonad.hs (delayCode): Generate appropriate line numbers
for delayed code; problem reported by Sean Seefried
<sseefried@cse.unsw.edu.au>
* chs/CHS.hs (showCHSModule): Never generate negative line numbers
* toplevel/Version.hs (versnum): 0.12.0 "Springtime"
2003-06-10 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.11.5
2003-05-30 Jens Petersen <petersen@redhat.com>
* configure.in: Search for compiler named HC too.
2003-05-30 Jens Petersen <petersen@redhat.com>
* c2hs.spec.in (Version): Set directly.
(Release): Ditto.
(%prep): Quieten setup.
(%build): Use configure macro.
(%install): Use makeinstall macro.
(%post): Use _bindir.
(%files): Make root own files. Use _bindir, _libdir and _mandir.
2003-05-22 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (Ord): Need instance for `<=' for indirectly
defined `compare'; bug reported by Ian Lynagh <igloo@earth.li>
* toplevel/Version.hs (versnum): 0.11.4
2003-04-16 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenHeader.hs (ghFrag): sentries for conditionals must not be
turned into internal identifiers, as this spoils later equality
tests with identifiers read from the pre-processed header file;
bug reported by Axel Simon <A.Simon@ukc.ac.uk>
* toplevel/Version.hs (versnum): 0.11.3
2003-03-04 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (evalConstCExpr): supporting enumerators in
constant expressions
* toplevel/Version.hs (versnum): 0.11.2
2003-02-13 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* chs/CHS.hs: removed the "header" tag (we now support the CPP
#include directive)
* Configuration-related patch by Ian Lynagh <igloo@earth.li> that
removes issues with GHC 5.05
2003-02-12 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (expandFrag): Expanding conditionals
* chs/CHSLexer.hs (haskell): the lexeme for one-line comments
shouldn't include the terminating newline, as this removes the
newline for following lexemes (eg CPP directives) and is not
really necessary due to the Principle of the Longest Match
* gen/GenHeader.hs: debugging
2003-02-05 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenHeader.hs: New module extracting CPP directives and
inline-C from a .chs file
* toplevel/Main.hs (process): Integrated generation of custom C header
* c/CParser.hs (parseCHeader): Header file may be empty
2003-02-01 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* chs/CHS.hs (showCHSModule): emitting GHC line pragmas
(CHSFrag): added representations for cpp directives and inline-C
code, and adapted the functions processind the representations
* chs/CHSLexer.hs: Added support for pre-processor directives and
inline-C code
2003-01-31 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Main.hs (process): Now reading the binding module
before the C header
2003-01-30 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* c/CParser.hs: Allow more GNU attributes contributed by Axel
Simon <A.Simon@ukc.ac.uk>
2002-09-17 Manuel M T Chakravarty <chak@AttitudeAdjuster>
* gen/GBMonad.hs (HsObject): working around a problem with
deriving Read in GHC 5.04.1
2002-09-16 Manuel M T Chakravarty <chak@AttitudeAdjuster>
* Makefile (ghci): target to load all of c2hs into GHCi
2002-09-13 Manuel M T Chakravarty <chak@AttitudeAdjuster>
* toplevel/c2hs_config.c: removed the `signed' modifier on
suggestion of Seth Kurtzberg <seth@cql.com> as it apparently
confuses the Solaris 8 C compiler
2002-09-07 Manuel M T Chakravarty <chak@AttitudeAdjuster>
* c2hs.spec.in: add post install and uninstall scripts to register
and deregister the package with GHC
* configure.in: fixed REQUIRES_HASKELL for ghc
* toplevel/Version.hs (versnum): 0.10.17
2002-09-06 Manuel M T Chakravarty <chak@AttitudeAdjuster>
* toplevel/C2HSConfig.hs.in (cppopts): Added "-x c" on suggestion
by Axel Simon
* Makefile (install): using --update-package instead of --add-package
* configure.in: Fixed some nhc98 related issues
* toplevel/Version.hs (versnum): 0.10.16
2002-07-12 Manuel M T Chakravarty <chak@AttitudeAdjuster>
* c2hs-config.in: added the system for which the package was
compiled to the output of the --version option
* c/CParser.hs (parseCStructUnion): Allow __extension__ in
structure declarations and added `inline'.
* c/CAST.hs: Added `inline'
* c/CLexer.hs: Added support for `inline' keyword
2002-07-06 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.10.15
2002-05-16 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* lib/C2HSMarsh.hs: added support for bit masks
* toplevel/Version.hs (versnum): 0.10.14
2002-05-10 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (setGet): corrected bug in bit fiddling
2002-05-02 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.10.13
2002-04-16 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.10.12
2002-03-20 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* chs/CHSLexer.hs (haskell): Debug the handling of character literals
* toplevel/Version.hs (versnum): 0.10.11
2002-03-12 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* c2hs.spec.in: we now require the Haskell compiler to be the one
for which the package was build
* Makefile: adapted to revised build system
* toplevel/Version.hs (versnum): 0.10.10
2002-03-06 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* chs/CHSLexer.hs (haskell): Escape characters in Haskell strings
haven't been handled correctly in all cases as reported by Volker
Wysk <post@volker-wysk.de>; we also have to handle character
constants specially, because '"' is a legal Haskell character
constant
2002-03-03 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* configure.in: Package handling fix by Jens Petersen
* toplevel/Version.hs (versnum): 0.10.9
2002-02-25 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs: debugging
2002-02-24 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* chs/CHS.hs (parseOptAs): `^' as synonym for previous identifier,
but with underscores rewritten to caps
* chs/CHSLexer.hs: added `CHSTokHat'
2002-02-23 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* lib/C2HSMarsh.hs: added some more convenience functions
2002-02-21 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs: Completed processing of function hooks
2002-02-18 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* chs/CHSLexer.hs: Added `CHSTokMinus'
* chs/CHS.hs: Revised the syntax of fun hooks
* chs/CHSLexer.hs: Added `CHSTokAmp' (representing `&')
* gen/GenBind.hs (foreignImport): factorised the code for call
hook generation to make those portions that are also useful for
fun hooks reusable
(expandHook): implemented fun hooks
* gen/GBMonad.hs: extracted monad-related code from `GenBind.hs'
* gen/GenBind.hs: split off the monad definition and operations
into `GBMonad.hs'
2002-02-17 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* chs/CHSLexer.hs: introduced `hsverb' tokens
* chs/CHS.hs: `pure' instead of `fun' to indicate calls to pure
C functions (`fun' retained for backwards compatibility)
* chs/CHSLexer.hs: introduced the keyword `pure'
2002-02-13 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* Makefile: adapted to using GHC package management
2002-02-11 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* lib/Makefile (depend): increase portability
2002-02-06 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* configure.in: probe for `grep'
2002-02-05 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* aclocal.m4 (CTK_GHC_VERSION): no \+ in sed on Solaris
* toplevel/Version.hs (versnum): 0.10.7
2002-01-15 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (mergeMaps): now, the read map overrides any
entires for shared keys in the map that is already in the monad;
this is so that, if multiple import hooks add entries for shared
keys, the textually latest prevails; any local entries are entered
after all import hooks anyway
* toplevel/Version.hs (versnum): 0.10.6
2002-01-10 Jens Petersen <juhp@01.246.ne.jp>
* c/CParser.hs (parseC): corrected "contained contained" in
proceeding comments.
* ../doc/c2hs/c2hs.sgml (Set Hooks): correct #get to #set
* ../doc/c2hs/Makefile (TOP): "../../.." to "../.."
2002-01-10 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.10.5
2001-12-20 Manuel M T Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (expandHook): fixed a sizeof bug pointed out by Jens
Petersen <petersen@redhat.com>
* toplevel/Version.hs (versnum): 0.10.4
2001-12-11 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* toplevel/c2hs_config.c: now conforms to ISO C
* toplevel/Version.hs (versnum): 0.10.3
2001-11-14 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (setGet): debugged
2001-11-13 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (setGet): reading and writing of bitfields
(alignOffset): now handles alignment of bit fields
(extractCompType): debugging
2001-11-12 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (specType): added bitfield handling
(BitSize): introduced size specs for partially filled storage units
* toplevel/C2HSConfig.hs.in (bitfieldDirection): added
(bitfieldPadding): added
(bitfieldIntSigned): added
* toplevel/c2hs_config.c: runtime configuration query functions
* gen/CInfo.hs (CPrimType): extended by variants for bitfields
(size): now a function instead of an array
(alignment): now a function instead of an array
* gen/GenBind.hs (showExtType): simplified `showExtType' again;
the brace level idea doen't work for `DefinedET' anyway; so, let's
simplify the code
2001-11-08 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.10.2
2001-10-17 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c/CParser.hs (parseCDecl): corrected the precise locatio where
an __attribute__ annotation may occur.
2001-10-16 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (evalConstCExpr): added `alignof'
* c/CNames.hs (naCExpr): added `alignof'
* c/CAST.hs: added `alignof'
* c/CParser.hs (parseCUnaryExpr): added `alignof' expressions
* c/CLexer.hs: added keyword `alignof'
* toplevel/Version.hs (versnum): 0.10.1
2001-10-08 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* chs/CHS.hs: debugged
2001-10-07 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs: handling class hooks
* Makefile: improved cleaning targets
* chs/CHS.hs (parseClass): added class hooks
* chs/CHSLexer.hs: added tokens `class' and `=>'
* gen/GenBind.hs (isFunExtType): IO types are function types
* toplevel/Version.hs (versnum): 0.10.0 "Altocumulus Stratiformis
Perlucidus Undulatus"
2001-08-26 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (foreignImport): `libName' removed until the new
FFI conventions for libs are implemented in GHC
* c/CTrav.hs (dropPtrDeclr): fixed pointer to pointer case
* c/CPretty.hs: implemented pretty-printing for part of the C AST
2001-08-25 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (setGet): missed ";" in code generation
* c/CParser.hs (cidOrTN): after struct or union tag we may have a
normal idenifier or a type name; spotted by Simon Bowden
<simonb@cse.unsw.edu.au> and Michael Zinn <michaelz@cse.unsw.edu.au>
2001-08-23 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (expandHook): adding parenthesis around the
generated type; problem pointed out by Matthew Tarnawsky
<matthewt@ics.mq.edu.au>
* toplevel/Version.hs (versnum): 0.9.9
2001-06-20 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (expandHook): added sizeof hook
(sizeAlignOf): corrected size computation for structures to
conform to [K&R A7.4.8]
(sizeAlignOf): improved handling of `DefinedET', which led to an
endless loop
* chs/CHS.hs: added sizeof hook
* chs/CHSLexer.hs: added keyword `sizeof'
* gen/GenBind.hs (evalConstCExpr): sizeof now supported
* lib/C2HSDeprecated.hs: includes Storable methods of the new
Storable in addition to those of the old
* toplevel/Version.hs (versnum): 0.9.8
2001-06-18 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c/CParser.hs (parseCExpr): `CComma' requires at least two
expressions; patch by Armin Sander <armin@mindwalker.org>
* toplevel/Version.hs (versnum): 0.9.7
2001-06-16 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* chs/CHS.hs: local prefix for enum hooks; courtesy of Armin
Sander <armin@mindwalker.org>
* gen/GenBind.hs (expandHook): correctly uses a `FunPtr' for
pointers to functional types
(setGet): no deep check required as set/get do not perform a deep
copy; bug reported by Armin Sander <armin@mindwalker.org>
(expandHook): local prefix for enum hooks; courtesy of Armin
Sander <armin@mindwalker.org>
* toplevel/Version.hs (versnum): 0.9.6
2001-05-20 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (enumInst): Fix for avoiding warnings when
generated bindings are compiled with -Wall contributed by Armin
Sander <armin@mindwalker.org>
2001-05-14 Axel Simon <simona@i2.informatik.rwth-aachen.de>
* toplevel/Main.hs, state/Switchboard.hs, chs/CHS.hs: add
-i flag which takes a colon separated list of search paths for
.chi files.
* fixed some bugs in parsing import hooks
2001-05-13 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.9.5
* gen/GenBind.hs (expandHook): revised to properly handle struct,
union, and enum tags as C identifiers in pointer hooks; also
handles non-abstract pointers with explicit "*" now better; the
problems were pointed out by Marcin Kowalczyk <qrczak@knm.org.pl>
* c/CTrav.hs (findTypeObjMaybe): added
(lookupDeclOrTag): added
(enumName): added
(tagName): added
* c/CLexer.hs (charconst): Patch from Armin Sander
<armin@mindwalker.org> regarding character constants
2001-05-11 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c2hs-config.in: Patch from Jens-Ulrik Petersen
<juhp@01.246.ne.jp> fixes $sys variable setting
* toplevel/Version.hs (versnum): 0.9.4
2001-05-06 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (extractCompType): rewrote that thing again
* c/CTrav.hs (checkForOneAliasName): added
2001-05-05 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c/CTrav.hs (chaseDecl): simplified
* gen/GenBind.hs (expandHook): debugged the pointer hook
* c/CTrav.hs (findAndChaseDecl): correction
* toplevel/Version.hs (versnum): 0.9.3
2001-05-03 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (expandHook): added import hook
(mergePtrMap): added
(dumpPtrMap): added
* chs/CHS.hs (loadCHI): added
(dumpCHI): added
(CHSHook): added `import' hook
* chs/CHSLexer.hs: Added the keywords `import' and `qualified'
* toplevel/Version.hs (versnum): 0.9.2
2001-05-02 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (extractCompType): as pointed out by Axel Simon,
we can't return `ForeignPtr's from imported foreign functions
(setGet): the `accessType' story is largely redundant with the new
formulation of `extractCompType', but we still need to check the
marshaled type
(setGet): `DefinedET' now takes a declaration rather than an
identifier as its first argument; this is necessary for anonymous
declerators
(extractCompType): functions are now extracted correctly
* c/CTrav.hs (isPtrDecl): works on identifiers now and chases
declarations
(dropPtrDeclr): added
* gen/GenBind.hs (extractCompType): completely rewrote this
function to properly handle pointer and function types and honour
aliases introduced by pointer hooks
2001-05-01 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c/CTrav.hs (isPtrDeclr): functions types without an explizit
pointer constructor are no longer regarded as pointers
* gen/CInfo.hs: renamed `CAddrPT' and `CFunAddrPT' to `CPtrPT' and
`CFunPtrPT', respectively
* gen/GenBind.hs (extractCompType): revised for pointer hooks
2001-04-30 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (setGet): uses FunPtr for functions
(extractPtrType): added
2001-04-28 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (expandHook): rewrote `alias'hook into `pointer' hook
* chs/CHS.hs: rewrote the `alias' hook into the `pointer' hook
* chs/CHSLexer.hs: removed `alias' token and added `pointer' and
`newtype'
* toplevel/Version.hs (versnum): 0.9.1
* gen/GenBind.hs: clean up
2001-04-21 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* chs/CHSLexer.hs: Added `(' and `)'
* chs/CHS.hs: Added code implementing the `alias' hook and the
`deriving' option for the `enum' hook. This code was contributed
by Axel Simon <simona_@web.de> (also related code in CHSLexer.hs);
but added parenthesis to `deriving'
* c/CTrav.hs: Added code implementing the `alias' hook, which
was contributed by Axel Simon <simona_@web.de>
* gen/GenBind.hs: The following patch was contributed by Axel
Simon <simona_@web.de>: `extractCompType' generates addresses
of type `Ptr <type>' instead of `Addr' (if `--old-ffi=no', which
is the default)
* configure.in: Adapted for ghc 5.00
* toplevel/Version.hs (versnum): 0.9.0 "Blue Ginger"
2001-02-22 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* lib/C2HSDeprecated.hs: Corrected String marshalling for 4.11;
suggested by Marcin 'Qrczak' Kowalczyk <qrczak@knm.org.pl>
2001-02-19 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c2hs-config.in: generated code needs -package lang for
compilation and linking
* toplevel/Version.hs (versnum): 0.8.3 "Gentle Moon"
2001-02-13 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* lib/NewStablePtr.hs.in: Adaptation layer for StablePtr for the
legacy FFI interface
2001-02-12 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* lib/C2HS.hs: Forgot to export `FunPtr' and associated functions
* lib/C2HSDeprecated.hs: Some exports had been missing
* c/CTrav.hs: Handle `CAttrs.BuiltinCO'
* c/CNames.hs (nameAnalysis): add builtin type definitions
* c/CBuiltin.hs: predefine `__builtin_va_list' as a
typedef'd name
* c/CParser.hs (parseCHeader): use `CBuiltin'
* toplevel/Version.hs (versnum): 0.8.2
2001-02-11 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* releasing version 0.8.1 "Gentle Moon"
* ../doc/c2hs/: Documentation updated & added the Haskell FFI
Marshalling Library specification
2001-02-09 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* lib/Makefile: Debugging for 4.11
2001-02-05 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* toplevel/C2HSConfig.hs.in: Moved the primitive characteristics
table to `CInfo' (it is based now on getting the information from
the FFI of the Haskell compiler compiling c2hs)
* gen/CInfo.hs: Added
2001-02-04 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* lib/C2HSMarsh.hs: Moved almost everything to `C2HSDeprecated'
* lib/C2HSBase.hs: Much simplified conversion routines and the old
`Storable' definition died
2001-02-03 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* configure.in: Removed all the stuff that had to be there for the
late `lib/C2HSConfig.hs.in'
* lib/C2HSConfig.hs.in: RIP - All the relevant information is now
available from the Standard FFI
* C2HSDeprecated.hs: Added old C type names
* lib/C2HS.hs: Added support for the New FFI Libraries (so that
they are also useable with Haskell systems only supporting the old
libraries)
2000-08-22 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* lib/C2HSDeprecated.hs: contains a compatibility interface to the
"Afterthought" series
2000-08-18 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.8.0 "Gentle Moon"
** WARNING: Only the FFI of GHC 4.08 upwards is supported **
** WARNING: Code breaking changes to the marshalling library **
** Compatibility library provided **
2000-08-12 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* lib/C2HSBase.hs (IntConv): instances for Int8, Word8, and Char
* toplevel/Version.hs (versnum): 0.7.10
2000-08-06 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* chs/CHS.hs (showCHSTrans): corrected syntax
(parseTrans): comma now correctly required after underscoreToCase
* gen/GenBind.hs (transTabToTransFun): properly handles prefixes
in the translation function
(enumDef): prefixes are now generally removed from enumerators
without the constraint that the prefix has to be removed from all
enumerators or none
2000-08-04 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (usualArithConv): forgot a case; patch
contributed by Axel Simon <simona@pool.Informatik.rwth-aachen.de>
* toplevel/Version.hs (versnum): 0.7.9
2000-07-06 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (specType.matches): forgot a case; bug spotted by
Axel Simon <simona@pool.Informatik.rwth-aachen.de>
* lib/C2HSBase.hs (plusAddr): ugly kludge for GHC 4.08 (doesn't
work with any older version for the moment)
* toplevel/Version.hs (versnum): 0.7.8
2000-04-15 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* c/CLexer.hs (pragma): ignores `#pragma's
* toplevel/Version.hs (versnum): 0.7.7
2000-04-09 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* mk/config.mk.in: added
* gen/GenBind.hs: added `long long's
(specType): added error message for unsupported types
* lib/C2HSConfig.hs.in: added `long long's
* toplevel/C2HSConfig.hs.in: added `long long's
* toplevel/Version.hs (versnum): 0.7.6
2000-04-08 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* configure.in: corrected sed expression for Solaris
2000-03-02 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* tests/Makefile: added & revised all the tests
* configure.in: debugging
2000-03-01 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* lib/C2HSMarsh.hs (addrWithMarkerToList): debugged
2000-02-28 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (expandHook): adapted to new `CHSContext' def
* c/CParser.hs: Using `Utils.Tag' class to make `CToken' an instance of
`Token'
* c/CLexer.hs: Making `CToken' an instance of `Utils.Tag' instead
of `Eq'
2000-02-25 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* chs/CHS.hs: added `header' tag in context hook
* chs/CHSLexer.hs: added keyword `header'
* c/CLexer.hs, c/CParser.hs, c/CAST.hs: added C99 type qualifier
`restrict'; thanks to "Marcin 'Qrczak' Kowalczyk"
<qrczak@knm.org.pl> for pointing this out
2000-02-24 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* gen/GenBind.hs (foreignImport): system-dependent library suffix
* configure.in,toplevel/C2HSConfig.hs.in: DLSUFFIX
2000-02-23 Manuel M. T. Chakravarty <chak@cse.unsw.edu.au>
* toplevel/Version.hs (versnum): 0.7.5
1999-12-04 Manuel M. T. Chakravarty <chak@is.tsukuba.ac.jp>
* lib/C2HSBase.hs (BoolConv): added
1999-11-24 Manuel M. T. Chakravarty <chak@is.tsukuba.ac.jp>
* ../doc/c2hs/Makefile: corrections by Michael Weber
<michael.weber@Post.RWTH-Aachen.DE>
1999-11-17 Manuel M. T. Chakravarty <chak@is.tsukuba.ac.jp>
* Man pages and debianisation, courtesy of Michael Weber
<michael.weber@Post.RWTH-Aachen.DE>
* c/CNames.hs: no new range for tag definitions is started when
entering a struct declaration list or a parameter list; thanks to
Volker Wysk <volker.wysk@student.uni-tuebingen.de> for the bug report
* c/CAttrs.hs (enterNewObjRangeC): added
(leaveObjRangeC): added
1999-11-16 Manuel M. T. Chakravarty <chak@is.tsukuba.ac.jp>
* c/CTrav.hs (extractAlias): now correctly handles anonymous
declarations; introduced new function `declaredDeclr'; thanks to
Michael Weber <michael.weber@Post.RWTH-Aachen.DE> for the bug report
* toplevel/Version.hs (versnum): 0.7.4
1999-11-07 Manuel M. T. Chakravarty <chak@is.tsukuba.ac.jp>
* lib/C2HSBase.hs: adapted to new `assign' and `deref' routines
* gen/GenBind.hs: debugged
* c/CTrav.hs (extractStruct): takes care that forward declerations