X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=apps%2Fcvenv%2FEiC%2FstdClib%2Ferrno.c;fp=apps%2Fcvenv%2FEiC%2FstdClib%2Ferrno.c;h=0000000000000000000000000000000000000000;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hp=82783877f5ea37be4b0eba7b8739e5620704154d;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/apps/cvenv/EiC/stdClib/errno.c b/apps/cvenv/EiC/stdClib/errno.c deleted file mode 100644 index 8278387..0000000 --- a/apps/cvenv/EiC/stdClib/errno.c +++ /dev/null @@ -1,49 +0,0 @@ -/* errno.c - * - * (C) Copyright Dec 20 1998, Edmond J. Breen. - * ALL RIGHTS RESERVED. - * This code may be copied for personal, non-profit use only. - * - */ - -#ifndef NO_ERRNO - -#include -#include -#include "eic.h" -#include "stdliblocal.h" - - -val_t _get_errno(void) -{ - val_t v; - /* - * This function exists so that EiC can get the address - * of the errno; - */ - - errno = 0; - v.p.sp = v.p.p = &errno; - v.p.ep = (void *) ( ((char *) v.p.p) + sizeof( errno ) ); - return v; -} - - -#endif - -/*************************************/ - -void module_errno() -{ -#ifndef NO_ERRNO - - /* ERRNO.H STUFF */ - EiC_add_builtinfunc("_get_errno",_get_errno); - -#endif -} - - - - -