From: Werner S. <sm...@us...> - 2007-02-08 21:58:07
|
Update of /cvsroot/plplot/plplot/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19429/src Modified Files: plot3d.c Log Message: Variables were declared, after code was already used, which is not allowed in C. Changed that order, so that Visual C++ 2005 can compile it. Index: plot3d.c =================================================================== RCS file: /cvsroot/plplot/plplot/src/plot3d.c,v retrieving revision 1.68 retrieving revision 1.69 diff -u -d -r1.68 -r1.69 --- plot3d.c 4 Feb 2007 05:45:38 -0000 1.68 +++ plot3d.c 8 Feb 2007 21:57:53 -0000 1.69 @@ -483,15 +483,14 @@ if (clevel != NULL && opt & BASE_CONT) { #define NPTS 100 int np = NPTS; + PLFLT **zstore; + PLcGrid2 cgrid2; PLFLT *zz = (PLFLT *) malloc(NPTS*sizeof(PLFLT)); - if (zz==NULL) plexit("plsurf3dl: Insufficient memory"); /* get the contour lines */ /* prepare cont_store input */ - PLFLT **zstore; - PLcGrid2 cgrid2; cgrid2.nx = nx; cgrid2.ny = ny; plAlloc2dGrid(&cgrid2.xg, nx, ny); |