]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libppd: Code clean-up for code of libppd
authorTill Kamppeter <till.kamppeter@gmail.com>
Sat, 15 Oct 2022 13:23:10 +0000 (15:23 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Sat, 15 Oct 2022 13:23:10 +0000 (15:23 +0200)
commit96bd49ad05a79fb1704d15af1999c91ef83383f0
tree634e41481e1739cee2aeea951ea859ab98c96239
parent714b41332ed93af0567e8f21d19f19f3d2208183
libppd: Code clean-up for code of libppd

Cleaned up the code following the coding style rules in the
DEVELOPING.md file of the CUPS source code.

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.

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

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.

In addition, all the file's header comments reflect the new license,
Apache 2.0, the same license as used for CUPS.
70 files changed:
ppd/array-private.h
ppd/array.c
ppd/debug-internal.h
ppd/debug-private.h
ppd/debug.c
ppd/encode.c
ppd/epson.h
ppd/file-private.h
ppd/file.c
ppd/genstrings.cxx
ppd/hp.h
ppd/imagetops-pstops.c
ppd/ipp-private.h
ppd/label.h
ppd/language-private.h
ppd/language.c
ppd/pdftops.c
ppd/ppd-attr.c
ppd/ppd-cache.c
ppd/ppd-collection.cxx
ppd/ppd-conflicts.c
ppd/ppd-custom.c
ppd/ppd-emit.c
ppd/ppd-filter.c
ppd/ppd-filter.h
ppd/ppd-generator.c
ppd/ppd-ipp.c
ppd/ppd-load-profile.c
ppd/ppd-localize.c
ppd/ppd-mark.c
ppd/ppd-page.c
ppd/ppd.c
ppd/ppd.h
ppd/ppdc-array.cxx
ppd/ppdc-attr.cxx
ppd/ppdc-catalog.cxx
ppd/ppdc-choice.cxx
ppd/ppdc-constraint.cxx
ppd/ppdc-driver.cxx
ppd/ppdc-file.cxx
ppd/ppdc-filter.cxx
ppd/ppdc-font.cxx
ppd/ppdc-group.cxx
ppd/ppdc-import.cxx
ppd/ppdc-mediasize.cxx
ppd/ppdc-message.cxx
ppd/ppdc-option.cxx
ppd/ppdc-private.h
ppd/ppdc-profile.cxx
ppd/ppdc-shared.cxx
ppd/ppdc-source.cxx
ppd/ppdc-string.cxx
ppd/ppdc-variable.cxx
ppd/ppdc.cxx
ppd/ppdc.h
ppd/ppdhtml.cxx
ppd/ppdi.cxx
ppd/ppdmerge.cxx
ppd/ppdpo.cxx
ppd/raster-error.c
ppd/raster-interpret.c
ppd/raster-private.h
ppd/rastertops.c
ppd/snprintf.c
ppd/string-private.h
ppd/string.c
ppd/testdriver.c
ppd/testppd.c
ppd/thread-private.h
ppd/thread.c