2
* Copyright 2004 Apache Software Foundation
4
* Licensed under the Apache License, Version 2.0 (the "License"); you
5
* may not use this file except in compliance with the License. You
6
* may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
* implied. See the License for the specific language governing
14
* permissions and limitations under the License.
16
* Originally developed by Gregory Trubetskoy.
21
* $Id: hlistobject.h,v 1.6 2004/02/16 19:47:28 grisha Exp $
23
* See accompanying documentation and source code comments
28
#ifndef Mp_HLISTOBJECT_H
29
#define Mp_HLISTOBJECT_H
34
typedef struct hlist {
36
struct hl_entry *head;
40
extern DL_IMPORT(PyTypeObject) MpHList_Type;
42
#define MpHList_Check(op) ((op)->ob_type == &MpHList_Type)
44
extern DL_IMPORT(PyObject *)MpHList_FromHLEntry Py_PROTO((hl_entry *hse));
45
extern DL_IMPORT(void)MpHList_Append Py_PROTO((hlistobject *self, hl_entry *hse));
46
extern DL_IMPORT(void)MpHList_Append Py_PROTO((hlistobject *self, hl_entry *hle));
51
#endif /* !Mp_HLISTOBJECT_H */