[Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x BezTriple.c BezTriple.h Curve.c Curve.h Draw.c Draw.h Ipo.c Ipo.h Ipocurve.c Ipocurve.h bpy_types.h
Stephen Swaney
sswaney at swbell.net
Mon Mar 29 10:16:20 CEST 2004
stiv (Stephen Swaney) 2004/03/29 10:16:19 CEST
Modified files:
blender/source/blender/python/api2_2x BezTriple.c BezTriple.h
Curve.c Curve.h Draw.c
Draw.h Ipo.c Ipo.h
Ipocurve.c Ipocurve.h
bpy_types.h
Log:
General housekeeping and cleanup. Move static declarations and
data definitions from .h files into corresponding .c files.
Blame zr for this since he's the one who pointed out that our
bpy headers were a mish-mash of stuff that belonged in the .c files!
In a nutshell, the headers should contain the declarations necessary
to use a module or class. The implementation files ( .c in this case )
should contain statements that allocate storage ( definitions in
the C sense ) and executable code.
When used at file scope, the keyword 'static' means "don't tell
anyone else about this". Since headers describe a public
interface, static declarations and definitions belong in the
implementation files.
The net result of all this is that after stuff has moved out
into the .c files, the .h files are empty or mostly empty.
I didn't delete them since there seem to be some public
declarations and because I did not want to cause too much
disruption at one time. Time enough for that later!
Revision Changes Path
1.6 +197 -65 blender/source/blender/python/api2_2x/BezTriple.c
1.5 +6 -87 blender/source/blender/python/api2_2x/BezTriple.h
1.15 +697 -388 blender/source/blender/python/api2_2x/Curve.c
1.13 +2 -193 blender/source/blender/python/api2_2x/Curve.h
1.20 +1071 -706 blender/source/blender/python/api2_2x/Draw.c
1.13 +29 -276 blender/source/blender/python/api2_2x/Draw.h
1.21 +736 -418 blender/source/blender/python/api2_2x/Ipo.c
1.11 +6 -146 blender/source/blender/python/api2_2x/Ipo.h
1.12 +341 -168 blender/source/blender/python/api2_2x/Ipocurve.c
1.6 +7 -121 blender/source/blender/python/api2_2x/Ipocurve.h
1.3 +64 -58 blender/source/blender/python/api2_2x/bpy_types.h
More information about the Bf-blender-cvs
mailing list