tinycobol/lib/rterrors.h

49 lines
1.5 KiB
C

/*
* Copyright (C) 2001, 2000, 1999, Rildo Pragana, Jim Noeth,
* Andrew Cameron, David Essex.
* Copyright (C) 1993, 1991 Rildo Pragana.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1,
* or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; see the file COPYING.LIB. If
* not, write to the Free Software Foundation, Inc., 59 Temple Place,
* Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef RTERRORS_H
#define RTERRORS_H
enum {
TCERR_EMPTY,
TCERR_RESOLVE_STUB,
TCERR_NO_MEM,
TCERR_NOT_IMPLEMENTED,
TCERR_INTRINSIC_BAD_ARG,
TCERR_GEN_NOPIPE,
TCERR_GEN_BADDATA,
TCERR_GEN_NOEXEC,
TCERR_GEN_BAD_ARG,
TCERR_GEN_SIZE_ERR,
TCERR_GEN_BAD_PIPE,
TCERR_GEN_RUNELEMENT
};
void tcob_rt_abort();
void *tcob_rt_malloc(char *fucntion,size_t size);
void tcob_rt_error (char *function, int msg_num, ...);
void tcob_rt_warning (char *function, int msg_num, ...);
void tcob_rt_debug (char *function,char *msg,...);
#define tcob_malloc(x) tcob_rt_malloc(__FILE__,x)
#endif /* RTERRORS_H */