OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [nlm/] [prelude.c] - Diff between revs 107 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 107 Rev 1765
/*===========================================================================
/*===========================================================================
=       Novell Standard C Library for NetWare Loadable Modules
=       Novell Standard C Library for NetWare Loadable Modules
=
=
=       Unpublished Copyright (C) 1993 by Novell, Inc. All rights reserved.
=       Unpublished Copyright (C) 1993 by Novell, Inc. All rights reserved.
=
=
=       No part of this file may be duplicated, revised, translated, localized or
=       No part of this file may be duplicated, revised, translated, localized or
=       modified in any manner or compiled, linked or uploaded or downloaded to or
=       modified in any manner or compiled, linked or uploaded or downloaded to or
=       from any computer system without the prior written consent of Novell, Inc.
=       from any computer system without the prior written consent of Novell, Inc.
==============================================================================
==============================================================================
=       The object produced by compiling this file is for use by the client of this
=       The object produced by compiling this file is for use by the client of this
=       library and is not linked in;  Prelude.Obj is therefore one of the files to
=       library and is not linked in;  Prelude.Obj is therefore one of the files to
=       be distributed with CLib.NLM and its headers.
=       be distributed with CLib.NLM and its headers.
==============================================================================
==============================================================================
*/
*/
 
 
#include <stddef.h>
#include <stddef.h>
#if defined(__netware__) && defined(__i386__)
#if defined(__netware__) && defined(__i386__)
#define TERMINATE_BY_UNLOAD     5
#define TERMINATE_BY_UNLOAD     5
#else
#else
#include <nwpre.h>
#include <nwpre.h>
#endif
#endif
/*#include "libhooks.h"*/
/*#include "libhooks.h"*/
 
 
extern int main (int, char **);
extern int main (int, char **);
 
 
static int      NLMID;
static int      NLMID;
 
 
 
 
void _Stop( void )
void _Stop( void )
{
{
        _TerminateNLM(NLMID, NULL, TERMINATE_BY_UNLOAD);
        _TerminateNLM(NLMID, NULL, TERMINATE_BY_UNLOAD);
}
}
 
 
int _cstart_( void )
int _cstart_( void )
{
{
   return _SetupArgv(main);
   return _SetupArgv(main);
}
}
 
 
int _Prelude
int _Prelude
(
(
        int     NLMHandle,
        int     NLMHandle,
        int     initErrorScreenID,
        int     initErrorScreenID,
        char    *commandLine,
        char    *commandLine,
        char    *loadDirectoryPath,
        char    *loadDirectoryPath,
        int     uninitializedDataLength,
        int     uninitializedDataLength,
        int     NLMFileHandle,
        int     NLMFileHandle,
        int     (*readRoutineP)(),
        int     (*readRoutineP)(),
        int     customDataOffset,
        int     customDataOffset,
        int     customDataSize
        int     customDataSize
)
)
{
{
        int     rc;
        int     rc;
 
 
   rc = _StartNLM(NLMHandle,
   rc = _StartNLM(NLMHandle,
                                        initErrorScreenID,
                                        initErrorScreenID,
                                        commandLine,
                                        commandLine,
                                        loadDirectoryPath,
                                        loadDirectoryPath,
                                        uninitializedDataLength,
                                        uninitializedDataLength,
                                        NLMFileHandle,
                                        NLMFileHandle,
                                        readRoutineP,
                                        readRoutineP,
                                        customDataOffset,
                                        customDataOffset,
                                        customDataSize,
                                        customDataSize,
               &NLMID,
               &NLMID,
                                        _cstart_);
                                        _cstart_);
 
 
        return rc;
        return rc;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.