]> granicus.if.org Git - libjpeg-turbo/commit
Use consistent/modern code formatting for pointers
authorDRC <information@libjpeg-turbo.org>
Fri, 19 Feb 2016 14:53:33 +0000 (08:53 -0600)
committerDRC <information@libjpeg-turbo.org>
Fri, 19 Feb 2016 15:10:07 +0000 (09:10 -0600)
commitbd49803f92da151be5c4bd3910a2840d2068e7e3
tree9f4259d57ac62d064779ab10879d13ce9fc67ec0
parentae4112884525c9ae4390c2020668831a9bade412
Use consistent/modern code formatting for pointers

The convention used by libjpeg:

    type * variable;

is not very common anymore, because it looks too much like
multiplication.  Some (particularly C++ programmers) prefer to tuck the
pointer symbol against the type:

    type* variable;

to emphasize that a pointer to a type is effectively a new type.
However, this can also be confusing, since defining multiple variables
on the same line would not work properly:

    type* variable1, variable2;  /* Only variable1 is actually a
                                    pointer. */

This commit reformats the entirety of the libjpeg-turbo code base so
that it uses the same code formatting convention for pointers that the
TurboJPEG API code uses:

    type *variable1, *variable2;

This seems to be the most common convention among C programmers, and
it is the convention used by other codec libraries, such as libpng and
libtiff.
125 files changed:
cdjpeg.c
cdjpeg.h
cjpeg.c
configure.ac
djpeg.c
example.c
jcapimin.c
jcarith.c
jccoefct.c
jccolor.c
jcdctmgr.c
jchuff.c
jchuff.h
jcmainct.c
jcmarker.c
jcmaster.c
jcparam.c
jcphuff.c
jcprepct.c
jcsample.c
jctrans.c
jdarith.c
jdatadst-tj.c
jdatadst.c
jdatasrc-tj.c
jdatasrc.c
jdcoefct.c
jdcoefct.h
jdcolor.c
jdct.h
jddctmgr.c
jdhuff.c
jdhuff.h
jdinput.c
jdmainct.h
jdmarker.c
jdmaster.c
jdmerge.c
jdphuff.c
jdpostct.c
jdsample.c
jdsample.h
jerror.c
jfdctflt.c
jfdctfst.c
jfdctint.c
jidctflt.c
jidctfst.c
jidctint.c
jidctred.c
jmemmgr.c
jmemnobs.c
jmemsys.h
jpegint.h
jpeglib.h
jpegtran.c
jquant1.c
jquant2.c
jsimd.h
jsimd_none.c
jsimddct.h
jutils.c
libjpeg.txt
rdbmp.c
rdcolmap.c
rdjpgcom.c
rdppm.c
rdrle.c
rdswitch.c
rdtarga.c
simd/jchuff-sse2-64.asm
simd/jchuff-sse2.asm
simd/jdsample-altivec.c
simd/jdsample-mmx.asm
simd/jdsample-sse2-64.asm
simd/jdsample-sse2.asm
simd/jfdctflt-3dn.asm
simd/jfdctflt-sse-64.asm
simd/jfdctflt-sse.asm
simd/jfdctfst-mmx.asm
simd/jfdctfst-sse2-64.asm
simd/jfdctfst-sse2.asm
simd/jfdctint-mmx.asm
simd/jfdctint-sse2-64.asm
simd/jfdctint-sse2.asm
simd/jidctflt-3dn.asm
simd/jidctflt-sse.asm
simd/jidctflt-sse2-64.asm
simd/jidctflt-sse2.asm
simd/jidctfst-altivec.c
simd/jidctfst-mmx.asm
simd/jidctfst-sse2-64.asm
simd/jidctfst-sse2.asm
simd/jidctint-altivec.c
simd/jidctint-mmx.asm
simd/jidctint-sse2-64.asm
simd/jidctint-sse2.asm
simd/jidctred-mmx.asm
simd/jidctred-sse2-64.asm
simd/jidctred-sse2.asm
simd/jquant-3dn.asm
simd/jquant-mmx.asm
simd/jquant-sse.asm
simd/jquantf-sse2-64.asm
simd/jquantf-sse2.asm
simd/jquanti-altivec.c
simd/jquanti-sse2-64.asm
simd/jquanti-sse2.asm
simd/jsimd.h
simd/jsimd_arm.c
simd/jsimd_arm64.c
simd/jsimd_arm64_neon.S
simd/jsimd_arm_neon.S
simd/jsimd_i386.c
simd/jsimd_mips.c
simd/jsimd_powerpc.c
simd/jsimd_x86_64.c
transupp.c
transupp.h
wrbmp.c
wrgif.c
wrjpgcom.c
wrppm.c
wrrle.c
wrtarga.c