|
From: Tim R. <ti...@su...> - 2004-11-24 03:28:52
|
In a similar vein to my previous email, I'd like to make a small
cleanup in the writeImage code - it currently refers directly to
'imageName'. This feels nasty since it's not an ivar, a temp or
anything accessible to the slang code - it's a C global kept mostly in
blahMain.c or wherever. It just makes me cringe when I see it.
We already have a prototype for a nice little getter function in sq.h,
so could we try using
char * getImageName(void); ?
All it needs to be is
char * getImageName(void) {
return imageName;
}
tim
--
Tim Rowledge, ti...@su..., http://sumeru.stanford.edu/tim
Strange OpCodes: ESR: Emulate Slide Rule
|