10 Commits

Author SHA1 Message Date
axxel
f41df32817 fix white-space and indentation inconsistencies (second round)
This is basically a continuation of the work from #1002 but her for the
camlibs directory. The purpose was to replace spaces as a means for
indentation with tab characters.

Note: there are some files which are still offending the general
rule but are (mostly) consistent within themselves. I let them be for
the moment. Fixing them would basically replace the whole file.

Also: there are still a ton of whitespace related inconsistencies like
"x=10" vs "x = 10" or "func(10)" vs "func (10)".

This is a whitespace only change (if you include newlines as whitespace).
2024-09-15 10:53:41 +02:00
axxel
87e158c23e introduce helper function aprintf(fmt, ...) (#1010)
This replaces the verbose and error prone pattern of calling
    str = malloc(strlen("some value is 12345678"));
    sprintf(str, "some value is %d", val)
with
    str = aprintf(some value is %d", val);


This is similar to the GNU function asprintf() but returns the pointer
instead of assigning it to the first parameter. It uses the existing
gpi_vsnprintf(fmt, va_list) function.
2024-09-12 13:07:52 +02:00
axxel
742b4db660 White space cleanup #3 (#1005)
* remove trailing whitespace in *.c/*.h files

This is now 'enforced' via .editoconfig. Do it here once to prevent random
ws changes during editing.

* Cleanup intra-line whitespace in large submenu tables in config.c

Consistently use spaces to layout columns, to make it independent of tab
size.

---------

Co-authored-by: axxel <awagger@web.de>
2024-09-05 14:55:44 +02:00
axxel
1dabc5a523 remove unnecessary if (not-null) check before calling free() (#1001)
Co-authored-by: axxel <awagger@web.de>
2024-09-05 09:25:16 +02:00
luzpaz
dfde313175 Fix various typos in the codebase (#923)
* Fix various typos

Found via `codespell -q 3 -S "*.po" -L clen,donn,informations,udo`

* Fix typos in camlibs/

* Fix typos in ChangeLog
2023-09-03 17:04:21 +02:00
Marcus Meissner
6a8a41e7a5 better comments 2021-10-02 12:02:18 +02:00
Hans Ulrich Niedermann
0f5195cc89 use the proper word
libraries are also binaries. What this comment talks about is
executables (the stuff with main() functions).
2021-09-30 18:06:29 +02:00
Marcus Meissner
cf20840d73 added comment how to build fuzzer, and current problems 2021-09-28 11:09:14 +02:00
Marcus Meissner
e9548fd45e added sample-libfuzz ... semi-uable for libfuzzer 2021-09-27 13:48:44 +02:00
Marcus Meissner
c0d4de1eca start a sample for libfuzz 2021-09-26 14:03:32 +02:00