summaryrefslogtreecommitdiff
path: root/xc/lib/XIE/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'xc/lib/XIE/utils.c')
-rw-r--r--xc/lib/XIE/utils.c105
1 files changed, 0 insertions, 105 deletions
diff --git a/xc/lib/XIE/utils.c b/xc/lib/XIE/utils.c
deleted file mode 100644
index dfd24be10..000000000
--- a/xc/lib/XIE/utils.c
+++ /dev/null
@@ -1,105 +0,0 @@
-/* $TOG: utils.c /main/4 1998/04/30 14:40:10 kaleb $ */
-
-/*
-
-Copyright 1993, 1998 The Open Group
-
-All Rights Reserved.
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-Except as contained in this notice, the name of The Open Group shall
-not be used in advertising or otherwise to promote the sale, use or
-other dealings in this Software without prior written authorization
-from The Open Group.
-
-*/
-/* $XFree86: xc/lib/XIE/utils.c,v 1.3 1999/06/13 16:18:12 dawes Exp $ */
-
-#include "XIElibint.h"
-
-
-Status
-_XieRegisterTechFunc (int group, int technique, XieTechFuncPtr techfunc)
-{
- XieTechFuncRec *ptr = _XieTechFuncs[group - 1];
- XieTechFuncRec *prev = NULL, *newrec;
- int status = 1;
-
- newrec = (XieTechFuncRec *) Xmalloc (sizeof (XieTechFuncRec));
- newrec->technique = technique;
- newrec->techfunc = techfunc;
-
- if (ptr == NULL)
- {
- _XieTechFuncs[group - 1] = newrec;
- newrec->next = NULL;
- }
- else
- {
- while (ptr && ptr->technique < technique)
- {
- prev = ptr;
- ptr = ptr->next;
- }
-
- if (ptr == NULL)
- {
- prev->next = newrec;
- newrec->next = NULL;
- }
- else
- {
- if (ptr->technique == technique)
- {
- Xfree ((char *) newrec);
- status = 0;
- }
- else if (prev == NULL)
- {
- newrec->next = _XieTechFuncs[group - 1];
- _XieTechFuncs[group - 1] = newrec;
- }
- else
- {
- newrec->next = prev->next;
- prev->next = newrec;
- }
- }
- }
-
- return (status);
-}
-
-
-
-XieTechFuncPtr
-_XieLookupTechFunc (int group, int technique)
-{
- XieTechFuncRec *ptr = _XieTechFuncs[group - 1];
- int found = 0;
-
- while (ptr && !found)
- {
- if (ptr->technique == technique)
- found = 1;
- else
- ptr = ptr->next;
- }
-
- if (found)
- return (ptr->techfunc);
- else
- return (NULL);
-}
-
-