[Bf-committers] Re: [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

John K. Walton bf-committers@blender.org
Mon, 29 Mar 2004 08:37:50 -0500 (EST)


Stephen, some say the irix compiler is more picky about things.
i get this error after your changes now.
Thanks!
John


====> gmake all in source/blender/python/api2_2x
cc -c -DGAMEBLENDER=1 -DUSE_SUMO_SOLID -n32 -mips3 -Xcpluscomm -DNDEBUG
-n32 -mips3 -O2 -OPT:Olimit=0 -fullwarn -woff
1001,1110,1201,1209,1355,1424,1681,3201  -DNO_KETSJI -I/usr/include
-I/usr/demos/blender/../lib/irix-6.5-mips/guardedalloc/include
-I../../makesdna -I../../blenkernel -I../../blenlib -I../../include
-I../../render/extern/include
-I/usr/demos/blender/../lib/irix-6.5-mips/bmfont/include -I../../imbuf
-I/usr/demos/blender/../lib/irix-6.5-mips/python/include/python2.2 Curve.c
-o /usr/demos/blender/obj/irix-6.5-mips/blender/python/Curve.o
cc-1005 cc: ERROR File = Curve.h, Line = 35
  The source file "bpy_types.h" is unavailable.

  #include <bpy_types.h>
                        ^

1 catastrophic error detected in the compilation of "Curve.c".
Compilation terminated.
gmake[4]: ***
[/usr/demos/blender/obj/irix-6.5-mips/blender/python/Curve.o] Error 2
gmake[3]: *** [all] Error 1
gmake[2]: *** [all] Error 1
gmake[1]: *** [all] Error 1
gmake: *** [all] Error 1
sgi126 5% 

On Mon, 29 Mar 2004, Stephen Swaney wrote:

> 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
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs@blender.org
> http://www.blender.org/mailman/listinfo/bf-blender-cvs
>