If I have the following setup
void Vdlog_SetVport( int reason)
{
static double lx,ly,hx,hy;
Vmath_GetBox(&l x,&ly,&hx,&hy) ;
....
}
void Vmath_GetBox(do uble *lx,double *ly,double *hx,double *hy)
{
.....
}
Will the pointers passed to Vmath_GetBox be out of scope (I have tried and
it causes a crash) ?
Ie are static variables only visible within the routine to which they are
declared ?
--
David Buck
2D CAD for RISC OS at www.risccad.freeuk.com
void Vdlog_SetVport( int reason)
{
static double lx,ly,hx,hy;
Vmath_GetBox(&l x,&ly,&hx,&hy) ;
....
}
void Vmath_GetBox(do uble *lx,double *ly,double *hx,double *hy)
{
.....
}
Will the pointers passed to Vmath_GetBox be out of scope (I have tried and
it causes a crash) ?
Ie are static variables only visible within the routine to which they are
declared ?
--
David Buck
2D CAD for RISC OS at www.risccad.freeuk.com
Comment