There's just no prototype in that compilation unit, so it is defaulting to
an int return type.  Just add the declaration to that file (or include the
header in which it is declared) and you'll be cool.

Kevin

> -----Original Message-----
> From: Elizabeth Chang [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 09, 1999 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: Identifier Re-declared Error
> 
> 
> Hi,
> 
> I got the identifier redeclared error message from the 
> compiler.  I know
> that I only have one declaration in frpchecklist.c (in the 
> function itself).
> I am going to include the function AppSeekRecord() and some 
> codes from the
> calling function.  Please help.
> 
> * * * *       *       *       *
> Error   : identifier 'AppSeekRecord(...)' redeclared
> was declared as: 'int (...)'
> now declared as: 'unsigned char (unsigned short *, short, short)'
> FRPChecklist.c line 677   {
> 
> Error   : undefined identifier 'indexP'
> FRPChecklist.c line 678    DmSeekRecordInCategory 
> (ChecklistDB, indexP,
> offset, direction, CurrentCategory);
> 
> * * * *       *       *       *
> static Boolean AppSeekRecord (UIntPtr indexP, Int offset, Int 
> direction)
> {
>       DmSeekRecordInCategory (ChecklistDB, indexP, offset, direction,
> CurrentCategory);
>       if (DmGetLastErr()) return (false);
>       
>       return (true);
> }
> 
> * * * *       *       *       *
> static void MainFormUpdateScrollButtons (void)
> {
>       SWord           row;
>       Word upIndex;
>       Word downIndex;
>       Word recordNum;
>       Boolean scrollableUp;
>       Boolean scrollableDown;
>       FormPtr frm;
>       TablePtr table;
> 
>       frm = FrmGetActiveForm ();
> 
>       // Update the button that scroll the list.
>       //
>       // If the first record displayed is not the fist record in the
> category,
>       // enable the up scroller.
>       recordNum = TopVisibleRecord;
>       scrollableUp = AppSeekRecord (&recordNum, 1, dmSeekBackward);
> 
> Elizabeth Chang
> ISSI Consulting Group
> [EMAIL PROTECTED]
> 
> 
> 

Reply via email to