[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob/src/util Debug.cxx Perlin.cxx
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] libvob/src/util Debug.cxx Perlin.cxx |
Date: |
Sun, 20 Apr 2003 06:51:39 -0400 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Changes by: Tuomas J. Lukka <address@hidden> 03/04/20 06:51:38
Modified files:
src/util : Debug.cxx Perlin.cxx
Log message:
oops
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/src/util/Debug.cxx.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/src/util/Perlin.cxx.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: libvob/src/util/Debug.cxx
diff -u libvob/src/util/Debug.cxx:1.4 libvob/src/util/Debug.cxx:1.5
--- libvob/src/util/Debug.cxx:1.4 Sun Apr 20 06:49:10 2003
+++ libvob/src/util/Debug.cxx Sun Apr 20 06:51:38 2003
@@ -30,6 +30,7 @@
#include <iostream>
#include <string>
#include "vob/Debug.hxx"
+#include <fstream>
#include <cstdlib>
namespace Vob {
@@ -37,9 +38,9 @@
namespace Debug {
std::ostream *debugStream() {
- const char *str = std::getEnv("VOBLOG");
+ const char *str = std::getenv("VOBLOG");
static std::ostream *dbgstream =
- (str ? new ofstream(str) : std::cout);
+ (str ? new std::ofstream(str) : &std::cout);
if(str) {
dbgstream->rdbuf()->pubsetbuf(0,0);
}
Index: libvob/src/util/Perlin.cxx
diff -u libvob/src/util/Perlin.cxx:1.2 libvob/src/util/Perlin.cxx:1.3
--- libvob/src/util/Perlin.cxx:1.2 Sun Mar 23 15:15:58 2003
+++ libvob/src/util/Perlin.cxx Sun Apr 20 06:51:38 2003
@@ -372,7 +372,7 @@
void voronoise3(float vec[3], float jitter, float *fo1, float *fo2, float
*fd) {
- int x, y, z;
+ int x=0, y=0, z=0;
int bx, by, bz;
float t;
float fx, fy, fz;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] libvob/src/util Debug.cxx Perlin.cxx,
Tuomas J. Lukka <=