mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-23 15:25:01 +00:00
Change return type for package initialiser/terminator
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
static char RCSid[] = "$Id: rxpack.c,v 1.14 2002/07/30 03:46:24 mark Exp $";
|
||||
static char RCSid[] = "$Id: rxpack.c,v 1.15 2002/07/30 07:07:05 mark Exp $";
|
||||
|
||||
#include "rxpack.h"
|
||||
|
||||
@@ -869,7 +869,7 @@ RxPackageGlobalDataDef *InitRxPackage
|
||||
*/
|
||||
if ( ptr )
|
||||
{
|
||||
*rc = (*ptr)( );
|
||||
*rc = (*ptr)( RxPackageGlobalData );
|
||||
}
|
||||
DEBUGDUMP(fprintf(stderr,"%s-%d: End of InitRxPackage with rc = %d\n",__FILE__,__LINE__,*rc);)
|
||||
return RxPackageGlobalData;
|
||||
@@ -914,7 +914,7 @@ int TermRxPackage
|
||||
*/
|
||||
if ( ptr )
|
||||
{
|
||||
if ( ( rc = (*ptr)( ) ) != 0 )
|
||||
if ( ( rc = (*ptr)( RxPackageGlobalData ) ) != 0 )
|
||||
return (int)FunctionEpilogue( RxPackageGlobalData, "TermRxPackage", (long)rc );
|
||||
}
|
||||
#if defined(USE_REXX6000)
|
||||
|
||||
@@ -164,9 +164,6 @@
|
||||
typedef USHORT RexxFunctionHandler(PSZ, ULONG, PRXSTRING, PSZ, PRXSTRING) ;
|
||||
#endif
|
||||
|
||||
typedef int PackageInitialiser( void );
|
||||
typedef int PackageTerminator( void );
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Definition of an external function
|
||||
*----------------------------------------------------------------------------*/
|
||||
@@ -190,6 +187,9 @@ typedef struct
|
||||
char RxTraceFileName[MAX_PATH]; /* filename of output file */
|
||||
} RxPackageGlobalDataDef;
|
||||
|
||||
typedef int PackageInitialiser( RxPackageGlobalDataDef * );
|
||||
typedef int PackageTerminator( RxPackageGlobalDataDef * );
|
||||
|
||||
#ifdef HAVE_PROTO
|
||||
# define Args(a) a
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user