-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
822 lines (599 loc) · 26.3 KB
/
ChangeLog
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
2010-06-25 Lars Hartmann <[email protected]>
Fixed some minor things (thanks clang compiler-warnings :-):
* test/03_lpatom_parse.c (main): yes one should actually give
parameters to printf..
* src/liblpatom.c: reformatted.
* test/01_lputil_splitstr.c: fixed compiler warnings and added
error handling for fgets calls.
2009-09-04 Lars Hartmann <lars (at) chaotika (dot) org>
Fixed Shellutils:
* bin/lp_atomcompare.c: will now return 0 and print out the output
of lpatom_cmp.
Added shellutils using libportage provided by Patrick Lauer:
* bin/lp_atomcompare.c: added.
* bin/lp_isatom.c: added.
2009-08-30 Lars Hartmann <lars (at) chaotika (dot) org>
Fixed lputil_int64len test:
* test/01_lputil_int64len.c: replaced lputil_intlen function call
with lputil_int64len.
Used inttypes.h printf macros to make it work on 32bit platforms too.
Cleaned up error handling:
* src/liblpxpak.c: Replaced individual cleanup routines with gotos.
* src/liblpversion.c (lpversion_compile): added missing return.
Optimized replacement functions:
* replace/stpcpy.c: beautified.
* replace/strndup.c: fastified.
2009-08-28 Lars Hartmann <lars (at) chaotika (dot) org>
Cleaned up tests:
* test/04_lpxpak.c: replaced multiple repeated bailout code with
gotos.
* test/05_lparchives.c: fixed possible error when calling close(2)
after open(2) failed.
Fixed compiler warnings:
* src/liblpatom.c: added declaration for stpcpy if we are using glibc.
* src/liblputil.c: added declaration for stpcpy if we are using glibc.
* src/liblpversion.c: added declaration for stpcpy if we are using glibc.
(lpversion_version_compile): removed unused variable len.
2009-08-27 Lars Hartmann <lars (at) chaotika (dot) org>
Cleaned up test for lparchive:
* test/05_lparchives.c: replaced multiple bailout-code with goto.
Fixed Compile error:
* test/05_lparchives.c (test_lparchives_extract): fixed syntax error.
Fixed bug only occuring in make distcheck, because autotools do
set crazy file permissions:
* test/05_lparchives.c : added workaround.
Fixed "cant make target whatever/libportage.la" error:
* test/Makefile.am: added relative paths.
Fixed SIGABRT in test:
* test/05_lparchives.c (test_lparchives_extract): one should
return if an error has occured ;-).
2009-08-26 Lars Hartmann <lars (at) chaotika (dot) org>
Changed bug email-address:
* configure.ac: changed email-address.
* test/valgrind-wrapper: removed.
* test/Makefile.am (METASOURCES): removed valgrind wrapper.
switched to old libtool based tests.
* configure.ac: removed valgrind hacks.
removed ugly libtool-hack.
* replace/replace.h : included stdlib.h to fix a bug on some
systems which actually need those replace functions.
added include-guards.
2009-06-22 Lars Hartmann <lars (at) chaotika (dot) org>
Added asciidoc support to build framework:
* doc/Makefile.am: added build options.
* configure.ac: added an --enable-asciidoc switch and checks for
asciidoc(1) and a2x(1).
Removed obsolete non-asciidoc files:
* doc/xpak.5: removed.
* doc/xpak.txt: removed.
* doc/xpak.html: removed.
* doc/Makefile.am: removed xpak.txt and xpak.html from doc_DATA
and EXTRA_DIST.
* doc/Makefile.am (EXTRA_DIST): added asciidoc file to
distribution.
2009-06-10 Lars Hartmann <lars (at) chaotika (dot) org>
* configure.ac: replaced bash code by POSIX sh code.
* doc/xpak.5.txt: rewritten doc/xpak.txt in asciidoc.
added "DEDICATED TO" section.
added "CREDITS" section.
2009-06-08 Lars Hartmann <lars (at) chaotika (dot) org>
* release.sh: removed lzma distribution and added zip
distribution.
2009-06-05 Lars Hartmann <lars (at) chaotika (dot) org>
* release.sh: added copyright header.
added option to sign generated distribution-archives.
added option to give version string as parameter.
* build_release.sh: renamed to release.sh.
* doc/xpak.html: added html version of doc/xpak.txt.
2009-05-29 Lars Hartmann <lars (at) chaotika (dot) org>
Added lpatom_compile:
* test/03_lpatom_parse.c: added test for lpatom_compile.
* src/liblpatom.c (lpatom_compile): added.
Added lpversion_compile:
* test/02_lpversion_parse.c: added test for lpversion_compile.
* src/liblpversion.c (lpversion_suffix_compile): added.
(lpversion_version_compile): added.
(lpversion_compile): added.
2009-05-28 Lars Hartmann <lars (at) chaotika (dot) org>
Added header for replacement functions:
* src/liblputil.c: ainclude replace.h
* src/Makefile.am (AM_CPPFLAGS): added replace-dir.
* replace/Makefile.am (EXTRA_DIST): added replace.h to the
distribution package.
* replace/replace.h: added.
* replace/stpcpy.c (stpcpy): fixed memory error.
* src/liblputil.c (lputil_joinstr): rewritten to use stpcpy(3)
instead of strcat(3).
Added replacement for stpcpy:
* replace/stpcpy.c (stpcpy): added.
* configure.ac (AC_REPLACE_FUNCS): added stpcpy.
added lputil_int64len:
* test/01_lputil_int64len.c: added tests for lputil_int64len.
* test/Makefile.am: added tests for lputil_int64len.
* include/util.h (lputil_int64len): added prototype.
* src/liblputil.c (lputil_int64len): added.
2009-05-27 Lars Hartmann <lars (at) chaotika (dot) org>
* src/liblpversion.c (lpversion_reset): does now reset the suffix
enum too.
2009-05-19 Lars Hartmann <lars (at) chaotika (dot) org>
Changed parameters to const:
* src/liblpversion.c (lpversion_suffix_parse): updated.
* include/version.h (lpversion_parse): updated.
2009-05-13 Lars Hartmann <lars (at) chaotika (dot) org>
* test/Makefile.am (02_lpversion_parse_SOURCES): added
02_lpversion_parse.txt.
* test/01_lputil_splitstr.c: extended test to use lputil_joinstr()
and check if the returned string is the same as the one originally
fed to lputil_splitstr().
* src/liblputil.c (lputil_joinstr): added string join function.
* src/liblpatom.c (lpatom_init): fixed compile error which was
introduced by commit d1649c56802cb5ea25a3fbec51495ab9c1a3a2e2.
* src/liblpatom.c: fixed some lint(1) warnings.
* src/liblpatom.c (lpatom_init): renamed symbol atom to handle.
2009-05-12 Lars Hartmann <lars (at) chaotika (dot) org>
* src/liblputil.c (lputil_splitstr): fixed buffer overflow.
2009-05-07 Lars Hartmann <lars (at) chaotika (dot) org>
Random Doxygen documentation updates:
* include/archives.h: updated.
* include/atom.h: updated.
* include/util.h: updated
* include/version.h: updated.
* include/xpak.h: updated.
2009-05-06 Lars Hartmann <lars (at) chaotika (dot) org>
* test/03_lpatom_parse.txt: added some more tests.
Move tests for lpversion before lpatom:
* test/02_lpatom_parse.c: renamed to 03_lpatom_parse.c.
* test/02_lpatom_parse.txt: renamed to 03_lpatom_parse.txt.
* test/03_lpxpak.c: renamed to 04_lpxpak.c.
* test/03_lpxpak.tbz2: renamed to 04_lpxpak.tbz2.
* test/04_lparchives.c: renamed to 05_lparchives.c.
* test/04_lparchives.tbz2: renamed to 05_lparchives.tbz2.
* test/04_lparchives.txt: renamed to 05_lparchives.txt.
* test/05_lpversion_parse.c: renamed to 02_lpversion_parse.c.
* test/05_lpversion_parse.txt: renamed to 02_lpversion_parse.txt.
* test/Makefile.am: updated.
* test/05_lparchives.c: updated.
* test/04_lpxpak.c: updated.
* test/03_lpatom_parse.c: updated.
* test/02_lpversion_parse.c: updated.
Updated tests for lpatom:
* test/02_lpatom_parse.txt: updated.
* test/02_lpatom_parse.c: updated.
Rewritten lpatom with support for lpversion:
* include/atom.h: updated.
* src/liblpversion.c: rewritten.
* include/version.h (lpversion_init): corrected documentation.
Replaced latex like formatting codes with jdoc like formatting codes:
* src/liblpxpak.c: updated.
* include/xpak.h: updated.
* include/util.h: updated.
* include/archives.h: updated.
2009-04-26 Lars Hartmann <lars (at) chaotika (dot) org>
Added tests for lpversion_parse:
* test/Makefile.am: added 05_lpversion_parse.
* test/05_lpversion_parse.txt: added.
* test/05_lpversion_parse.c (main): added.
Added lpversion:
* src/Makefile.am (libportage_la_SOURCES): added liblpversion.c
* include/Makefile.am (header_HEADERS): added version.h.
* src/liblpversion.c: added.
* include/version.h: added.
2009-04-25 Lars Hartmann <lars (at) chaotika (dot) org>
* test/valgrind-wrapper: simplified and cleaned up.
2009-04-20 Lars Hartmann <lars (at) chaotika (dot) org>
Fixed several lint warnings:
* src/liblpatom.c: fixed.
* src/liblpxpak.c: fixed.
* src/liblparchives.c: fixed.
2009-03-31 Lars Hartmann <lars (at) chaotika (dot) org>
* include/archives.h: extended.
2009-03-28 Lars Hartmann <lars (at) chaotika (dot) org>
* test/Makefile.am: simplified some tests and added
valgrind-wrapper to EXTRA_DIST.
2009-03-27 Lars Hartmann <lars (at) chaotika (dot) org>
Added valgrind test-support:
* test/valgrind-wrapper: Added wrapper script for calling tests
with valgrind.
* configure.ac: Added --enable-valgrind switch and some checks.
* test/Makefile.am: Replaced libtool linking by static
linking(required for valgrind to work).
Check if --enable-valgrind was given to configure and start tests
through valgrind-wrapper if so.
Added support for archives:
* test/Makefile.am: added targets for test/04_lparchives.
* test/04_lparchives.tbz2: added.
* test/04_lparchives.txt: added.
* test/04_lparchives.c: added.
* src/liblparchives.c: added.
* include/archives.h: added.
Rewrote the License for text documents:
* doc/binary_packages.txt: updated license.
* doc/xpak.txt: updated license.
* doc/xpak.5: updated license.
* replace/strndup.c: added compiler checks.
2009-03-26 Lars Hartmann <lars (at) chaotika (dot) org>
Moved compiler checks from common.h into the headers and removed
common.h:
* include/Makefile.am (header_HEADERS): removed common.h from the
list headers.
* src/liblpxpak.c: added c++ compiler checks.
* src/liblputil.c: added c++ compiler checks.
* src/liblpatom.c: added c++ compiler checks.
* include/xpak.h: added c++ compiler checks. removed include of
common.h
* include/util.h: added c++ compiler checks. removed include of
common.h
* include/atom.h: added c++ compiler checks. removed include of
common.h
* include/common.h: removed.
2009-03-25 Lars Hartmann <lars (at) chaotika (dot) org>
* include/dependency.h: removed obselete draft.
2009-03-24 Lars Hartmann <lars (at) chaotika (dot) org>
* test/02_lpatom_parse.c: fixed compiler warning due to missing
include.
2009-03-22 Lars Hartmann <lars (at) chaotika (dot) org>
* TODO: updated.
* doc/binary_packages.txt: added.
* replace/strndup.c: fixed compiler error.
2009-03-21 Lars Hartmann <lars (at) chaotika (dot) org>
* doc/Requirements.txt: updated.
2009-03-20 Lars Hartmann <lars (at) chaotika (dot) org>
Added test for lputil_intlen():
* test/Makefile.am: added 01_lputil_intlen.
* test/01_lputil_intlen.c: added.
Added test for lputil_splitstr():
* test/Makefile.am: added 01_lputil_splitstr.
* test/01_lputil_splitstr.c: added.
2009-03-19 Lars Hartmann <lars (at) chaotika (dot) org>
Renamed tests:
* test/02_lpxpak_parse.c: renamed to test/03_lpxpak.c.
* test/02_lpxpak_parse.tbz2: renamed to test/03_lpxpak.tbz2.
* test/01_lpatom_parse.c: renamed to test/02_lpatom_parse.c.
* test/01_lpatom_parse.txt: renamed to test/02_lpatom_parse.txt.
* src/liblputil.c (lputil_splitstr): rewritten with strstr instead
of strtok.
* test/01_lpatom_parse.c (main): fixed identing.
2009-03-18 Lars Hartmann <lars (at) chaotika (dot) org>
* include/util.h: removed lputil_strndup.
* src/liblputil.c: removed lputil_strndup.
2009-03-17 Lars Hartmann <lars (at) chaotika (dot) org>
Added replacement function for strndup:
* replace/strndup.c: added.
* replace/Makefile.am: added.
* configure.ac: added replacement-test for strndup
* Makefile.am (SUBDIRS): added path to replacement lib.
* src/Makefile.am (libportage_la_LIBADD): added replacement lib.
Cleaned up Build Framework:
* Makefile.am (SUBDIRS): renamed t to test
* configure.ac (AC_CONFIG_AUX_DIR): changed to put most config
files into config/.
(AC_CONFIG_FILES): renamed t to test.
removed unnecessary header checks.
* t: renamed to test.
* acinclude.m4: set default DOXYGEN settings.
2009-03-16 Lars Hartmann <lars (at) chaotika (dot) org>
Added some files to the distribution:
* Makefile.am (EXTRA_DIST): added doxygen.cfg.
* doc/Makefile.am (EXTRA_DIST): added xpak.txt.
Added Doxygen support to build framework:
* Makefile.am: included aminclude.am.
* doc/doxygen/api-doc: moved to doxygen.cfg.
* doxygen.cfg: replaced constants with DX_ macros.
* configure.ac: added DX_ macros.
* acinclude.m4: added.
* aminclude.am: added.
* configure.ac: small format fix.
* doc/.gitignore: added.
* doc/Requirements.txt: updated Requirements.
Updated preprocessor macros:
* src/liblpatom.c: updated formatting of preprocessor macros.
* include/common.h: updated formatting of preprocessor macros.
2009-03-13 Lars Hartmann <lars (at) chaotika (dot) org>
Moved doxygen dir and modified doxyfile for api-doc:
* doxygen/: moved to doc/doxygen.
* doc/doxygen/api-doc (INPUT): removed src/ dir from api-doc.
(FILE_PATTERNS): let api-doc only document header files.
* configure.ac: added AC_C_CONST and AC_C_INLINE.
* TODO: updated TODO.
* README: replaced stub with content.
Switched Project to 2clause BSD License:
* t/02_lpxpak_parse.c: added license header.
* t/01_lpatom_parse.c: added license header.
* src/liblpxpak.c: deleted 3rd clause.
* src/liblputil.c: deleted 3rd clause.
* src/liblpatom.c: deleted 3rd clause.
* include/util.h: deleted 3rd clause.
* include/xpak.h: deleted 3rd clause.
* include/dependency.h: deleted 3rd clause.
* include/common.h: added license header.
* include/atom.h: deleted 3rd clause.
* doc/xpak.txt: deleted 3rd clause.
* doc/xpak.5: deleted 3rd clause.
* COPYING: deleted 3rd clause.
2009-03-12 Lars Hartmann <lars (at) chaotika (dot) org>
added Makefile for Documentation folder.
* configure.ac (AC_CONFIG_FILES): added doc/Makefile.
* Makefile.am (SUBDIRS): added doc.
* doc/Makefile.am: added.
2009-03-11 Lars Hartmann <lars (at) chaotika (dot) org>
* doc/xpak.5: added roff version of xpak.txt.
added Copyright header and Authors section.
2009-03-06 Lars Hartmann <lars (at) chaotika (dot) org>
Optimized Allignment of structs:
* include/xpak.h (lpxpak_entry): optimized allignment.
(lpxpak): optimized allignment.
(lpxpak_blob): optimized allignment.
* include/atom.h (lpatom): optimized allignment.
* src/liblpxpak.c (lpxpak_index_entry): optimized allignment.
(lpxpak_index): optimized allignment.
Fixed compile Error:
* src/liblpatom.c: fixed incorrect enum member names.
2009-03-04 Lars Hartmann <lars (at) chaotika (dot) org>
Renamed enums to match their typedefs:
* include/atom.h (lpatom_sufe_t): renamed anonym enum to
lpatom_sufe.
(lpatom_sufe): made enum elements uppercase and added LP_ prefix.
* include/dependency.h (lpdependency_type_t): renamed anonym enum
to lpdependency_type.
(lpdependency_type): made enum elements uppercase and added LP_
prefix.
Renamed Structs to match their typedefs:
* src/liblpxpak.c (lpxpak_index_entry_t): renamed anonym struct to
lpxpak_index_entry.
(lpxpak_index_t): renamed anonym struct to lpxpak_index
* include/dependency.h (lpdependency_t): renamed anonym struct to
lpdependency.
* include/xpak.h (lpxpak_entry_t): renamed anonym struct to
lpxpak_entry.
(lpxpak_t): renamed anonym struct to lpxpak
(lpxpak_blob_t): renamed anonym struct to lpxpak_blob
* include/atom.h (lpatom_t): renamed anonym struct to lpatom.
(lpatom_regex): renamed anonym struct to lpatom_regex.
2009-03-03 Lars Hartmann <lars (at) chaotika (dot) org>
Renamed defines:
* include/util.h (__LPUTIL): renamed to LPUTIL and set value to 1.
* include/common.h (__LPCOMMON_H): renamed to LPCOMMON and set
value to 1.
* include/atom.h (__LPATOM): renamed to LPATOM and set value to 1.
* include/xpak.h (__LPXPAK): renamed to LPXPAK and set value to 1.
* doc/Requirements.txt: added user-requested requirements.
2009-03-02 Lars Hartmann <lars (at) chaotika (dot) org>
Started to add Design Documents:
* doc/Requirements.txt: added.
2009-03-01 Lars Hartmann <lars (at) chaotika (dot) org>
* include/Makefile.am: renamed entries.
2009-02-27 Lars Hartmann <lars (at) chaotika (dot) org>
* configure.ac: removed unneeded tests.
2009-02-21 Lars Hartmann <lars (at) chaotika (dot) org>
* src/liblpxpak.c (lpxpak_parse_fd): replaced EBADFD with the
posix equivalent EBADF.
* t/Makefile.am (02_lpxpak_parse_LDADD): replaced absolute with
relative path to fix distcheck target.
* t/02_lpxpak_parse.c: updated to work with the new object based
xpak api.
* include/xpak.h: Migrated the xpak code to an object based model.
* src/liblpxpak.c: Migrated the xpak code to an object based model.
* t/Makefile.am (check-syntax): added target for emacs flyspell.
2009-02-20 Lars Hartmann <lars (at) chaotika (dot) org>
* t/Makefile.am: replaced relative with absolute paths.
2009-02-19 Lars Hartmann <lars (at) chaotika (dot) org>
* doc/xpak.txt: grammar and typo fixes (thanks to Leonie Herzberg)
2009-02-16 Lars Hartmann <lars (at) chaotika (dot) org>
* src/liblpxpak.c (LPXPAK_INT_SIZE): added.
replaced every occurence of "sizeof(lpxpak_int_t)" with
LPXPAK_INT_SIZE.
comments++.
Updated Tests:
* t/02_lpxpak_parse.c: does now work with distcheck
* t/01_lpatom_parse.c: does now work with distcheck
added error handling.
* t/Makefile.am (AM_CPPFLAGS): added -g to CFLAGS
2009-02-12 Lars Hartmann <lars (at) chaotika (dot) org>
* src/liblpxpak.c: updated documentation.
* .gitignore: added all the autotools generated stuff plus the
stuff that gets produced during compile-time.
2009-02-11 Lars Hartmann <lars (at) chaotika (dot) org>
* src/liblpxpak.c (lpxpak_indexblob_compile): fixed typo.
2009-02-10 Lars Hartmann <lars (at) chaotika (dot) org>
* configure.ac: added check for some headers and functions.
* src/liblpxpak.c: #include memory.h if existant
* src/liblputil.c: #include memory.h if existant.
2009-02-09 Lars Hartmann <lars (at) chaotika (dot) org>
* include/liblpatom.h: renamed to atom.h
* include/liblpcommon.h: renamed to common.h
* include/liblputil.h: renamed to util.h
* include/liblpxpak.h: renamed to xpak.h
* include/dependency.h: added.
2009-02-08 Lars Hartmann <lars (at) chaotika (dot) org>
* TODO: updated.
Migrating tests to Autotools:
* t/: cleaned up.
* src/liblputil.c: #include memory.h if existant.
* Makefile.am (SUBDIRS): added t/.
* configure.ac (AC_CONFIG_FILES): added t/Makefile.
* t/01_lpatom_parse.c: modified to fit new filenames and to be silent.
* t/02_lpxpak_parse.c: modified to fit new filenames and to be silent.
* t/Makefile.am: added.
Migration to Autotools:
* include/liblpcommon.h: added header for (BEGIN|END)_C_DECLS
definitions.
* include/liblpatom.h: added (BEGIN|END)_C_DECLS macros.
* include/liblputil.h: added (BEGIN|END)_C_DECLS macros.
* include/liblpxpak.h: added (BEGIN|END)_C_DECLS macros.
* lib/liblpatom.c: added (BEGIN|END)_C_DECLS macros.
added tests for autoconf Defines.
* lib/liblputil.c: added (BEGIN|END)_C_DECLS macros.
added tests for autoconf Defines.
* lib/liblpxpak.c: added (BEGIN|END)_C_DECLS macros.
added tests for autoconf Defines.
* lib/: renamed to src/.
* COPYING: added.
* Makefile.am: added.
* configure.ac: added.
* include/Makefile.am: added.
* src/Makefile.am: added.
* Makefile: removed.
* src/Makefile: removed.
2009-02-05 Lars Hartmann <lars (at) chaotika (dot) org>
Added new test-framework:
* t/Makefile: updated to match new test framework.
* t/test.sh: added.
* t/lpxpak/Makefile: added.
* t/lpatom/Makefile: added.
* t/atom_test.c: moved to t/lpatom/atom_parse.test.c
* t/atom_positive.txt: moved to t/lpatom/atom_positive.txt
* t/xpak_test.c: moved to t/lpxpak/xpak_parse.test.c
* t/xpak_test.tbz2: moved to t/lpxpak/xpak_parse.test.tbz2
2009-02-03 Lars Hartmann <lars (at) chaotika (dot) org>
Updated liblpatom to a Object based model:
* lib/liblpatom.c (lpatom_parse): fixed memleak.
(lpatom_parse): does now return an int.
(lpatom_destroy): introduced object based model.
* t/atom_test.c: modified to work with new, object based lpatom.
2009-02-02 Lars Hartmann <lars (at) chaotika (dot) org>
Updated liblpatom to a Object based model:
* include/liblpatom.h (lpatom_t): added regex member which is a
struct of several regex_t objects.
* lib/liblpatom.c (lpatom_reinit): added.
(lpatom_parse): introduced object based model.
(lpatom_suffix_parse): introduced object based model.
Updated Error Codes:
* lib/liblpxpak.c (lpxpak_parse_fd): returns EBADFD instead of
EINVAL if the fd is not opened for reading.
Test updates:
* t/Makefile (atom_test, xpak_test, test): simple test target added.
* t/atom_test.c : does now also check if lpatom_cmp works as expected.
2009-02-01 Lars Hartmann <lars (at) chaotika (dot) org>
Updated Copyright statements:
* COPYING: added.
* doc/xpak.txt: added 2009.
2009-01-31 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblputil.c (lputil_intlen): integer overflow
Fixed memleaks:
* lib/liblpatom.c (lpatom_get_version): fixed memleak.
* lib/liblpxpak.c (lpxpak_parse_fd): fixed memleak.
Made Doxygen work again:
* doxygen/api-doc: added path to include files.
* doxygen/dev-doc: added path to include files.
* Makefile: added variable paths.
Code Cleanup according to Hayati Ayguen's code review:
* lib/liblpxpak.c (lpxpak_index_init): split up into
lpxpak_index_create() and lpxpak_index_init().
(lpxpak_index_create): added.
(lpxpak_index_resize): changed to use lpxpak_init.
(lpxpak_init): split up into lpxpak_create() and lpxpak_init().
(lpxpak_create): added.
(lpxpak_blob_init): split up into lpxpak_blob_create() and
lpxpak_blob_init().
(lpxpak_blob_create): added.
* lib/liblpatom.c (lpatom_cmp): rewritten from scratch.
(lpatom_get_fullname): cleaned up
(lpatom_get_version): rewritten from scratch.
(lpatom_get_suffix): rewritten from scratch.
(lpatom_init): split up into lpatom_create() and lpatom_init().
(lpatom_create): added.
* include/liblpatom.h (lpatom_sufe_t): extended documentation.
2009-01-30 Lars Hartmann <lars (at) chaotika (dot) org>
* t/xpak_test.c: cleaned up includes
Moved doxygen make targets:
* t/Makefile: deleted doxygen targets
* Makefile: moved doxygen targets here.
Moved header files to directory "include" :
* t/Makefile (INCS): changed to new header path.
* lib/Makefile (INCS): changed to new header path.
* lib/liblpatom.h: moved.
* lib/liblpxpak.h: moved.
* lib/liblputil.h: moved.
Added tests:
* Makefile: moved to t/Makefile
* t/atom_positive.txt: added.
* t/atom_test.c: added.
* t/xpak_test.c: added.
* t/xpak_test.tbz2: added.
2009-01-29 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblpxpak.c (lpxpak_datablob_init): added.
(lpxpak_datablob_destroy): added.
(lpxpak_datablob_compile): added.
(lpxpak_blob_compile): changed to use lpxpak_datablob_compile.
(lpxpak_datablob_compile): changed to return a lpxpak_blob_t (why
have 3 structs of the same kind for different purposes when you
can have one..)
(lpxpak_indexblob_compile): same as for lpxpak_datablob_compile.
(lpxpak_datablob_t): removed.
(lpxpak_indexblob_t): removed.
2009-01-28 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblpxpak.c (lpxpak_indexblob_init): added.
(lpxpak_indexblob_destroy): added.
(lpxpak_indexblob_destroy): added.
* lib/liblpxpak.h (lpxpak_parse_fd): changed to use the newly
introduced lpxpak_blob_get_fd
(lpxpak_parse_data): changed to use lpxpak_blob_t structures as
input.
(lpxpak_blob_t): added.
(lpxpak_get_blob_fd): added.
(lpxpak_blob_init): added.
(lpxpak_blob_destroy): added.
(lpxpak_get_blob_fd): changed to use newly introduced
lpxpak_blob_init().
(lpxpak_get_blob_fd): renamed to lpxpak_blob_get_fd().
(lpxpak_blob_get_path): added.
(lpxpak_blob_compile): added.
2009-01-27 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblpatom.c: fixed memleaks, buffer overflows and several
other memory related problems valgrind was complaining about.
2009-01-20 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblpatom.h: documented.
2009-01-19 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblpatom.c (lpatom_get_version): does now return the full
version (including suffix and release).
(lpatom_get_version): does now use strcat instead of manual string
handling.
(lpatom_get_fullname): does now use the new lpatom_get_version()
function instead of calling get_suffix, get_release.
(lpatom_get_fullname): does now use strcat instead of manual
string handling.
2009-01-18 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblpatom.c (lpatom_version_cmp): now we also compare the
suffix.
* lib/liblpatom.h (lpatom_cmp): added.
(lpatom_get_fullname): added.
2009-01-15 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblputil.c (lputil_splitstr_destroy): fixed segfault.
* lib/liblpatom.c (lpatom_parse): redone most of it, can be marked
as stable now.
(lpatom_version_explode): added.
* lib/liblpatom.h (lpatom_t): added member ver_ex (a int array
which holds the exploded version string.
(lpatom_version_cmp): added.
* lib/liblputil.h (lputil_splitstr_destroy): added.
(lputil_strndup): added.
2009-01-14 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblpatom.h (lpatom_get_version): added.
* lib/liblpatom.c (lpatom_suf_t): sufv member added.
(LPATOM_RE_SUFV): added.
(lpatom_suffix_parse): does now add sufv too.
* lib/liblputil.c (lputil_intlen): added
* lib/liblpatom.c (lpatom_parse_version): deleted.
(lpatom_parse): does now directly store the version string in the
struct.
* lib/liblpatom.h (lpatom_t): changed ver to nul terminated
C-String.
2009-01-12 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblpatom.c (lpatom_suffe_to_string): added
(lpatom_get_suffix): changed to use lpatom_suffe_to_string()
2009-01-09 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/Makefile: modified to produce propperly linked dynamic objects
2009-01-08 Lars Hartmann <lars (at) chaotika (dot) org>
* lib/liblputil.h: added comments
* lib/liblpatom.h: added comments
* lib/liblpatom.c renamed REGEXP defines
(lpatom_init): does now also do the allocation.
(lpatom_suffix_init): does now also do the allocation.
(__lpatom_parse_suffix): fixed segv
* lib/liblpxpak.h: added lpxpak_get
* lib/liblpxpak.c (lpxpak_get): added
* lib/liblputil.h: added comments.
(lputil_substr): renamed parameter oes to off and oe to len.
* Changelog: started logging to a Changelog
* lib/Makefile: cleaned it up and made check-syntax CFLAG aware
* Makefile: added some variables