Browse Source

Fix compilation with ppremake

rdb 10 years ago
parent
commit
cc62e731b7

+ 1 - 1
direct/src/http/baseincomingset.i

@@ -70,7 +70,7 @@ inline int BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READE
 template <class _INCLASS1,class _IN_LISTEN,typename  MESSAGE_READER_BUF, typename  MESSAGE_READER_UPPASS>
 inline void BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READER_UPPASS>::AddAConection(_INCLASS1 * newt)
 {
-    push_back(newt);
+    this->push_back(newt);
 }
 ////////////////////////////////////////////////////////////////////
 // Function name    : BaseIncomingSet<_INCLASS1,_IN_LISTEN,MESSAGE_READER_BUF,MESSAGE_READER_UPPASS>::BaseIncomingSet

+ 2 - 2
dtool/src/cppparser/Sources.pp

@@ -22,7 +22,7 @@
      cppSimpleType.h cppStructType.h cppTBDType.h  \
      cppTemplateParameterList.h cppTemplateScope.h cppToken.h  \
      cppType.h cppTypeDeclaration.h cppTypeParser.h  \
-     cppTypeProxy.h cppTypedef.h cppUsing.h cppVisibility.h 
+     cppTypeProxy.h cppTypedefType.h cppUsing.h cppVisibility.h
 
   #define INCLUDED_SOURCES  \
      cppArrayType.cxx cppClassTemplateParameter.cxx  \
@@ -38,7 +38,7 @@
      cppStructType.cxx cppTBDType.cxx  \
      cppTemplateParameterList.cxx cppTemplateScope.cxx  \
      cppToken.cxx cppType.cxx cppTypeDeclaration.cxx  \
-     cppTypeParser.cxx cppTypeProxy.cxx cppTypedef.cxx  \
+     cppTypeParser.cxx cppTypeProxy.cxx cppTypedefType.cxx  \
      cppUsing.cxx cppVisibility.cxx
 
 #end static_lib_target

+ 6 - 2
dtool/src/dtoolbase/Sources.pp

@@ -10,6 +10,7 @@
     addHash.I addHash.h \
     atomicAdjust.h \
     atomicAdjustDummyImpl.h atomicAdjustDummyImpl.I \
+    atomicAdjustGccImpl.h atomicAdjustGccImpl.I \
     atomicAdjustI386Impl.h atomicAdjustI386Impl.I \
     atomicAdjustPosixImpl.h atomicAdjustPosixImpl.I \
     atomicAdjustWin32Impl.h atomicAdjustWin32Impl.I \
@@ -30,7 +31,7 @@
     nearly_zero.h \
     neverFreeMemory.h neverFreeMemory.I \
     numeric_types.h \
-    pstrtod.h \
+    pdtoa.h pstrtod.h \
     register_type.I register_type.h \
     selectThreadImpl.h \
     stl_compares.I stl_compares.h \
@@ -47,6 +48,7 @@
  #define INCLUDED_SOURCES  \
     addHash.cxx \
     atomicAdjustDummyImpl.cxx \
+    atomicAdjustGccImpl.cxx \
     atomicAdjustI386Impl.cxx \
     atomicAdjustPosixImpl.cxx \
     atomicAdjustWin32Impl.cxx \
@@ -59,6 +61,7 @@
     mutexWin32Impl.cxx \
     mutexSpinlockImpl.cxx \
     neverFreeMemory.cxx \
+    pdtoa.cxx \
     pstrtod.cxx \
     register_type.cxx \
     typeHandle.cxx \
@@ -69,6 +72,7 @@
     addHash.I addHash.h \
     atomicAdjust.h \
     atomicAdjustDummyImpl.h atomicAdjustDummyImpl.I \
+    atomicAdjustGccImpl.h atomicAdjustGccImpl.I \
     atomicAdjustI386Impl.h atomicAdjustI386Impl.I \
     atomicAdjustPosixImpl.h atomicAdjustPosixImpl.I \
     atomicAdjustWin32Impl.h atomicAdjustWin32Impl.I \
@@ -89,7 +93,7 @@
     nearly_zero.h \
     neverFreeMemory.h neverFreeMemory.I \
     numeric_types.h \
-    pstrtod.h \
+    pdtoa.h pstrtod.h \
     register_type.I register_type.h \
     selectThreadImpl.h \
     stl_compares.I stl_compares.h \

+ 0 - 2
dtool/src/parser-inc/stdtypedefs.h

@@ -44,7 +44,5 @@ typedef unsigned char uchar;
 #define NULL ((void *)0)
 #endif
 
-typedef int fd_set;
-
 #endif
 

+ 4 - 0
panda/src/express/Sources.pp

@@ -23,7 +23,9 @@
     encrypt_string.h \
     error_utils.h \
     export_dtool.h \
+    filename_ext.h \
     fileReference.h fileReference.I \
+    globPattern_ext.h \
     hashGeneratorBase.I hashGeneratorBase.h \
     hashVal.I hashVal.h \
     indirectLess.I indirectLess.h \
@@ -45,6 +47,7 @@
     patchfile.I patchfile.h \
     pointerTo.I pointerTo.h \
     pointerToArray.I pointerToArray.h \
+    pointerToArray_ext.h \
     pointerToArrayBase.I pointerToArrayBase.h \
     pointerToBase.I pointerToBase.h \
     pointerToVoid.I pointerToVoid.h \
@@ -61,6 +64,7 @@
     threadSafePointerTo.I threadSafePointerTo.h \
     threadSafePointerToBase.I threadSafePointerToBase.h \
     trueClock.I trueClock.h \
+    typeHandle_ext.h \
     typedReferenceCount.I typedReferenceCount.h typedef.h \
     vector_uchar.h vector_double.h vector_float.h \
     vector_stdfloat.h \

+ 9 - 2
panda/src/gobj/Sources.pp

@@ -50,9 +50,11 @@
     matrixLens.I matrixLens.h \
     occlusionQueryContext.I occlusionQueryContext.h \
     orthographicLens.I orthographicLens.h perspectiveLens.I  \
+    paramTexture.I paramTexture.h \
     perspectiveLens.h \
     preparedGraphicsObjects.I preparedGraphicsObjects.h \
     queryContext.I queryContext.h \
+    samplerState.I samplerState.h \
     savedContext.I savedContext.h \
     shader.I shader.h \
     shaderContext.h shaderContext.I \
@@ -61,6 +63,7 @@
     sliderTable.I sliderTable.h \
     texture.I texture.h \
     textureCollection.I textureCollection.h \
+    textureCollection_ext.h \
     textureContext.I textureContext.h \
     texturePeeker.I texturePeeker.h \
     texturePool.I texturePool.h \
@@ -123,9 +126,11 @@
     materialPool.cxx matrixLens.cxx \
     occlusionQueryContext.cxx \
     orthographicLens.cxx  \
+    paramTexture.cxx \
     perspectiveLens.cxx \
     preparedGraphicsObjects.cxx \
     queryContext.cxx \
+    samplerState.cxx \
     savedContext.cxx \
     shader.cxx \
     shaderContext.cxx \
@@ -196,10 +201,12 @@
     material.I material.h \
     materialPool.I materialPool.h matrixLens.I matrixLens.h \
     occlusionQueryContext.I occlusionQueryContext.h \
-    orthographicLens.I orthographicLens.h perspectiveLens.I \
-    perspectiveLens.h \
+    orthographicLens.I orthographicLens.h \
+    paramTexture.I paramTexture.h \
+    perspectiveLens.I perspectiveLens.h \
     preparedGraphicsObjects.I preparedGraphicsObjects.h \
     queryContext.I queryContext.h \
+    samplerState.I samplerState.h \
     savedContext.I savedContext.h \
     shader.I shader.h \
     shaderContext.h shaderContext.I \

+ 8 - 22
panda/src/linmath/Sources.pp

@@ -11,33 +11,19 @@
   #define SOURCES \
      aa_luse.h \
      compose_matrix.h compose_matrix_src.I  \
-     compose_matrix_src.cxx compose_matrix_src.h config_linmath.h  \
+     config_linmath.h  \
      configVariableColor.h configVariableColor.I \
      coordinateSystem.h dbl2fltnames.h dblnames.h \
      deg_2_rad.h deg_2_rad.I \
-     flt2dblnames.h fltnames.h intnames.h lcast_to.h lcast_to_src.h  \
-     lcast_to_src.I lmatrix.h lmatrix_ext.h lmatrix3_src.I  \
-     lmatrix3_src.cxx lmatrix3_src.h lmatrix4_src.I  \
-     lmatrix4_src.cxx lmatrix4_src.h lorientation.h  \
-     lorientation_src.I lorientation_src.cxx lorientation_src.h  \
-     lpoint2.h lpoint2_src.I lpoint2_src.cxx lpoint2_src.h  \
-     lpoint3.h lpoint3_src.I lpoint3_src.cxx lpoint3_src.h  \
-     lpoint4.h lpoint4_src.I lpoint4_src.cxx lpoint4_src.h  \
-     lquaternion.h lquaternion_src.I lquaternion_src.cxx  \
-     lquaternion_src.h lrotation.h lrotation_src.I  \
-     lrotation_src.cxx lrotation_src.h \
+     flt2dblnames.h fltnames.h intnames.h lcast_to.h  \
+     lmatrix.h lmatrix_ext.h lorientation.h  \
+     lpoint2.h lpoint3.h lpoint4.h \
+     lquaternion.h lrotation.h \
      lsimpleMatrix.h lsimpleMatrix.I \
      luse.I luse.N luse.h  \
-     lvec2_ops.h lvec2_ops_src.I lvec2_ops_src.h lvec3_ops.h  \
-     lvec3_ops_src.I lvec3_ops_src.h lvec4_ops.h lvec4_ops_src.I  \
-     lvec4_ops_src.h \
-     lvecBase2.h lvecBase2_src.I lvecBase2_src.cxx lvecBase2_src.h  \
-     lvecBase3.h lvecBase3_src.I lvecBase3_src.cxx lvecBase3_src.h  \
-     lvecBase4.h lvecBase4_src.I lvecBase4_src.cxx lvecBase4_src.h  \
-     lvector2.h lvector2_src.I lvector2_src.cxx lvector2_src.h  \
-     lvector3.h lvector3_src.I lvector3_src.cxx lvector3_src.h  \
-     lvector4.h lvector4_src.I lvector4_src.cxx lvector4_src.h  \
-     lvector4.h lvector4_src.I lvector4_src.cxx lvector4_src.h  \
+     lvec2_ops.h lvec3_ops.h lvec4_ops.h \
+     lvecBase2.h lvecBase3.h lvecBase4.h \
+     lvector2.h lvector3.h lvector4.h \
      lvecBase2_ext.h lvecBase3_ext.h lvecBase4_ext.h \
      lpoint2_ext.h lpoint3_ext.h lpoint4_ext.h \
      lvector2_ext.h lvector3_ext.h lvector4_ext.h \

+ 5 - 7
panda/src/mathutil/Sources.pp

@@ -18,25 +18,23 @@
     boundingSphere.I boundingSphere.h  \
     boundingVolume.I boundingVolume.h config_mathutil.h  \
     fftCompressor.h finiteBoundingVolume.h frustum.h  \
-    frustum_src.I frustum_src.h geometricBoundingVolume.I  \
-    geometricBoundingVolume.h \
+    geometricBoundingVolume.I geometricBoundingVolume.h \
     intersectionBoundingVolume.h intersectionBoundingVolume.I \
     linmath_events.h \
-    look_at.h look_at_src.I  \
-    look_at_src.cxx look_at_src.h \
+    look_at.h \
     linmath_events.h \
     mersenne.h \
     omniBoundingVolume.I  \
     omniBoundingVolume.h \
-    parabola.h parabola_src.I parabola_src.cxx parabola_src.h \
+    parabola.h \
     perlinNoise.h perlinNoise.I \
     perlinNoise2.h perlinNoise2.I \
     perlinNoise3.h perlinNoise3.I \
-    plane.h plane_src.I plane_src.cxx plane_src.h \
+    plane.h \
     pta_LMatrix4.h pta_LMatrix3.h pta_LVecBase3.h \
     pta_LVecBase4.h pta_LVecBase2.h \
     randomizer.h randomizer.I \
-    rotate_to.h rotate_to_src.cxx \
+    rotate_to.h \
     stackedPerlinNoise2.h stackedPerlinNoise2.I \
     stackedPerlinNoise3.h stackedPerlinNoise3.I \
     triangulator.h triangulator.I \

+ 1 - 0
panda/src/pgraph/cullTraverserData.h

@@ -92,6 +92,7 @@ private:
   static CPT(RenderState) get_fake_view_frustum_cull_state();
 };
 
+/* okcircular */
 #include "cullTraverser.h"
 
 #include "cullTraverserData.I"

+ 4 - 0
panda/src/pnmimage/Sources.pp

@@ -11,6 +11,8 @@
 
   #define SOURCES \
      config_pnmimage.h \
+     convert_srgb.I convert_srgb.h \
+     convert_srgb_sse2.cxx \
      pfmFile.I pfmFile.h \
      pfmFile_ext.cxx pfmFile_ext.h \
      pnmbitio.h \
@@ -24,6 +26,7 @@
 
   #define INCLUDED_SOURCES \
      config_pnmimage.cxx \
+     convert_srgb.cxx \
      pfmFile.cxx \
      pnm-image-filter.cxx \
      pnmbitio.cxx \
@@ -36,6 +39,7 @@
 
   #define INSTALL_HEADERS \
      config_pnmimage.h \
+     convert_srgb.I convert_srgb.h \
      pfmFile.I pfmFile.h \
      pfmFile_ext.cxx pfmFile_ext.h \
      pnmBrush.h pnmBrush.I \

+ 4 - 3
panda/src/putil/Sources.pp

@@ -29,7 +29,7 @@
     callbackObject.h callbackObject.I \
     callbackObject_ext.h callbackObject_ext.I \
     clockObject.h clockObject.I \
-    collideMask.h \
+    colorSpace.h collideMask.h \
     copyOnWriteObject.h copyOnWriteObject.I \
     copyOnWritePointer.h copyOnWritePointer.I \
     compareTo.I compareTo.h \
@@ -91,9 +91,10 @@
     callbackData.cxx \
     callbackObject.cxx \
     clockObject.cxx \
+    colorSpace.cxx \
+    config_util.cxx configurable.cxx \
     copyOnWriteObject.cxx \
     copyOnWritePointer.cxx \
-    config_util.cxx configurable.cxx \
     cPointerCallbackObject.cxx \
     datagramInputFile.cxx datagramOutputFile.cxx \
     doubleBitMask.cxx \
@@ -141,7 +142,7 @@
     callbackObject.h callbackObject.I \
     callbackObject_ext.h callbackObject_ext.I \
     clockObject.h clockObject.I \
-    collideMask.h \
+    colorSpace.h collideMask.h \
     copyOnWriteObject.h copyOnWriteObject.I \
     copyOnWritePointer.h copyOnWritePointer.I \
     compareTo.I compareTo.h \

+ 1 - 1
panda/src/tform/Sources.pp

@@ -31,7 +31,7 @@
     mouseWatcher.cxx \
     mouseWatcherBase.cxx \
     mouseWatcherGroup.cxx \
-    mouseWatcherParameter.cxx
+    mouseWatcherParameter.cxx \
     mouseWatcherRegion.cxx \
     trackball.cxx \
     transform2sg.cxx

+ 3 - 3
pandatool/src/imageprogs/imageFixHiddenColor.cxx

@@ -111,7 +111,7 @@ run() {
 
   // First, get the average color of all the opaque pixels.
   int count = 0;
-  LRGBColord color(0.0, 0.0, 0.0);
+  LRGBColor color(0.0, 0.0, 0.0);
   int xi, yi;
   for (yi = 0; yi < _image.get_y_size(); ++yi) {
     for (xi = 0; xi < _image.get_x_size(); ++xi) {
@@ -127,7 +127,7 @@ run() {
   }
   color /= (double)count;
   nout << "  average color of " << count << " opaque pixels is " << color << "\n";
-  
+
   // Now, apply that wherever there are transparent pixels.
   count = 0;
   for (yi = 0; yi < _image.get_y_size(); ++yi) {
@@ -143,7 +143,7 @@ run() {
     exit(1);
   }
   nout << "  applied to " << count << " transparent pixels.\n";
-    
+
   write_image(_image);
 }
 

+ 7 - 7
pandatool/src/imageprogs/imageTransformColors.cxx

@@ -477,19 +477,19 @@ process_image(PNMImage &image) {
   if (_hls) {
     for (int yi = 0; yi < image.get_y_size(); ++yi) {
       for (int xi = 0; xi < image.get_x_size(); ++xi) {
-        LRGBColord rgb = image.get_xel(xi, yi);
+        LRGBColord rgb = LCAST(double, image.get_xel(xi, yi));
         rgb = hls2rgb(_mat.xform_point(rgb2hls(rgb)));
-        image.set_xel(xi, yi, rgb);
+        image.set_xel(xi, yi, LCAST(float, rgb));
       }
-    }    
-  } else {  
+    }
+  } else {
     for (int yi = 0; yi < image.get_y_size(); ++yi) {
       for (int xi = 0; xi < image.get_x_size(); ++xi) {
-        LRGBColord rgb = image.get_xel(xi, yi);
+        LRGBColord rgb = LCAST(double, image.get_xel(xi, yi));
         rgb = _mat.xform_point(rgb);
-        image.set_xel(xi, yi, rgb);
+        image.set_xel(xi, yi, LCAST(float, rgb));
       }
-    }    
+    }
   }
 }