diff --git a/library/skeleton_library/GNUmakefile.os4 b/library/skeleton_library/GNUmakefile.os4 index 0f5dbba..edf75e3 100755 --- a/library/skeleton_library/GNUmakefile.os4 +++ b/library/skeleton_library/GNUmakefile.os4 @@ -1,5 +1,5 @@ # -# $Id: GNUmakefile.os4,v 1.2 2005-07-04 11:06:20 obarthel Exp $ +# $Id: GNUmakefile.os4,v 1.3 2005-07-04 11:14:27 obarthel Exp $ # # :ts=4 # @@ -37,7 +37,7 @@ WARNINGS = \ CC = ppc-amigaos-gcc CPU = -OPTIONS = -DNDEBUG +OPTIONS = -DNDEBUG -mcrt=clib2-ts OPTIMIZE = -O DEBUG = -ggdb diff --git a/library/skeleton_library/lib_base.c b/library/skeleton_library/lib_base.c index b624269..e6d7f1e 100755 --- a/library/skeleton_library/lib_base.c +++ b/library/skeleton_library/lib_base.c @@ -1,5 +1,5 @@ /* - * $Id: lib_base.c,v 1.3 2005-07-04 11:06:21 obarthel Exp $ + * $Id: lib_base.c,v 1.4 2005-07-04 11:14:27 obarthel Exp $ * * :ts=4 * @@ -67,10 +67,10 @@ LONG _start(VOID); /****************************************************************************/ -STATIC struct SkeletonBase *ASM lib_init(REG (d0, struct SkeletonBase *sb ), REG (a0, BPTR segment_list ), REG (a6, APTR whatever )); -STATIC struct SkeletonBase *ASM lib_open(REG (a6, APTR base )); -STATIC BPTR ASM lib_expunge(REG (a6, APTR base )); -STATIC BPTR ASM lib_close(REG (a6, APTR base )); +STATIC struct SkeletonBase *ASM lib_init(REG(d0,struct SkeletonBase *sb),REG(a0,BPTR segment_list),REG(a6,APTR whatever)); +STATIC struct SkeletonBase *ASM lib_open(REG(a6,APTR base)); +STATIC BPTR ASM lib_expunge(REG(a6,APTR base)); +STATIC BPTR ASM lib_close(REG(a6,APTR base)); /****************************************************************************/ @@ -435,7 +435,8 @@ STATIC CONST APTR lib_interfaces[] = /****************************************************************************/ -extern ULONG VecTable68K[]; +/* This is defined in the file "skeleton_68k.c". */ +extern CONST APTR VecTable68K[]; /****************************************************************************/ @@ -460,6 +461,9 @@ CONST struct TagItem local_lib_create_tags[] = /****************************************************************************/ +/* This definition and how it is used makes sure that the library + version information will be visible even with an old 68k "Version" + command and not just with the OS4 "Version" command. */ STATIC CONST UBYTE version_string[] = "$VER: " VSTRING; /****************************************************************************/