This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/bdd/simplecudd_lfi/adterror.h
Vítor Santos Costa e8e33e405a join cud packages
2015-06-19 01:00:18 +01:00

67 lines
1.7 KiB
C

/******************************************************************
**
** ADTERROR.H:
**
** ADT Error Handler
**
** This file is part of Apt Abstrct Data Types (ADT)
** Copyright (c) 1991 -- Apt Technologies
** All rights reserved
******************************************************************/
#ifndef ADTERROR_H
#define ADTERROR_H
//#include "cheaders.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* ADT Names */
#define ADT_AStack "Array Stack"
#define ADT_AStackIter "Array Stack Iterator"
#define ADT_Buffer "Buffer"
#define ADT_BufferIO "Buffered I/O"
#define ADT_Deque "Deque"
#define ADT_DequeIter "Deque Iterator"
#define ADT_HashTable "Hash Table"
#define ADT_HashTableIter "Hash Table Iterator"
#define ADT_Queue "Queue"
#define ADT_QueueIter "Queue Iterator"
#define ADT_Stack "Stack"
#define ADT_StackIter "Stack Iterator"
#define ADT_Table "AVL Table"
#define ADT_TableIter "AVL Table Iterator"
#define ADT_Tree "AVL Tree"
#define ADT_TreeIter "AVL Tree Iterator"
/* ADT Error Codes */
typedef enum _ADTErrorCodes {
E_Allocation,
E_NullQueue,
E_NullQueueIter,
E_Seek,
E_SeekOverflow,
E_SeekUnderflow,
/* Added HashTable errors 03/22/2005 pma */
E_NullHashTable,
E_NullHashTableIter,
/* Added AVLTable errors 04/04/2005 pma */
E_NullAVLTable,
E_NullAVLTableIter,
E_Undefined
} ADTErrorCodes;
typedef enum _ADTWarningCodes {
W_Undefined
} ADTWarningCodes;
/* ADT Error Handler */
void ADTError(char *name, ADTErrorCodes error, char *proc);
void ADTWarning(char *name, ADTWarningCodes warning, char *proc);
#endif