lua-users home
lua-l archive

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


At 01:53 PM 9/1/99 , you wrote:
>static TaggedString *str_checkname (LexState *ls) {
>  return tsvalue(&ls->fs->f->consts[checkname(ls)]);
>}

>static TaggedString *str_checkname (LexState *ls) {
>  int sc = checkname(ls);
>  return tsvalue(&ls->fs->f->consts[sc]);
>}

>This is causing a core dump on HPUX machines. The reason
>is rather obvious.

It isn't obvious at all to me.  What's the problem?  Does HPUX's version of
C not allow return values of functions in array accessors?

--
Michael T. Richter    <mtr@ottawa.com>    http://www.igs.net/~mtr/
          PGP Key: http://www.igs.net/~mtr/pgp-key.html
PGP Fingerprint: 40D1 33E0 F70B 6BB5 8353 4669 B4CC DD09 04ED 4FE8