X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fposix%2Ffunctions%2F_PDCLIB%2F_PDCLIB_Exit.c;h=6af5459c1a0782b4fa1c41c876d6377b571c5bca;hp=5c95fca8c03379452931b1fda5beaa6b9e38afb3;hb=c42d6c99b024d1a93994d734d9739a3db44c9d67;hpb=1cc4363093c919f79eafac209bb5c41548d3f88f diff --git a/platform/posix/functions/_PDCLIB/_PDCLIB_Exit.c b/platform/posix/functions/_PDCLIB/_PDCLIB_Exit.c index 5c95fca..6af5459 100644 --- a/platform/posix/functions/_PDCLIB/_PDCLIB_Exit.c +++ b/platform/posix/functions/_PDCLIB/_PDCLIB_Exit.c @@ -1,21 +1,15 @@ -/* $Id$ */ - -/* _PDCLIB_exit( int ) +/* _PDCLIB_Exit( int ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ -/* This is an example implementation of _PDCLIB_exit() fit for use with POSIX - kernels. -*/ - #include #ifndef REGTEST -#include <_PDCLIB_glue.h> +#include "_PDCLIB_glue.h" -extern void _exit( int status ) _PDCLIB_NORETURN; +extern void _exit( int status ) _PDCLIB_noreturn; void _PDCLIB_Exit( int status ) { @@ -25,13 +19,15 @@ void _PDCLIB_Exit( int status ) #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) { +#ifndef REGTEST int UNEXPECTED_RETURN = 0; _PDCLIB_Exit( 0 ); TESTCASE( UNEXPECTED_RETURN ); +#endif return TEST_RESULTS; }