/*
* mystdio.h
*
- * $Date: 2001/03/19 17:52:02 $ $Revision: 1.3 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/interface/mystdio.h,v 1.3 2001/03/19 17:52:02 pesco Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.4 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/interface/mystdio.h,v 1.4 2006/03/14 15:08:52 brianp Exp $
*/
#ifndef __glumystdio_h_
#define __glumystdio_h_
#ifdef STANDALONE
-inline void dprintf( char *, ... ) { }
+inline void _glu_dprintf( char *, ... ) { }
#endif
#ifdef LIBRARYBUILD
#ifndef NDEBUG
#include <stdio.h>
-#define dprintf printf
+#define _glu_dprintf printf
#else
-inline void dprintf( char *, ... ) { }
+inline void _glu_dprintf( char *, ... ) { }
#endif
#endif
#ifdef GLBUILD
-inline void dprintf( char *, ... ) { }
+inline void _glu_dprintf( char *, ... ) { }
#endif
#ifndef NULL
Arc::show()
{
#ifndef NDEBUG
- dprintf( "\tPWLARC NP: %d FL: 1\n", pwlArc->npts );
+ _glu_dprintf( "\tPWLARC NP: %d FL: 1\n", pwlArc->npts );
for( int i = 0; i < pwlArc->npts; i++ ) {
- dprintf( "\t\tVERTEX %f %f\n", pwlArc->pts[i].param[0],
+ _glu_dprintf( "\t\tVERTEX %f %f\n", pwlArc->pts[i].param[0],
pwlArc->pts[i].param[1] );
}
#endif
Arc_ptr jarc = this;
#ifndef NDEBUG
- dprintf( "BGNTRIM\n" );
+ _glu_dprintf( "BGNTRIM\n" );
#endif
do {
jarc->show( );
jarc = jarc->next;
} while (jarc != this);
#ifndef NDEBUG
- dprintf("ENDTRIM\n" );
+ _glu_dprintf("ENDTRIM\n" );
#endif
}
if( ((p0[0] - p1[0]) > ZERO) || ((p1[0] - p0[0]) > ZERO) ||
((p0[1] - p1[1]) > ZERO) || ((p1[1] - p0[1]) > ZERO) ) {
#ifndef NDEBUG
- dprintf( "x coord = %f %f %f\n", p0[0], p1[0], p0[0] - p1[0] );
- dprintf( "y coord = %f %f %f\n", p0[1], p1[1], p0[1] - p1[1] );
+ _glu_dprintf( "x coord = %f %f %f\n", p0[0], p1[0], p0[0] - p1[0] );
+ _glu_dprintf( "y coord = %f %f %f\n", p0[1], p1[1], p0[1] - p1[1] );
#endif
return 1;
} else {
if (jarc->prev == 0 || jarc->next == 0) {
#ifndef NDEBUG
- dprintf( "checkjarc:null next/prev pointer\n");
+ _glu_dprintf( "checkjarc:null next/prev pointer\n");
jarc->print( );
#endif
return 0;
if (jarc->next->prev != jarc) {
#ifndef NDEBUG
- dprintf( "checkjarc: pointer linkage screwed up\n");
+ _glu_dprintf( "checkjarc: pointer linkage screwed up\n");
jarc->print( );
#endif
return 0;
if( jarc->prev->pwlArc ) {
if( jarc->tail()[1] != jarc->prev->rhead()[1] ) {
#ifndef NDEBUG
- dprintf( "checkjarc: geometric linkage screwed up 1\n");
+ _glu_dprintf( "checkjarc: geometric linkage screwed up 1\n");
jarc->prev->show();
jarc->show();
#endif
if( jarc->tail()[0] != jarc->prev->rhead()[0] ) {
#ifndef NDEBUG
- dprintf( "checkjarc: geometric linkage screwed up 2\n");
+ _glu_dprintf( "checkjarc: geometric linkage screwed up 2\n");
jarc->prev->show();
jarc->show();
#endif
if( jarc->next->pwlArc ) {
if( jarc->next->tail()[0] != jarc->rhead()[0] ) {
#ifndef NDEBUG
- dprintf( "checkjarc: geometric linkage screwed up 3\n");
+ _glu_dprintf( "checkjarc: geometric linkage screwed up 3\n");
jarc->show();
jarc->next->show();
#endif
}
if( jarc->next->tail()[1] != jarc->rhead()[1] ) {
#ifndef NDEBUG
- dprintf( "checkjarc: geometric linkage screwed up 4\n");
+ _glu_dprintf( "checkjarc: geometric linkage screwed up 4\n");
jarc->show();
jarc->next->show();
#endif
/*
* arcsorter.c++
*
- * $Date: 2001/03/17 00:25:40 $ $Revision: 1.1 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/arcsorter.cc,v 1.1 2001/03/17 00:25:40 brianp Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.2 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/arcsorter.cc,v 1.2 2006/03/14 15:08:52 brianp Exp $
*/
#ifndef __gluarcsorter_c_
int
ArcSorter::qscmp( char *, char * )
{
- dprintf( "ArcSorter::qscmp: pure virtual called\n" );
+ _glu_dprintf( "ArcSorter::qscmp: pure virtual called\n" );
return 0;
}
BasicCurveEvaluator::domain1f( REAL, REAL )
{
#ifndef NDEBUG
- dprintf( "domain1f\n" );
+ _glu_dprintf( "domain1f\n" );
#endif
}
BasicCurveEvaluator::range1f( long , REAL *, REAL * )
{
#ifndef NDEBUG
- dprintf( "range1f\n" );
+ _glu_dprintf( "range1f\n" );
#endif
}
BasicCurveEvaluator::enable( long )
{
#ifndef NDEBUG
- dprintf( "enable\n" );
+ _glu_dprintf( "enable\n" );
#endif
}
BasicCurveEvaluator::disable( long )
{
#ifndef NDEBUG
- dprintf( "disable\n" );
+ _glu_dprintf( "disable\n" );
#endif
}
BasicCurveEvaluator::bgnmap1f( long )
{
#ifndef NDEBUG
- dprintf( "bgnmap1f\n" );
+ _glu_dprintf( "bgnmap1f\n" );
#endif
}
BasicCurveEvaluator::map1f( long, REAL, REAL, long, long, REAL * )
{
#ifndef NDEBUG
- dprintf( "map1f\n" );
+ _glu_dprintf( "map1f\n" );
#endif
}
BasicCurveEvaluator::mapgrid1f( long, REAL, REAL )
{
#ifndef NDEBUG
- dprintf( "mapgrid1f\n" );
+ _glu_dprintf( "mapgrid1f\n" );
#endif
}
BasicCurveEvaluator::mapmesh1f( long, long, long )
{
#ifndef NDEBUG
- dprintf( "mapmesh1f\n" );
+ _glu_dprintf( "mapmesh1f\n" );
#endif
}
BasicCurveEvaluator::evalcoord1f( long, REAL )
{
#ifndef NDEBUG
- dprintf( "evalcoord1f\n" );
+ _glu_dprintf( "evalcoord1f\n" );
#endif
}
BasicCurveEvaluator::endmap1f( void )
{
#ifndef NDEBUG
- dprintf( "endmap1f\n" );
+ _glu_dprintf( "endmap1f\n" );
#endif
}
BasicCurveEvaluator::bgnline( void )
{
#ifndef NDEBUG
- dprintf( "bgnline\n" );
+ _glu_dprintf( "bgnline\n" );
#endif
}
BasicCurveEvaluator::endline( void )
{
#ifndef NDEBUG
- dprintf( "endline\n" );
+ _glu_dprintf( "endline\n" );
#endif
}
BasicSurfaceEvaluator::domain2f( REAL, REAL, REAL, REAL )
{
#ifndef NDEBUG
- dprintf( "domain2f\n" );
+ _glu_dprintf( "domain2f\n" );
#endif
}
BasicSurfaceEvaluator::polymode( long )
{
#ifndef NDEBUG
- dprintf( "polymode\n" );
+ _glu_dprintf( "polymode\n" );
#endif
}
BasicSurfaceEvaluator::range2f( long type, REAL *from, REAL *to )
{
#ifndef NDEBUG
- dprintf( "range2f type %ld, from (%g,%g), to (%g,%g)\n",
+ _glu_dprintf( "range2f type %ld, from (%g,%g), to (%g,%g)\n",
type, from[0], from[1], to[0], to[1] );
#endif
}
BasicSurfaceEvaluator::enable( long )
{
#ifndef NDEBUG
- dprintf( "enable\n" );
+ _glu_dprintf( "enable\n" );
#endif
}
BasicSurfaceEvaluator::disable( long )
{
#ifndef NDEBUG
- dprintf( "disable\n" );
+ _glu_dprintf( "disable\n" );
#endif
}
BasicSurfaceEvaluator::bgnmap2f( long )
{
#ifndef NDEBUG
- dprintf( "bgnmap2f\n" );
+ _glu_dprintf( "bgnmap2f\n" );
#endif
}
BasicSurfaceEvaluator::endmap2f( void )
{
#ifndef NDEBUG
- dprintf( "endmap2f\n" );
+ _glu_dprintf( "endmap2f\n" );
#endif
}
REAL * )
{
#ifndef NDEBUG
- dprintf( "map2f\n" );
+ _glu_dprintf( "map2f\n" );
#endif
}
BasicSurfaceEvaluator::mapgrid2f( long, REAL, REAL, long, REAL, REAL )
{
#ifndef NDEBUG
- dprintf( "mapgrid2f\n" );
+ _glu_dprintf( "mapgrid2f\n" );
#endif
}
BasicSurfaceEvaluator::mapmesh2f( long, long, long, long, long )
{
#ifndef NDEBUG
- dprintf( "mapmesh2f\n" );
+ _glu_dprintf( "mapmesh2f\n" );
#endif
}
BasicSurfaceEvaluator::evalcoord2f( long, REAL, REAL )
{
#ifndef NDEBUG
- dprintf( "evalcoord2f\n" );
+ _glu_dprintf( "evalcoord2f\n" );
#endif
}
BasicSurfaceEvaluator::evalpoint2i( long, long )
{
#ifndef NDEBUG
- dprintf( "evalpoint2i\n" );
+ _glu_dprintf( "evalpoint2i\n" );
#endif
}
BasicSurfaceEvaluator::bgnline( void )
{
#ifndef NDEBUG
- dprintf( "bgnline\n" );
+ _glu_dprintf( "bgnline\n" );
#endif
}
BasicSurfaceEvaluator::endline( void )
{
#ifndef NDEBUG
- dprintf( "endline\n" );
+ _glu_dprintf( "endline\n" );
#endif
}
BasicSurfaceEvaluator::bgnclosedline( void )
{
#ifndef NDEBUG
- dprintf( "bgnclosedline\n" );
+ _glu_dprintf( "bgnclosedline\n" );
#endif
}
BasicSurfaceEvaluator::endclosedline( void )
{
#ifndef NDEBUG
- dprintf( "endclosedline\n" );
+ _glu_dprintf( "endclosedline\n" );
#endif
}
BasicSurfaceEvaluator::bgntfan( void )
{
#ifndef NDEBUG
- dprintf( "bgntfan\n" );
+ _glu_dprintf( "bgntfan\n" );
#endif
}
BasicSurfaceEvaluator::bgntmesh( void )
{
#ifndef NDEBUG
- dprintf( "bgntmesh\n" );
+ _glu_dprintf( "bgntmesh\n" );
#endif
}
BasicSurfaceEvaluator::swaptmesh( void )
{
#ifndef NDEBUG
- dprintf( "swaptmesh\n" );
+ _glu_dprintf( "swaptmesh\n" );
#endif
}
BasicSurfaceEvaluator::endtmesh( void )
{
#ifndef NDEBUG
- dprintf( "endtmesh\n" );
+ _glu_dprintf( "endtmesh\n" );
#endif
}
BasicSurfaceEvaluator::bgnqstrip( void )
{
#ifndef NDEBUG
- dprintf( "bgnqstrip\n" );
+ _glu_dprintf( "bgnqstrip\n" );
#endif
}
BasicSurfaceEvaluator::endqstrip( void )
{
#ifndef NDEBUG
- dprintf( "endqstrip\n" );
+ _glu_dprintf( "endqstrip\n" );
#endif
}
/*
* bin.c++
*
- * $Date: 2004/05/12 15:29:36 $ $Revision: 1.2 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/bin.cc,v 1.2 2004/05/12 15:29:36 brianp Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.3 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/bin.cc,v 1.3 2006/03/14 15:08:52 brianp Exp $
*/
#include "glimports.h"
Bin::show( char *name )
{
#ifndef NDEBUG
- dprintf( "%s\n", name );
+ _glu_dprintf( "%s\n", name );
for( Arc_ptr jarc = firstarc(); jarc; jarc = nextarc() )
jarc->show( );
#endif
REAL t1 = pts[0].param[1];
REAL s2 = pts[1].param[0];
REAL t2 = pts[1].param[1];
- dprintf( "arc (%g,%g) (%g,%g)\n", s1, t1, s2, t2 );
+ _glu_dprintf( "arc (%g,%g) (%g,%g)\n", s1, t1, s2, t2 );
#endif
}
}
/*
* ccw.c++
*
- * $Date: 2002/11/01 23:35:07 $ $Revision: 1.2 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/ccw.cc,v 1.2 2002/11/01 23:35:07 brianp Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.3 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/ccw.cc,v 1.3 2006/03/14 15:08:52 brianp Exp $
*/
#include "glimports.h"
assert( v2 != v2last );
#ifndef NDEBUG
- dprintf( "arc_ccw_turn, p = %d\n", 0 );
+ _glu_dprintf( "arc_ccw_turn, p = %d\n", 0 );
#endif
// the arcs lie on the line (0 == v1->param[0])
while( 1 ) {
if( v1next->param[0] < v2next->param[0] ) {
#ifndef NDEBUG
- dprintf( "case a\n" );
+ _glu_dprintf( "case a\n" );
#endif
assert( v1->param[0] <= v1next->param[0] );
assert( v2->param[0] <= v1next->param[0] );
return sgn;
} else {
#ifdef DEBUG
- dprintf( "decr\n" );
+ _glu_dprintf( "decr\n" );
#endif
v1 = v1next--;
if( v1 == v1last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
}
} else if( v1next->param[0] > v2next->param[0] ) {
#ifndef NDEBUG
- dprintf( "case b\n" );
+ _glu_dprintf( "case b\n" );
#endif
assert( v1->param[0] <= v2next->param[0] );
assert( v2->param[0] <= v2next->param[0] );
return sgn;
} else {
#ifdef DEBUG
- dprintf( "incr\n" );
+ _glu_dprintf( "incr\n" );
#endif
v2 = v2next++;
if( v2 == v2last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
}
} else {
#ifndef NDEBUG
- dprintf( "case ab\n" );
+ _glu_dprintf( "case ab\n" );
#endif
if( v1next->param[1] < v2next->param[1] )
return 0;
return 1;
else {
#ifdef DEBUG
- dprintf( "incr\n" );
+ _glu_dprintf( "incr\n" );
#endif
v2 = v2next++;
if( v2 == v2last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
assert( v2 != v2last );
#ifndef NDEBUG
- dprintf( "arc_ccw_turn, p = %d\n", 0 );
+ _glu_dprintf( "arc_ccw_turn, p = %d\n", 0 );
#endif
// the arcs lie on the line (0 == v1->param[0])
while( 1 ) {
if( v1next->param[0] > v2next->param[0] ) {
#ifndef NDEBUG
- dprintf( "case c\n" );
+ _glu_dprintf( "case c\n" );
#endif
assert( v1->param[0] >= v1next->param[0] );
assert( v2->param[0] >= v1next->param[0] );
else {
v1 = v1next--;
#ifdef DEBUG
- dprintf( "decr\n" );
+ _glu_dprintf( "decr\n" );
#endif
if( v1 == v1last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
}
} else if( v1next->param[0] < v2next->param[0] ) {
#ifndef NDEBUG
- dprintf( "case d\n" );
+ _glu_dprintf( "case d\n" );
#endif
assert( v1->param[0] >= v2next->param[0] );
assert( v2->param[0] >= v2next->param[0] );
else {
v2 = v2next++;
#ifdef DEBUG
- dprintf( "incr\n" );
+ _glu_dprintf( "incr\n" );
#endif
if( v2 == v2last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
}
} else {
#ifdef DEBUG
- dprintf( "case cd\n" );
+ _glu_dprintf( "case cd\n" );
#endif
if( v1next->param[1] < v2next->param[1] )
return 1;
else {
v2 = v2next++;
#ifdef DEBUG
- dprintf( "incr\n" );
+ _glu_dprintf( "incr\n" );
#endif
if( v2 == v2last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
assert( v2 != v2last );
#ifndef NDEBUG
- dprintf( "arc_ccw_turn, p = %d\n", 1 );
+ _glu_dprintf( "arc_ccw_turn, p = %d\n", 1 );
#endif
// the arcs lie on the line (1 == v1->param[1])
while( 1 ) {
if( v1next->param[1] < v2next->param[1] ) {
#ifndef NDEBUG
- dprintf( "case a\n" );
+ _glu_dprintf( "case a\n" );
#endif
assert( v1->param[1] <= v1next->param[1] );
assert( v2->param[1] <= v1next->param[1] );
return sgn;
} else {
#ifdef DEBUG
- dprintf( "decr\n" );
+ _glu_dprintf( "decr\n" );
#endif
v1 = v1next--;
if( v1 == v1last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
}
} else if( v1next->param[1] > v2next->param[1] ) {
#ifndef NDEBUG
- dprintf( "case b\n" );
+ _glu_dprintf( "case b\n" );
#endif
assert( v1->param[1] <= v2next->param[1] );
assert( v2->param[1] <= v2next->param[1] );
return sgn;
} else {
#ifdef DEBUG
- dprintf( "incr\n" );
+ _glu_dprintf( "incr\n" );
#endif
v2 = v2next++;
if( v2 == v2last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
}
} else {
#ifdef DEBUG
- dprintf( "case ab\n" );
+ _glu_dprintf( "case ab\n" );
#endif
if( v1next->param[0] < v2next->param[0] )
return 1;
return 0;
else {
#ifdef DEBUG
- dprintf( "incr\n" );
+ _glu_dprintf( "incr\n" );
#endif
v2 = v2next++;
if( v2 == v2last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
assert( v2 != v2last );
#ifndef NDEBUG
- dprintf( "arc_ccw_turn, p = %d\n", 1 );
+ _glu_dprintf( "arc_ccw_turn, p = %d\n", 1 );
#endif
// the arcs lie on the line (1 == v1->param[1])
while( 1 ) {
if( v1next->param[1] > v2next->param[1] ) {
#ifndef NDEBUG
- dprintf( "case c\n" );
+ _glu_dprintf( "case c\n" );
#endif
assert( v1->param[1] >= v1next->param[1] );
assert( v2->param[1] >= v1next->param[1] );
else {
v1 = v1next--;
#ifdef DEBUG
- dprintf( "decr\n" );
+ _glu_dprintf( "decr\n" );
#endif
if( v1 == v1last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
}
} else if( v1next->param[1] < v2next->param[1] ) {
#ifndef NDEBUG
- dprintf( "case d\n" );
+ _glu_dprintf( "case d\n" );
assert( v1->param[1] >= v2next->param[1] );
assert( v2->param[1] >= v2next->param[1] );
#endif
else {
v2 = v2next++;
#ifdef DEBUG
- dprintf( "incr\n" );
+ _glu_dprintf( "incr\n" );
#endif
if( v2 == v2last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
}
} else {
#ifdef DEBUG
- dprintf( "case cd\n" );
+ _glu_dprintf( "case cd\n" );
#endif
if( v1next->param[0] < v2next->param[0] )
return 0;
else {
v2 = v2next++;
#ifdef DEBUG
- dprintf( "incr\n" );
+ _glu_dprintf( "incr\n" );
#endif
if( v2 == v2last ) {
#ifdef DEBUG
- dprintf( "no good results\n" );
+ _glu_dprintf( "no good results\n" );
#endif
return 0; // ill-conditioned, guess answer
}
void Knotvector::show( char *msg )
{
#ifndef NDEBUG
- dprintf( "%s\n", msg );
- dprintf( "order = %ld, count = %ld\n", order, knotcount );
+ _glu_dprintf( "%s\n", msg );
+ _glu_dprintf( "order = %ld, count = %ld\n", order, knotcount );
for( int i=0; i<knotcount; i++ )
- dprintf( "knot[%d] = %g\n", i, knotlist[i] );
+ _glu_dprintf( "knot[%d] = %g\n", i, knotlist[i] );
#endif
}
}
if( i != count ) {
do_nurbserror( 37 );
- dprintf( "point %d (%f,%f)\n", i, x, y );
+ _glu_dprintf( "point %d (%f,%f)\n", i, x, y );
isDataValid = 0;
return;
}
}
if( i != count ) {
do_nurbserror( 37 );
- dprintf( "point %d (%f,%f)\n", i, x, y );
+ _glu_dprintf( "point %d (%f,%f)\n", i, x, y );
isDataValid = 0;
return;
}
mapdesc->setBboxsize( mat );
} else {
#ifndef NDEBUG
- dprintf( "ERRORRORRORR!!!\n");
+ _glu_dprintf( "ERRORRORRORR!!!\n");
#endif
}
}
mapdesc->setBmat( mat, rstride, cstride );
} else {
#ifndef NDEBUG
- dprintf( "ERRORRORRORR!!!\n");
+ _glu_dprintf( "ERRORRORRORR!!!\n");
#endif
}
}
/*
* nurbstess.c++
*
- * $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/nurbstess.cc,v 1.1 2001/03/17 00:25:41 brianp Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.2 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/nurbstess.cc,v 1.2 2006/03/14 15:08:52 brianp Exp $
*/
#include "glimports.h"
NurbsTessellator::makeobj( int )
{
#ifndef NDEBUG
- dprintf( "makeobj\n" );
+ _glu_dprintf( "makeobj\n" );
#endif
}
NurbsTessellator::closeobj( void )
{
#ifndef NDEBUG
- dprintf( "closeobj\n" );
+ _glu_dprintf( "closeobj\n" );
#endif
}
NurbsTessellator::bgnrender( void )
{
#ifndef NDEBUG
- dprintf( "bgnrender\n" );
+ _glu_dprintf( "bgnrender\n" );
#endif
}
NurbsTessellator::endrender( void )
{
#ifndef NDEBUG
- dprintf( "endrender\n" );
+ _glu_dprintf( "endrender\n" );
#endif
}
/*
* patch.c++
*
- * $Date: 2002/11/01 23:35:07 $ $Revision: 1.3 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/patch.cc,v 1.3 2002/11/01 23:35:07 brianp Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.4 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/patch.cc,v 1.4 2006/03/14 15:08:52 brianp Exp $
*/
#include <stdio.h>
}
#ifdef DEBUG
- dprintf( "sidesteps %g %g %g %g, stepsize %g %g\n",
+ _glu_dprintf( "sidesteps %g %g %g %g, stepsize %g %g\n",
pspec[0].sidestep[0], pspec[0].sidestep[1],
pspec[1].sidestep[0], pspec[1].sidestep[1],
pspec[0].stepsize, pspec[1].stepsize );
/*
* quilt.c++
*
- * $Date: 2002/11/01 23:35:07 $ $Revision: 1.2 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/quilt.cc,v 1.2 2002/11/01 23:35:07 brianp Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.3 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/quilt.cc,v 1.3 2006/03/14 15:08:52 brianp Exp $
*/
#include "glimports.h"
for( int i=0; i!= qspec[0].order * qspec[0].width; i++ ) {
for( int j = 0; j!= qspec[1].order * qspec[1].width; j++ ) {
for( int k=0; k < nc; k++ )
- dprintf( "%g ", ps[i*qspec[0].stride + j*qspec[1].stride + k] );
- dprintf( "\n" );
+ _glu_dprintf( "%g ", ps[i*qspec[0].stride + j*qspec[1].stride + k] );
+ _glu_dprintf( "\n" );
}
- dprintf( "\n" );
+ _glu_dprintf( "\n" );
}
- dprintf( "\n" );
+ _glu_dprintf( "\n" );
#endif
}
/*
* sorter.c++
*
- * $Date: 2001/11/29 16:16:55 $ $Revision: 1.2 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/sorter.cc,v 1.2 2001/11/29 16:16:55 kschultz Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.3 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/sorter.cc,v 1.3 2006/03/14 15:08:52 brianp Exp $
*/
#include "glimports.h"
int
Sorter::qscmp( char *, char * )
{
- dprintf( "Sorter::qscmp: pure virtual called\n" );
+ _glu_dprintf( "Sorter::qscmp: pure virtual called\n" );
return 0;
}
void
Sorter::qsexc( char *, char * )
{
- dprintf( "Sorter::qsexc: pure virtual called\n" );
+ _glu_dprintf( "Sorter::qsexc: pure virtual called\n" );
}
void
Sorter::qstexc( char *, char *, char * )
{
- dprintf( "Sorter::qstexc: pure virtual called\n" );
+ _glu_dprintf( "Sorter::qstexc: pure virtual called\n" );
}
void
/*
* splitarcs.c++
*
- * $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/splitarcs.cc,v 1.1 2001/03/17 00:25:41 brianp Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.2 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/splitarcs.cc,v 1.2 2006/03/14 15:08:52 brianp Exp $
*/
#include "glimports.h"
undersampling */
if( ! ( jarc1->tail()[0] < (jarc1)->head()[0] ) ) {
#ifndef NDEBUG
- dprintf( "s difference %f\n", (jarc1)->tail()[0] - (jarc1)->head()[0] );
+ _glu_dprintf( "s difference %f\n", (jarc1)->tail()[0] - (jarc1)->head()[0] );
#endif
::mylongjmp( jumpbuffer, 28 );
}
if( ! ( jarc2->tail()[0] > (jarc2)->head()[0] ) ) {
#ifndef NDEBUG
- dprintf( "s difference %f\n", (jarc2)->tail()[0] - (jarc2)->head()[0] );
+ _glu_dprintf( "s difference %f\n", (jarc2)->tail()[0] - (jarc2)->head()[0] );
#endif
::mylongjmp( jumpbuffer, 28 );
}
undersampling */
if( ! ( jarc1->tail()[1] < (jarc1)->head()[1] ) ) {
#ifndef NDEBUG
- dprintf( "t difference %f\n", jarc1->tail()[1] - (jarc1)->head()[1] );
+ _glu_dprintf( "t difference %f\n", jarc1->tail()[1] - (jarc1)->head()[1] );
#endif
::mylongjmp( jumpbuffer, 28 );
}
if( ! ( jarc2->tail()[1] > (jarc2)->head()[1] ) ) {
#ifndef NDEBUG
- dprintf( "t difference %f\n", jarc2->tail()[1] - (jarc2)->head()[1] );
+ _glu_dprintf( "t difference %f\n", jarc2->tail()[1] - (jarc2)->head()[1] );
#endif
::mylongjmp( jumpbuffer, 28 );
}
/*
* tobezier.c++
*
- * $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/tobezier.cc,v 1.1 2001/03/17 00:25:41 brianp Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.2 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/tobezier.cc,v 1.2 2006/03/14 15:08:52 brianp Exp $
*/
#include "glimports.h"
next->showpts( outpt );
} else {
for( REAL *lpt=outpt+prewidth; outpt != lpt; outpt += poststride )
- dprintf( "show %g %g %g\n", outpt[0], outpt[1], outpt[2] );
+ _glu_dprintf( "show %g %g %g\n", outpt[0], outpt[1], outpt[2] );
}
}
/*
* mystdio.h
*
- * $Date: 2001/03/19 17:52:03 $ $Revision: 1.3 $
- * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/nurbtess/mystdio.h,v 1.3 2001/03/19 17:52:03 pesco Exp $
+ * $Date: 2006/03/14 15:08:52 $ $Revision: 1.4 $
+ * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/nurbtess/mystdio.h,v 1.4 2006/03/14 15:08:52 brianp Exp $
*/
#ifndef __glumystdio_h_
#define __glumystdio_h_
#ifdef STANDALONE
-inline void dprintf( char *, ... ) { }
+inline void _glu_dprintf( char *, ... ) { }
#endif
#ifdef LIBRARYBUILD
#ifndef NDEBUG
#include <stdio.h>
-#define dprintf printf
+#define _glu_dprintf printf
#else
-inline void dprintf( char *, ... ) { }
+inline void _glu_dprintf( char *, ... ) { }
#endif
#endif
#ifdef GLBUILD
-inline void dprintf( char *, ... ) { }
+inline void _glu_dprintf( char *, ... ) { }
#endif
#ifndef NULL