/usr/include/styx/scn_io.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 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | /* ------------------------------------------------------------------------ */
/* */
/* [scn_io.h] Scanner Definition Primimitives */
/* */
/* Copyright (c) 1993 by D\olle, Manns */
/* ------------------------------------------------------------------------ */
/* File generated by 'ctoh'. Don't change manually. */
#ifndef scn_io_INCL
#define scn_io_INCL
#include "standard.h"
#include "binimg.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
Beside copying and disposing of scanner definitions
this module provides functions that
1) generate a C module for a given scanner definition
2) unload a scanner definition to a binary image file
3) load a scanner definition from a binary image file.
*/
/* ------------------------------ Types & Macros ---------------------------- */
/*
<p><b>Identifier of other other</b>
<p><br>Separator between token ID and pattern<b>
*/
#define SCN_TOK_Other "[other]"
#define SCN_SEP_TOK_ID_PATTERN '@'
AbstractType( Scn_T ); /* Abstract scanner type */
/* ------------------------------ Basics ------------------------------------ */
c_string Scn_LanguageId(Scn_T x)
/* language or group name of scanner definition 'x' */
;
Scn_T Scn_copy(Scn_T x); /* copies scanner definition 'x' */
void Scn_free(Scn_T x); /* frees scanner definition 'x' */
/* ----------------------------- Binary Image ------------------------------- */
Scn_T Scn_fget_bin(BinImg_T img)
/* loads a scanner definition
from binary image 'img' (reentrant)
*/
;
Scn_T Scn_get_bin(void)
/* loads a scanner definition
from the current ( previously opened ) image
*/
;
void Scn_get(c_string Language, Scn_T *x)
/* loads a scanner definition named 'Language' into 'x'
from image [$PATH/]<Language>.lim
*/
;
void Scn_get_env(c_string Environ, c_string Language, Scn_T *x)
/* loads a scanner definition named 'Language' into 'x'
from image [$'Environ'/]<Language>.lim
*/
;
void Scn_get_file(c_string file, Scn_T *x)
/* loads a scanner definition from 'file' into 'x'
*/
;
void Scn_fput_bin(BinImg_T img, Scn_T x)
/* unloads scanner definition 'x'
to binary image 'img' (reentrant)
*/
;
void Scn_put_bin(Scn_T x)
/* unloads scanner definition 'x'
to the current ( previously opened ) image
*/
;
void Scn_put(c_string Environ, Scn_T x)
/* unloads scanner definition 'x'
to image [$'Environ'/]<Language>.lim
*/
;
/* ----------------------------- C-Module ----------------------------------- */
void Scn_C_Source(FILE* fp, c_string fid, Scn_T x)
/* writes source for scanner ( group ) definition 'x' to file 'fp';
produces a source header if filename 'fid' is not empty
*/
;
void Scn_C_Modul(c_string Environ, Scn_T x, c_bool shortform)
/* creates source [$'Environ'/]<Language>_lim.c
for scanner ( group ) definition 'x'
*/
;
void Scn_Src_Source
(
FILE* fp, c_string fid, Scn_T x, c_string prefix, c_string suffix
)
/* writes source for scanner ( group ) definition 'x' to file 'fp';
produces a source header if filename 'fid' is not empty;
encapsulates output lines with 'prefix' and 'suffix'
*/
;
void Scn_Src_Modul(c_string Environ, Scn_T x, c_string Template)
/* creates source [$'Environ'/]<Language>.ltbl
for scanner ( group ) definition 'x';
it uses the template file for the export, if 'Template' is a regular file
*/
;
#ifdef __cplusplus
}
#endif
#endif
|