b7da24943d
NLMCONV_FOR_TARGET. (SUBDIRS): Add nlm target. * configure.in (powerpc-*-netware*): Automatically configure nlm subdir. * nlm/Makefile.in: Add {CC NLMCONV LD}_FOR_TARGET. Remove alpha specific stuff. Make things more configurable. * nlm/configure.in: Add powerpc-*-netware* target. Use gdbserve.mt/cpu.c/cpu.h for target stuff. Get rid of tm/xm/nm.h files. * nlm/gdbserve.c: Move Alpha specific stuff into other files. Remove lots of architecture-specific stuff. * nlm/gdbserve.def: Add new imports. * nlm/ppc.c, nlm/ppc.h: New files that contain PowerPC specific code. * nlm/prelude.c: Don't include libhooks.h, get rid of call to register library. * nlm/prelude.o: What was this doing here?
62 lines
1.5 KiB
C
62 lines
1.5 KiB
C
/*===========================================================================
|
|
= Novell Standard C Library for NetWare Loadable Modules
|
|
=
|
|
= Unpublished Copyright (C) 1993 by Novell, Inc. All rights reserved.
|
|
=
|
|
= 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
|
|
= 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
|
|
= library and is not linked in; Prelude.Obj is therefore one of the files to
|
|
= be distributed with CLib.NLM and its headers.
|
|
==============================================================================
|
|
*/
|
|
#include <nwpre.h>
|
|
/*#include "libhooks.h"*/
|
|
#include <stddef.h>
|
|
|
|
extern int main (int, char **);
|
|
|
|
static int NLMID;
|
|
|
|
|
|
void _Stop( void )
|
|
{
|
|
_TerminateNLM(NLMID, NULL, TERMINATE_BY_UNLOAD);
|
|
}
|
|
|
|
int _cstart_( void )
|
|
{
|
|
return _SetupArgv(main);
|
|
}
|
|
|
|
int _Prelude
|
|
(
|
|
int NLMHandle,
|
|
int initErrorScreenID,
|
|
char *commandLine,
|
|
char *loadDirectoryPath,
|
|
int uninitializedDataLength,
|
|
int NLMFileHandle,
|
|
int (*readRoutineP)(),
|
|
int customDataOffset,
|
|
int customDataSize
|
|
)
|
|
{
|
|
int rc;
|
|
|
|
rc = _StartNLM(NLMHandle,
|
|
initErrorScreenID,
|
|
commandLine,
|
|
loadDirectoryPath,
|
|
uninitializedDataLength,
|
|
NLMFileHandle,
|
|
readRoutineP,
|
|
customDataOffset,
|
|
customDataSize,
|
|
&NLMID,
|
|
_cstart_);
|
|
|
|
return rc;
|
|
}
|