/usr/include/styx/ctx.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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /* ------------------------------------------------------------------------ */
/* */
/* [ctx.h] Program Context */
/* */
/* Copyright (c) 1993 by D\olle, Manns */
/* ------------------------------------------------------------------------ */
/* File generated by 'ctoh'. Don't change manually. */
#ifndef ctx_INCL
#define ctx_INCL
#include "ctx_app.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
<p>This module [ctx] provides functions for the definition of a program context and
the verification of the current commandline against the current program context.
<p>The definition interface will be used by the <a href="cmdlib.htm">CMD Compiler</a>
which parses and evaluates a command decription file [.cmd], constructs a program context
out of it and finally makes it persistent.
<p>The application interface will be used by the applications and the generated
program specific context modules.
<br>
*/
/* ------------------------ Definition interface -------------------------- */
CTX_T CTX_new(short cnt, c_string name)
/* make new context for program 'name' and 'cnt' arguments */
;
void CTX_free(CTX_T ctx); /* drop context 'ctx' */
void CTX_set
(
CTX_T ctx, short idx, c_string ide,
c_byte cat, c_byte typ, c_string dft
)
/* assign argument 'ide' of category 'cat', with type 'typ' and
default value 'dft' to context entry ctx[idx]
*/
;
void CTX_put(c_string env, CTX_T ctx)
/* put binary image of context 'ctx' */
;
CTX_T CTX_get(c_string env, c_string name)
/* get context from binary image [$'env'/'name'.cim] */
;
void CTX_usage(CTX_T ctx); /* print usage for context 'ctx' */
void CTX_C_Modul(c_string Environ, CTX_T Ctx, c_bool shortform)
/* compiles context 'ctx' to [$'Environ'/'Name'_cim.c] */
;
void CTX_sh_list(void); /* print shell context */
void CTX_list(CTX_T ctx); /* DEBUG; print context 'ctx' */
c_string CTX_dirname(void); /* path of the current program */
void CTX_interprete(int argc, c_string argv[])
/* process current program context */
;
/* ------------------------ Application interface ------------------------- */
void CTX_init(int argc, c_string argv[])
/* initialize and process current program context */
;
void CTX_quit(void); /* drop current program context */
#ifdef __cplusplus
}
#endif
#endif
|