RE:cint for QNX (fwd)

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Thu Aug 27 1998 - 00:04:00 MEST


Frederic,

>hummm, now i have another error in debug.c instead of disp.c using the G__ANS
I
>
>cc -Oaxt -I..      -c debug.c
>debug.c(199): Error! E1151: Parameter count does not agree with previous
>definition
>debug.c(202): Error! E1151: Parameter count does not agree with previous 
>definition
>
>any advice?

This is a bug. Sinse cint is compiled in K&R mode in most of the platform,
this bug was not caught until now. Modify src/fproto.h line 101 as follows.

void G__listfunc G__P((FILE *fp,int access,char* fname,struct G__ifunc_table 
*ifunc));

You might find the same problem with a couple of other functions. Please fix
it in src/fproto.c. Other ones I found was

src/fproto  line 633
  extern void G__more_pause G__P((FILE* fp));
src/fproto  line 503
  struct G__IntList* G__IntList_new G__P((long iin,struct G__IntList *prev));

src/g__cfunc.c  line 2322 and 2336
  change function name from G__defined_type  to G__defined_typename

src/pcode.c  line 1404-1407
      G__asm_stack[sp-1]
        = (*G__GetSpecialObject)((char*)G__asm_inst[pc+1]
         ,(void**)G__int(G__asm_stack[sp-1])
        ,(void**)(G__int(G__asm_stack[sp-1])+G__LONGALLOC));

I should have done this before.

Masaharu Goto



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:37 MET