Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
/* $XConsortium: ilcontext.h /main/3 1995/10/23 15:44:04 rswiston $ */
#ifndef ILCONTEXT_H
#define ILCONTEXT_H
/* Defines what a context looks like internally.
*/
#ifndef ILINT_H
#include "ilint.h"
#endif
/* Internal view of the context, i.e. the public type "ilContext". */
/* Indices into ilContextRec.pAlloc */
#define IL_CONTEXT_ALLOC_EFS 0 /* owned by /ilc/ilefs.c */
#define IL_CONTEXT_MAX_ALLOC 4 /* max # of above pAlloc indices */
typedef struct {
ilContextPublicRec p; /* public view of context, /ilinc/il.h */
/* Owned fields - if you are accessing them outside of the named
owning file, you're doing something wrong!
*/
ilPtr pImageData; /* owned by /ilc/ilimage.c */
unsigned int privateType; /* owned by /ilc/ilcontext.c */
ilObjectRec objectHead; /* owned by /ilc/ilobject.c */
ilPtr pXData; /* owned by /ilc/ilX.c */
/* Array of ptrs which if non-null are freed _after_ all objects destroyed. */
ilPtr pAlloc [IL_CONTEXT_MAX_ALLOC];
} ilContextRec, *ilContextPtr;
/* Typecast the given ptr to an ilContextPtr. The given ptr should be an
ilContext; this macro does not check.
*/
#define IL_CONTEXT_PTR(_context) ((ilContextPtr)_context)
#endif