fixed valgrind support (and gitignore)
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sat, 16 Jun 2007 02:40:46 +0000 (02:40 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sat, 16 Jun 2007 02:40:46 +0000 (02:40 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@13134 0101bb08-14d6-0310-b084-bc0e0c8e3800

.gitignore
libspeex/nb_celp.c

index d595f00..eb35247 100644 (file)
@@ -1,4 +1,5 @@
 *.o
+*.lo
 Makefile.in
 *~
 fixed
@@ -15,4 +16,25 @@ depcomp
 install-sh
 ltmain.sh
 missing
+Makefile
+.deps
+.libs
+*.la
 work
+Speex.spec
+config.h
+config.log
+config.status
+include/speex/speex_config_types.h
+*.swp
+testdenoise
+testecho
+testenc
+testenc_uwb
+testenc_wb
+libtool
+speex.pc
+speexdec
+src/speexenc
+stamp-*
+
index 6ac12a0..a632287 100644 (file)
@@ -209,7 +209,7 @@ void *nb_encoder_init(const SpeexMode *m)
    st->highpass_enabled = 1;
    
 #ifdef ENABLE_VALGRIND
-   VALGRIND_MAKE_READABLE(st, (st->stack-(char*)st));
+   VALGRIND_MAKE_READABLE(st, NB_ENC_STACK);
 #endif
    return st;
 }
@@ -1101,7 +1101,7 @@ void *nb_decoder_init(const SpeexMode *m)
    st->highpass_enabled = 1;
 
 #ifdef ENABLE_VALGRIND
-   VALGRIND_MAKE_READABLE(st, (st->stack-(char*)st));
+   VALGRIND_MAKE_READABLE(st, NB_DEC_STACK);
 #endif
    return st;
 }