[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch for redhat 6.2J



NODA Itsuki <noda@etl.go.jp> writes:
> I found possible bug in pdp+2.01.  Here is a patch.

Thanks -- I was sure I had fixed that leabra.cc bug -- turned out it
didn't get propagated to the master source..  anyway, i uploaded a
v. 2.02 (just the source code) with these changes (I have no idea what
the __USE_XOPEN does, but I hope it doesn't cause any other problems).

> ----------------------------------------------------------------------
> diff -r -p pdp++_2.01/src/css/css_builtin.cc pdp++_2.01n/src/css/css_builtin.cc
> *** pdp++_2.01/src/css/css_builtin.cc	Mon Jul 24 11:28:14 2000
> --- pdp++_2.01n/src/css/css_builtin.cc	Fri Oct 20 03:43:33 2000
> ***************
> *** 47,58 ****
> --- 47,61 ----
>   #include <ta/taiv_data.h>
>   #include <ta/ta_group.h>
>   
> + #define __USE_XOPEN	// [I.Noda] added to avoid compiler error 
> + 
>   #include <unistd.h>
>   #include <values.h>
>   #include <stdio.h>
>   #include <errno.h>
>   #include <time.h>
>   #include <sys/time.h>
> + 
>   
>   // when using the .c version
>   // extern "C" {
> diff -r -p pdp++_2.01/src/leabra/leabra.cc pdp++_2.01n/src/leabra/leabra.cc
> *** pdp++_2.01/src/leabra/leabra.cc	Mon Sep 18 04:33:33 2000
> --- pdp++_2.01n/src/leabra/leabra.cc	Fri Oct 20 11:35:13 2000
> *************** void LeabraUnitSpec::AdaptThresh(LeabraU
> *** 668,674 ****
>       u->thr += adapt_thr.t_dt * ((act.thr + adapt_thr.mx_d) - u->thr);
>   }
>   
> ! void LeabraUnitSpec::PhaseInit(LeabraUnit* u, LeabraLayer*, int phase) {
>     if(!(u->ext_flag & Unit::TARG))
>       return;
>   
> --- 668,674 ----
>       u->thr += adapt_thr.t_dt * ((act.thr + adapt_thr.mx_d) - u->thr);
>   }
>   
> ! void LeabraUnitSpec::PhaseInit(LeabraUnit* u, LeabraLayer* lay, int phase) {
>     if(!(u->ext_flag & Unit::TARG))
>       return;

				- Randy