]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libfontembed: Code clean-up for code of libfontembed
authorTill Kamppeter <till.kamppeter@gmail.com>
Mon, 10 Oct 2022 12:16:03 +0000 (14:16 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Mon, 10 Oct 2022 12:16:03 +0000 (14:16 +0200)
commite776c749a5c23a95834e02b827475fab5c9d87a3
tree83844e9c5cdc669c160ad807a3b8ae6ace9e90af
parent37e27ba5d801a30c45964316854ba92ee54a4146
libfontembed: Code clean-up for code of libfontembed

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.
25 files changed:
fontembed/aglfn13.c
fontembed/bitset.h
fontembed/debug-internal.h
fontembed/dynstring-private.h
fontembed/dynstring.c
fontembed/embed-pdf-int-private.h
fontembed/embed-pdf.c
fontembed/embed-pdf.h
fontembed/embed-sfnt-int-private.h
fontembed/embed-sfnt.c
fontembed/embed.c
fontembed/embed.h
fontembed/fontfile.c
fontembed/fontfile.h
fontembed/frequent-private.h
fontembed/frequent.c
fontembed/iofn.h
fontembed/macroman-private.h
fontembed/sfnt-int-private.h
fontembed/sfnt-subset.c
fontembed/sfnt.c
fontembed/sfnt.h
fontembed/test-analyze.c
fontembed/test-pdf.c
fontembed/test-ps.c