/usr/include/styx/list.h is in styx-dev 2.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | /* ------------------------------------------------------------------------ */
/* */
/* [list.h] Type: List */
/* */
/* Copyright (c) 1993 by D\olle, Manns */
/* ------------------------------------------------------------------------ */
/* File generated by 'ctoh'. Don't change manually. */
#ifndef list_INCL
#define list_INCL
#include "standard.h"
#ifdef __cplusplus
extern "C" {
#endif
/* ---------------------------- The Type --------------------------------- */
/*
This module implements a functional,i.e. LISP-like list data type.
*/
#define List(Abs_T) list
AbstractType(List(Abs_T)); /* Abstract list type */
/* ---------------------------- Operations and predicates ---------------- */
c_bool empty(List(Abs_T) x); /* whether list 'x' is empty */
Abs_T list_fst(List(Abs_T) x)
#define fst(TYPE, LIST) ((TYPE) list_fst(LIST))
/* first member of list 'x' */
;
List(Abs_T) rst(List(Abs_T) x); /* rest of list 'x' */
List(Abs_T) cons(Abs_T fst, List(Abs_T) rst); /* list constructor */
List(Abs_T) *rst_ref(List(Abs_T) x); /* pointer to rest(x); use with care! */
Abs_T *fst_ref(List(Abs_T) x); /* pointer to first(x); use with care! */
int length(List(Abs_T) x); /* length of list 'x' */
void pList(List(Abs_T) x, int Indent, void (*pMember)(Abs_T x))
/* prints list 'x' to stdout */
;
void pListEx
(
List(Abs_T) x, int Indent,
void (*pMember)(Abs_T x, StdCPtr any), StdCPtr any
)
/* prints list 'x' to stdout;
uses 'any' as member context
*/
;
void freeList(List(Abs_T) x, void (*freeMember)(Abs_T x))
/* frees list 'x' */
;
#ifdef __cplusplus
}
#endif
#endif
|