Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/cmd/sortlib/sync/ssexit.h
1810 views
1
/***********************************************************************
2
* *
3
* This software is part of the ast package *
4
* Copyright (c) 2003-2011 AT&T Intellectual Property *
5
* and is licensed under the *
6
* Eclipse Public License, Version 1.0 *
7
* by AT&T Intellectual Property *
8
* *
9
* A copy of the License is available at *
10
* http://www.eclipse.org/org/documents/epl-v10.html *
11
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
12
* *
13
* Information and Software Systems Research *
14
* AT&T Research *
15
* Florham Park NJ *
16
* *
17
* Glenn Fowler <[email protected]> *
18
* *
19
***********************************************************************/
20
#pragma prototyped
21
22
/*
23
* ibm dfsort user exit function interface
24
*
25
* Glenn Fowler
26
* AT&T Research
27
*/
28
29
#ifndef _SSEXIT_H
30
#define _SSEXIT_H 1
31
32
#include <ast.h>
33
#include <error.h>
34
#include <recsort.h>
35
36
#define SS_EXIT_FIRST 0 /* the first exit record */
37
#define SS_EXIT_MOST 4 /* the middle exit records */
38
#define SS_EXIT_LAST 8 /* the last exit record */
39
40
#define SS_EXIT_ACCEPT 0 /* accept this record */
41
#define SS_EXIT_DELETE 4 /* delete this record */
42
#define SS_EXIT_CLOSE 8 /* don't call this exit again */
43
#define SS_EXIT_INSERT 12 /* insert this record */
44
#define SS_EXIT_TERMINATE 16 /* terminate the sort */
45
#define SS_EXIT_REPLACE 20 /* replace this record */
46
47
typedef int (*Ssexit_f)(Rsobj_t*, Rsobj_t*, void**);
48
49
#endif
50
51