]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libcupsfilters: Code clean-up for code of libcupsfilters
authorTill Kamppeter <till.kamppeter@gmail.com>
Thu, 6 Oct 2022 15:59:38 +0000 (17:59 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Thu, 6 Oct 2022 15:59:38 +0000 (17:59 +0200)
commit108cd7082764f4f1000bbdc42eb0a19eec8aaf9e
treef634cf9e3beb3abd0f5a69cf1b6916de59a63ebe
parent20774d05848aaa3245ceaaf8d9e96f838fbe995c
libcupsfilters: Code clean-up for code of libcupsfilters

Completed the code clean-up of the source 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 received during more than a
decade, even before the start of the cups-filters project.
27 files changed:
cupsfilters/catalog.c
cupsfilters/colord.c
cupsfilters/ghostscript.c
cupsfilters/imagetopdf.c
cupsfilters/imagetoraster.c
cupsfilters/ipp.c
cupsfilters/ipp.h
cupsfilters/log.h
cupsfilters/lut.c
cupsfilters/mupdftopwg.c
cupsfilters/pack.c
cupsfilters/pclmtoraster.cxx
cupsfilters/pdf.cxx
cupsfilters/pdf.h
cupsfilters/pdftoraster.cxx
cupsfilters/pdfutils.c
cupsfilters/pdfutils.h
cupsfilters/pwgtopdf.cxx
cupsfilters/pwgtoraster.c
cupsfilters/raster.c
cupsfilters/raster.h
cupsfilters/rastertopwg.c
cupsfilters/rgb.c
cupsfilters/srgb.c
cupsfilters/texttopdf.c
cupsfilters/texttotext.c
cupsfilters/universal.c