]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libcupsfilters: Code clean-up for code of libcupsfilters
authorTill Kamppeter <till.kamppeter@gmail.com>
Thu, 29 Sep 2022 22:41:46 +0000 (00:41 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Thu, 29 Sep 2022 22:41:46 +0000 (00:41 +0200)
commit20774d05848aaa3245ceaaf8d9e96f838fbe995c
treee764ba17b5ae77d990e4fd988c622b4efb487e2e
parent282b60cba42bf72e68642679bbc8d8e73b80c88e
libcupsfilters: Code clean-up for code of libcupsfilters

Cleaned up the second bunch of source code files of libcupsfilters in
the cupsfilters/ directory itself (no sub-directory) following the
coding style rules in the DEVELOPING.md file of the CUPS source code.

Comments are re-formatted to use "// ..." instead of "/* ... */", like
in PAPPL, so C and C++ files get the same comment style.

This improves the readability of the code a lot, especially as missing
spaces got inserted in comma-separated lists ("xxx,yyy,zzz" -> "xxx,
yyy, zzz") and around operators ("x=a*(b+c)%4" -> "x = a * (b + c) %
4"), what got nearly completely missed out by several contributors.

Also we get rid of the mix of many different coding styles which came
together from the many code contributions rteceived during more than a
decade, even before the start of the cups-filters project.
14 files changed:
cupsfilters/ghostscript.c
cupsfilters/ieee1284.c
cupsfilters/ieee1284.h
cupsfilters/image-bmp.c [deleted file]
cupsfilters/image-colorspace.c
cupsfilters/image-jpeg.c
cupsfilters/image-png.c
cupsfilters/image-private.h
cupsfilters/image-tiff.c
cupsfilters/image-zoom.c
cupsfilters/image.c
cupsfilters/image.h
cupsfilters/imagetopdf.c
cupsfilters/imagetoraster.c