tizen 2.4 release
[external/clips.git] / src / cstrnutl.h
1    /*******************************************************/
2    /*      "C" Language Integrated Production System      */
3    /*                                                     */
4    /*             CLIPS Version 6.30  08/16/14            */
5    /*                                                     */
6    /*            CONSTRAINT UTILITY HEADER FILE           */
7    /*******************************************************/
8
9 /*************************************************************/
10 /* Purpose: Utility routines for manipulating, initializing, */
11 /*   creating, copying, and comparing constraint records.    */
12 /*                                                           */
13 /* Principal Programmer(s):                                  */
14 /*      Gary D. Riley                                        */
15 /*                                                           */
16 /* Contributing Programmer(s):                               */
17 /*      Brian Dantes                                         */
18 /*                                                           */
19 /* Revision History:                                         */
20 /*                                                           */
21 /*************************************************************/
22
23 #ifndef _H_cstrnutl
24 #define _H_cstrnutl
25
26 #ifndef _H_constrnt
27 #include "constrnt.h"
28 #endif
29
30 #ifdef LOCALE
31 #undef LOCALE
32 #endif
33
34 #ifdef _CSTRNUTL_SOURCE_
35 #define LOCALE
36 #else
37 #define LOCALE extern
38 #endif
39
40 #ifndef _STDIO_INCLUDED_
41 #define _STDIO_INCLUDED_
42 #include <stdio.h>
43 #endif
44
45    LOCALE struct constraintRecord       *GetConstraintRecord(void *);
46    LOCALE int                            CompareNumbers(void *,int,void *,int,void *);
47    LOCALE struct constraintRecord       *CopyConstraintRecord(void *,CONSTRAINT_RECORD *);
48    LOCALE int                            SetConstraintType(int,CONSTRAINT_RECORD *);
49    LOCALE void                           SetAnyAllowedFlags(CONSTRAINT_RECORD *,int);
50    LOCALE void                           SetAnyRestrictionFlags(CONSTRAINT_RECORD *,int);
51    LOCALE CONSTRAINT_RECORD             *ArgumentTypeToConstraintRecord(void *,int);
52    LOCALE CONSTRAINT_RECORD             *FunctionCallToConstraintRecord(void *,void *);
53    LOCALE CONSTRAINT_RECORD             *ExpressionToConstraintRecord(void *,struct expr *);
54
55 #endif /* _H_cstrnutl */
56
57