Project file update for elbeem
authorJoseph Gilbert <ascotan@gmail.com>
Mon, 26 Sep 2005 14:46:14 +0000 (14:46 +0000)
committerJoseph Gilbert <ascotan@gmail.com>
Mon, 26 Sep 2005 14:46:14 +0000 (14:46 +0000)
Warning clean up of python project

intern/elbeem/make/msvc_7_0/elbeem.vcproj
intern/make/msvc_7_0/intern.sln
projectfiles_vc7/gameengine/network/loopbacknetwork/NG_loopbacknetwork.vcproj
projectfiles_vc7/gameengine/network/network/NG_network.vcproj
source/blender/python/api2_2x/Key.c
source/blender/python/api2_2x/Lamp.c
source/blender/python/api2_2x/Material.c
source/blender/python/api2_2x/NMesh.c
source/blender/python/api2_2x/Texture.c
source/blender/python/api2_2x/gen_utils.c
source/blender/python/api2_2x/rgbTuple.c

index c69f7ab340fcacadb20ed35265af0870b3d7a335..216e1ff72a55e5994f926531333013870c9b6139 100644 (file)
@@ -312,7 +312,7 @@ ECHO Done
                                RelativePath="..\..\intern\attributes.h">
                        </File>
                        <File
-                               RelativePath="..\..\intern\cfgparser.hpp">
+                               RelativePath="..\..\intern\cfgparser.h">
                        </File>
                        <File
                                RelativePath="..\..\intern\factory_lbm.h">
index 5d95d6d77edb1a87e08b789f2c093911a236ca86..23cf141430ec5d1212e2b0ff3d587b2212b80b2e 100644 (file)
@@ -1,6 +1,22 @@
 Microsoft Visual Studio Solution File, Format Version 7.00
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "build_install_all", "build_install_all.vcproj", "{02110D03-59DB-4571-8787-72B3C03B2F2D}"
        ProjectSection(ProjectDependencies) = postProject
+               {A90C4918-4B21-4277-93BD-AF65F30951D9} = {A90C4918-4B21-4277-93BD-AF65F30951D9}
+               {98330220-47A6-42E0-9DE4-AD0FF5D204D6} = {98330220-47A6-42E0-9DE4-AD0FF5D204D6}
+               {C66F722C-46BE-40C9-ABAE-2EAC7A697EB8} = {C66F722C-46BE-40C9-ABAE-2EAC7A697EB8}
+               {FAF46346-65CC-4DB2-85C4-B99826F79D0C} = {FAF46346-65CC-4DB2-85C4-B99826F79D0C}
+               {B093415D-C0F6-4E76-8F5A-6BC1917BCE9E} = {B093415D-C0F6-4E76-8F5A-6BC1917BCE9E}
+               {E784098D-3ED8-433A-9353-9679415DDDC5} = {E784098D-3ED8-433A-9353-9679415DDDC5}
+               {76D90B92-ECC7-409C-9F98-A8814B90F3C0} = {76D90B92-ECC7-409C-9F98-A8814B90F3C0}
+               {121EC196-8E8A-4937-B0BD-0F114C87D55E} = {121EC196-8E8A-4937-B0BD-0F114C87D55E}
+               {542A9FA1-B7FF-441C-AE15-054DB31D3488} = {542A9FA1-B7FF-441C-AE15-054DB31D3488}
+               {213356A9-3A1F-41DA-9819-1297BCD17DEE} = {213356A9-3A1F-41DA-9819-1297BCD17DEE}
+               {51A348C1-8684-4D67-B980-97B1FC74159B} = {51A348C1-8684-4D67-B980-97B1FC74159B}
+               {8B8D4FC3-3234-4E54-8376-5AB83D00D164} = {8B8D4FC3-3234-4E54-8376-5AB83D00D164}
+               {4B6AFCC5-968C-424A-8F20-76E41B3BEF74} = {4B6AFCC5-968C-424A-8F20-76E41B3BEF74}
+               {E86B7BDE-C33C-4E55-9433-E74C141D7538} = {E86B7BDE-C33C-4E55-9433-E74C141D7538}
+               {B789C2F3-279E-4A85-8F0A-7F7AC068E598} = {B789C2F3-279E-4A85-8F0A-7F7AC068E598}
+               {6B3229F4-2A37-47EE-8B89-9AA046B35193} = {6B3229F4-2A37-47EE-8B89-9AA046B35193}
        EndProjectSection
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MoTo", "..\..\moto\make\msvc_7_0\MoTo.vcproj", "{4B6AFCC5-968C-424A-8F20-76E41B3BEF74}"
@@ -75,6 +91,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "opennl", "..\..\opennl\make
        ProjectSection(ProjectDependencies) = postProject
        EndProjectSection
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "elbeem", "..\..\elbeem\make\msvc_7_0\elbeem.vcproj", "{A90C4918-4B21-4277-93BD-AF65F30951D9}"
+       ProjectSection(ProjectDependencies) = postProject
+       EndProjectSection
+EndProject
 Global
        GlobalSection(SolutionConfiguration) = preSolution
                3DPlugin Debug = 3DPlugin Debug
@@ -211,6 +231,14 @@ Global
                {8B8D4FC3-3234-4E54-8376-5AB83D00D164}.Blender Debug.Build.0 = Blender Debug|Win32
                {8B8D4FC3-3234-4E54-8376-5AB83D00D164}.Blender Release.ActiveCfg = Blender Release|Win32
                {8B8D4FC3-3234-4E54-8376-5AB83D00D164}.Blender Release.Build.0 = Blender Release|Win32
+               {A90C4918-4B21-4277-93BD-AF65F30951D9}.3DPlugin Debug.ActiveCfg = 3DPlugin Debug|Win32
+               {A90C4918-4B21-4277-93BD-AF65F30951D9}.3DPlugin Debug.Build.0 = 3DPlugin Debug|Win32
+               {A90C4918-4B21-4277-93BD-AF65F30951D9}.3DPlugin Release.ActiveCfg = 3DPlugin Release|Win32
+               {A90C4918-4B21-4277-93BD-AF65F30951D9}.3DPlugin Release.Build.0 = 3DPlugin Release|Win32
+               {A90C4918-4B21-4277-93BD-AF65F30951D9}.Blender Debug.ActiveCfg = Blender Debug|Win32
+               {A90C4918-4B21-4277-93BD-AF65F30951D9}.Blender Debug.Build.0 = Blender Debug|Win32
+               {A90C4918-4B21-4277-93BD-AF65F30951D9}.Blender Release.ActiveCfg = Blender Release|Win32
+               {A90C4918-4B21-4277-93BD-AF65F30951D9}.Blender Release.Build.0 = Blender Release|Win32
        EndGlobalSection
        GlobalSection(ExtensibilityGlobals) = postSolution
        EndGlobalSection
index 400154a8533ecb5cac3fe6a0b5eb340bb9865050..f038b5f9927460906e7aad8b8ccd03a7037591f3 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="Windows-1252"?>
 <VisualStudioProject
        ProjectType="Visual C++"
-       Version="7.10"
+       Version="7.0"
        Name="NG_loopbacknetwork"
        SccProjectName=""
        SccLocalPath="">
                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
                </Configuration>
        </Configurations>
-       <References>
-       </References>
+       
        <Files>
                <Filter
                        Name="Source Files"
index 60dc5655fb69db1f1958e5be64112e172f5eb710..44c0e9dbf4d55eb93ff5eb18e9c8c36be3518d7a 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="Windows-1252"?>
 <VisualStudioProject
        ProjectType="Visual C++"
-       Version="7.10"
+       Version="7.0"
        Name="NG_network"
        SccProjectName=""
        SccLocalPath="">
                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
                </Configuration>
        </Configurations>
-       <References>
-       </References>
+       
        <Files>
                <Filter
                        Name="Source Files"
index 997d4e364002748836d0a280c6c5160c34a22a01..543b8d80e333d79823174188e9b171ab27e8a71f 100644 (file)
@@ -295,9 +295,9 @@ static PyObject *KeyBlock_getData( PyObject * self )
                        mv->co[0]=vert->co[0];
                        mv->co[1]=vert->co[1];
                        mv->co[2]=vert->co[2];
-                       mv->no[0] = vert->no[0] / 32767.0;
-                       mv->no[1] = vert->no[1] / 32767.0;
-                       mv->no[2] = vert->no[2] / 32767.0;
+                       mv->no[0] = (float)(vert->no[0] / 32767.0);
+                       mv->no[1] = (float)(vert->no[1] / 32767.0);
+                       mv->no[2] = (float)(vert->no[2] / 32767.0);
 
                        mv->uvco[0] = mv->uvco[1] = mv->uvco[2] = 0.0;
                        mv->index = i;
index 3a1e4a815e5b3cf13865a64a8367828b110a3c19..9f684e914ed0a2b83d4799494fa4b1f84717ef47 100644 (file)
@@ -1079,7 +1079,7 @@ static int Lamp_setMode( BPy_Lamp * self, PyObject * value )
                sprintf ( errstr , "expected int bitmask of 0x%04x", bitmask );
                return EXPP_ReturnIntError( PyExc_TypeError, errstr );
        }
-       param = PyInt_AS_LONG ( value );
+       param = (short)PyInt_AS_LONG ( value );
 
        if ( ( param & bitmask ) != param )
                return EXPP_ReturnIntError( PyExc_ValueError,
@@ -1222,7 +1222,7 @@ static int Lamp_setComponent( BPy_Lamp * self, PyObject * value,
                return EXPP_ReturnIntError( PyExc_TypeError,
                                                "expected float argument in [0.0,1.0]" );
 
-       color = PyFloat_AsDouble( value );
+       color = (float)PyFloat_AsDouble( value );
        color = EXPP_ClampFloat( color, EXPP_LAMP_COL_MIN, EXPP_LAMP_COL_MAX );
 
        switch ( (int)closure ) {
@@ -1636,7 +1636,7 @@ static PyObject *Lamp_oldsetMode( BPy_Lamp * self, PyObject * args )
 
        /* check each argument for type, find its value */
 
-       for ( i = PyTuple_Size( args ); i-- ; ) {
+       for ( i = (short)PyTuple_Size( args ); i-- ; ) {
                name = PyString_AsString ( PySequence_Fast_GET_ITEM( args, i ) );
                if( !name )
                        return EXPP_ReturnPyObjError ( PyExc_AttributeError,
index fc550545857a823d660af40db0f4050debabf56a..31f6bb2290cd6c6a077ff307980ff82b958f630f 100644 (file)
@@ -1987,7 +1987,7 @@ static int Material_setColorComponent( BPy_Material * self, PyObject * value,
                return EXPP_ReturnIntError( PyExc_TypeError,
                                                "expected float argument in [0.0,1.0]" );
 
-       param = PyFloat_AsDouble( value );
+       param = (float)PyFloat_AsDouble( value );
        param = EXPP_ClampFloat( param, EXPP_MAT_COL_MIN, EXPP_MAT_COL_MAX );
 
        switch ( (int)closure ) {
index 53a3271aa5f164b280416a7c357322ee4fbf8d56..b777e2406ef8a83c2853fbbd990a7c192b75a35c 100644 (file)
@@ -1941,7 +1941,7 @@ static BPy_NMEdge *nmedge_from_index( BPy_NMesh * mesh, int v0idx, int v1idx)
 {
   BPy_NMVert *v1=(BPy_NMVert *)PyList_GetItem( mesh->verts, v0idx);
   BPy_NMVert *v2=(BPy_NMVert *)PyList_GetItem( mesh->verts, v1idx);
-  return new_NMEdge(v1, v2, 0.0, 0);
+  return new_NMEdge(v1, v2, (char)0.0, 0);
 }
 
 static BPy_NMEdge *nmedge_from_data( BPy_NMesh * mesh, MEdge *edge )
index 7682facd8179991f79daee7bd20c81ada633a039..9a9dc93af85aa96f09998c16365a4636c9406ef0 100644 (file)
@@ -1378,10 +1378,10 @@ static int Texture_setAnimMontage( BPy_Texture * self, PyObject * value )
 
        for( i = 0; i < 4; ++i ) {
                self->texture->fradur[i][0] = 
-                       EXPP_ClampInt ( fradur[i][0], EXPP_TEX_ANIMMONSTART_MIN,
+                       (short)EXPP_ClampInt ( fradur[i][0], EXPP_TEX_ANIMMONSTART_MIN,
                                                                EXPP_TEX_ANIMMONSTART_MAX );
                self->texture->fradur[i][1] = 
-                       EXPP_ClampInt ( fradur[i][1], EXPP_TEX_ANIMMONDUR_MIN,
+                       (short)EXPP_ClampInt ( fradur[i][1], EXPP_TEX_ANIMMONDUR_MIN,
                                                                EXPP_TEX_ANIMMONDUR_MAX );
        }
 
@@ -1482,7 +1482,7 @@ static int Texture_setFlags( BPy_Texture * self, PyObject * value )
                return EXPP_ReturnIntError( PyExc_ValueError,
                                                "invalid bit(s) set in mask" );
 
-       self->texture->flag = param;
+       self->texture->flag = (short)param;
 
 #if 0
        /* if Colorband enabled, make sure we allocate memory for it */
@@ -1554,7 +1554,7 @@ static int Texture_setImageFlags( BPy_Texture * self, PyObject * value,
                        return EXPP_ReturnIntError( PyExc_TypeError, errstr );
                }
 
-               param = PyInt_AS_LONG( value );
+               param = (short)PyInt_AS_LONG( value );
                if( ( param & bitmask ) != param )
                        return EXPP_ReturnIntError( PyExc_ValueError,
                                                        "invalid bit(s) set in mask" );
@@ -1646,7 +1646,7 @@ static int Texture_setNoiseBasis( BPy_Texture * self, PyObject * value )
                return EXPP_ReturnIntError( PyExc_ValueError,
                                              "invalid noise type" );
 
-       self->texture->noisebasis = param;
+       self->texture->noisebasis = (short)param;
        return 0;
 }
 
@@ -1672,7 +1672,7 @@ static int Texture_setNoiseBasis2( BPy_Texture * self, PyObject * value,
                        return EXPP_ReturnIntError( PyExc_ValueError,
                                                          "invalid noise type" );
 
-               self->texture->noisebasis2 = param;
+               self->texture->noisebasis2 = (short)param;
 
        /*
         * for other type values, the attribute is "sine", "saw" or "tri", 
@@ -1688,7 +1688,7 @@ static int Texture_setNoiseBasis2( BPy_Texture * self, PyObject * value,
                        return EXPP_ReturnIntError( PyExc_ValueError,
                                                          "expected int value of 1" );
 
-               self->texture->noisebasis2 = (int)type;
+               self->texture->noisebasis2 = (short)(int)type;
        }
        return 0;
 }
@@ -1701,9 +1701,9 @@ static int Texture_setRepeat( BPy_Texture * self, PyObject * args )
                return EXPP_ReturnIntError( PyExc_TypeError,
                                              "expected tuple of 2 ints" );
 
-       self->texture->xrepeat = EXPP_ClampInt( repeat[0], EXPP_TEX_REPEAT_MIN,
+       self->texture->xrepeat = (short)EXPP_ClampInt( repeat[0], EXPP_TEX_REPEAT_MIN,
                                                                                        EXPP_TEX_REPEAT_MAX );
-       self->texture->yrepeat = EXPP_ClampInt( repeat[1], EXPP_TEX_REPEAT_MIN,
+       self->texture->yrepeat = (short)EXPP_ClampInt( repeat[1], EXPP_TEX_REPEAT_MIN,
                                                                                        EXPP_TEX_REPEAT_MAX );
 
        return 0;
@@ -1736,7 +1736,7 @@ static int Texture_setSType( BPy_Texture * self, PyObject * value )
                return EXPP_ReturnIntError( PyExc_TypeError,
                                              "expected int argument" );
 
-       param = PyInt_AS_LONG ( value );
+       param = (short)PyInt_AS_LONG ( value );
 
        /* use the stype map to find out if this is a valid stype for this type *
         * note that this will allow CLD_COLOR when type is ENVMAP. there's not *
@@ -1959,7 +1959,7 @@ static PyObject *Texture_getAnimLength( BPy_Texture *self )
 
        if( !attr )
                return EXPP_ReturnPyObjError( PyExc_RuntimeError,
-               "couldn't get attribute" );return attr;
+               "couldn't get attribute" );
 
        return attr;
 }
@@ -2124,7 +2124,7 @@ static PyObject *Texture_getFlags( BPy_Texture *self )
 
 static PyObject *Texture_getHFracDim( BPy_Texture *self )
 {
-       PyObject *attr = PyInt_FromLong( self->texture->mg_H );
+       PyObject *attr = PyInt_FromLong( (long)self->texture->mg_H );
 
        if( !attr )
                return EXPP_ReturnPyObjError( PyExc_RuntimeError,
@@ -2634,7 +2634,7 @@ static PyObject *Texture_oldsetImageFlags( BPy_Texture * self, PyObject * args )
                flag |= thisflag;
        }
 
-       self->texture->imaflag = flag;
+       self->texture->imaflag = (short)flag;
 
        Py_INCREF( Py_None );
        return Py_None;
index e76943573a01664c0069d74c2e829a51ba83cdf3..885e7fbf7a07e3ce3aea438703d5d58748eac89b 100644 (file)
@@ -614,7 +614,7 @@ int EXPP_setFloatClamped( PyObject *value, float *param,
                return EXPP_ReturnIntError( PyExc_TypeError, errstr );
        }
 
-       *param = EXPP_ClampFloat( PyFloat_AsDouble( value ), min, max );
+       *param = EXPP_ClampFloat( (float)PyFloat_AsDouble( value ), min, max );
 
        return 0;
 }
@@ -634,13 +634,13 @@ int EXPP_setIValueClamped( PyObject *value, void *param,
 
        switch ( type ) {
        case 'b':
-               *(char *)param = EXPP_ClampInt( number, min, max );
+               *(char *)param = (char)EXPP_ClampInt( number, min, max );
                return 0;
        case 'h':
-               *(short *)param = EXPP_ClampInt( number, min, max );
+               *(short *)param = (short)EXPP_ClampInt( number, min, max );
                return 0;
        case 'H':
-               *(unsigned short *)param = EXPP_ClampInt( number, min, max );
+               *(unsigned short *)param = (unsigned short)EXPP_ClampInt( number, min, max );
                return 0;
        case 'i':
                *(int *)param = EXPP_ClampInt( number, min, max );
@@ -679,7 +679,7 @@ int EXPP_setFloatRange( PyObject *value, float *param,
        if( !PyNumber_Check ( value ) )
                return EXPP_ReturnIntError( PyExc_TypeError, errstr );
 
-       number = PyFloat_AsDouble( value );
+       number = (short)PyFloat_AsDouble( value );
        if ( number < min || number > max )
                return EXPP_ReturnIntError( PyExc_ValueError, errstr );
 
@@ -704,13 +704,13 @@ int EXPP_setIValueRange( PyObject *value, void *param,
 
        switch ( type ) {
        case 'b':
-               *(char *)param = number;
+               *(char *)param = (char)number;
                return 0;
        case 'h':
-               *(short *)param = number;
+               *(short *)param = (short)number;
                return 0;
        case 'H':
-               *(unsigned short *)param = number;
+               *(unsigned short *)param = (unsigned short)number;
                return 0;
        case 'i':
                *(int *)param = number;
@@ -749,13 +749,13 @@ int EXPP_setModuleConstant ( BPy_constant *constant, void *param, char type )
 
        switch ( type ) {
        case 'h':
-               *(short *)param = PyInt_AS_LONG( item );
+               *(short *)param = (short)PyInt_AS_LONG( item );
                return 0;
        case 'i':
                *(int *)param = PyInt_AS_LONG( item );
                return 0;
        case 'f':
-               *(float *)param = PyFloat_AS_DOUBLE( item );
+               *(float *)param = (float)PyFloat_AS_DOUBLE( item );
                return 0;
        default:
                return EXPP_ReturnIntError( PyExc_RuntimeError,
index f7ad9dc10af3f6a6db070ffbbebc8b8b2f51ff30..2e228e7066141c620aa2886bb421c3df86a13749 100644 (file)
@@ -161,9 +161,9 @@ int rgbTuple_setCol( BPy_rgbTuple * self, PyObject * args )
                                PyNumber_Check( PySequence_Fast_GET_ITEM( args, 0 ) ) &&
                                PyNumber_Check( PySequence_Fast_GET_ITEM( args, 1 ) ) &&
                                PyNumber_Check( PySequence_Fast_GET_ITEM( args, 2 ) ) ) {
-                       r = PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 0 ) );
-                       g = PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 1 ) );
-                       b = PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 2 ) );
+                       r = (float)PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 0 ) );
+                       g = (float)PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 1 ) );
+                       b = (float)PyFloat_AsDouble( PySequence_Fast_GET_ITEM( args, 2 ) );
                        ok = 1;
                } else
                        ok = PyArg_ParseTuple( args, "fff", &r, &g, &b );