/usr/include/styx/prim.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 | /* ------------------------------------------------------------------------ */
/* */
/* [prim.h] Instance functions for simple data types */
/* */
/* Copyright (c) 1993 by D\olle, Manns */
/* ------------------------------------------------------------------------ */
/* File generated by 'ctoh'. Don't change manually. */
#ifndef prim_INCL
#define prim_INCL
#include "standard.h"
#ifdef __cplusplus
extern "C" {
#endif
/* ----------- Pre-defined functions for various data types --------------- */
long bytesHash(c_byte x[], long len); /* hash function for byte sequences */
long strHash(c_string s); /* hash function for type "string" */
c_bool strEqual(c_string a, c_string b); /* whether 'a' and 'b' are equal */
long combineOrderedHash(long a, long b)
/* combination of two non-commuative hash values */
;
long combineCommutativeHash(long a, long b)
/* combination of two permutable hash values */
;
/* ----------- Pre-defined functions for primitive data types --------------- */
long primHash(StdCPtr x)
/* hash function for primitive types like "char","int","pointer" */
;
c_bool primEqual(StdCPtr a, StdCPtr b); /* whether 'a' and 'b' are equal */
c_bool primGreatEqual(StdCPtr a, StdCPtr b)
/* whether 'a' is greater equal than 'b' */
;
c_bool primLessEqual(StdCPtr a, StdCPtr b)
/* whether 'a' is less equal than 'b' */
;
int primCompare(StdCPtr a, StdCPtr b); /* order of 'a' and 'b' */
StdCPtr primCopy(StdCPtr a); /* identity */
void primFree(StdCPtr a); /* frees a primitive value; i.e. does nothing */
#ifdef __cplusplus
}
#endif
#endif
|