Download src/util/f2c.h from camenduru/pocketsphinx: direct link, hf CLI and curl.
- Browser
- Download file 4.35 kB
-
https://huggingface.co/camenduru/pocketsphinx/resolve/main/src/util/f2c.h
- Command line
-
hf download hf://camenduru/pocketsphinx/src/util/f2c.h
-
curl -L -o f2c.h https://huggingface.co/camenduru/pocketsphinx/resolve/main/src/util/f2c.h
4.35 kB
| /* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */ | |
| /** | |
| * @file f2c.h | |
| * @brief Standard Fortran to C header file | |
| */ | |
| /** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed." | |
| - From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */ | |
| typedef int integer; | |
| typedef char *address; | |
| typedef short int shortint; | |
| typedef float real; | |
| typedef double doublereal; | |
| typedef struct { real r, i; } complex; | |
| typedef struct { doublereal r, i; } doublecomplex; | |
| typedef int logical; | |
| typedef short int shortlogical; | |
| typedef char logical1; | |
| typedef char integer1; | |
| /* Extern is for use with -E */ | |
| /* I/O stuff */ | |
| /* for -i2 */ | |
| typedef short flag; | |
| typedef short ftnlen; | |
| typedef short ftnint; | |
| typedef int flag; | |
| typedef int ftnlen; | |
| typedef int ftnint; | |
| /*external read, write*/ | |
| typedef struct | |
| { flag cierr; | |
| ftnint ciunit; | |
| flag ciend; | |
| char *cifmt; | |
| ftnint cirec; | |
| } cilist; | |
| /*internal read, write*/ | |
| typedef struct | |
| { flag icierr; | |
| char *iciunit; | |
| flag iciend; | |
| char *icifmt; | |
| ftnint icirlen; | |
| ftnint icirnum; | |
| } icilist; | |
| /*open*/ | |
| typedef struct | |
| { flag oerr; | |
| ftnint ounit; | |
| char *ofnm; | |
| ftnlen ofnmlen; | |
| char *osta; | |
| char *oacc; | |
| char *ofm; | |
| ftnint orl; | |
| char *oblnk; | |
| } olist; | |
| /*close*/ | |
| typedef struct | |
| { flag cerr; | |
| ftnint cunit; | |
| char *csta; | |
| } cllist; | |
| /*rewind, backspace, endfile*/ | |
| typedef struct | |
| { flag aerr; | |
| ftnint aunit; | |
| } alist; | |
| /* inquire */ | |
| typedef struct | |
| { flag inerr; | |
| ftnint inunit; | |
| char *infile; | |
| ftnlen infilen; | |
| ftnint *inex; /*parameters in standard's order*/ | |
| ftnint *inopen; | |
| ftnint *innum; | |
| ftnint *innamed; | |
| char *inname; | |
| ftnlen innamlen; | |
| char *inacc; | |
| ftnlen inacclen; | |
| char *inseq; | |
| ftnlen inseqlen; | |
| char *indir; | |
| ftnlen indirlen; | |
| char *infmt; | |
| ftnlen infmtlen; | |
| char *inform; | |
| ftnint informlen; | |
| char *inunf; | |
| ftnlen inunflen; | |
| ftnint *inrecl; | |
| ftnint *innrec; | |
| char *inblank; | |
| ftnlen inblanklen; | |
| } inlist; | |
| union Multitype { /* for multiple entry points */ | |
| shortint h; | |
| integer i; | |
| real r; | |
| doublereal d; | |
| complex c; | |
| doublecomplex z; | |
| }; | |
| typedef union Multitype Multitype; | |
| typedef long Long; /* No longer used; formerly in Namelist */ | |
| struct Vardesc { /* for Namelist */ | |
| char *name; | |
| char *addr; | |
| ftnlen *dims; | |
| int type; | |
| }; | |
| typedef struct Vardesc Vardesc; | |
| struct Namelist { | |
| char *name; | |
| Vardesc **vars; | |
| int nvars; | |
| }; | |
| typedef struct Namelist Namelist; | |
| /* procedure parameter types for -A and -C++ */ | |
| typedef int /* Unknown procedure type */ (*U_fp)(...); | |
| typedef shortint (*J_fp)(...); | |
| typedef integer (*I_fp)(...); | |
| typedef real (*R_fp)(...); | |
| typedef doublereal (*D_fp)(...), (*E_fp)(...); | |
| typedef /* Complex */ VOID (*C_fp)(...); | |
| typedef /* Double Complex */ VOID (*Z_fp)(...); | |
| typedef logical (*L_fp)(...); | |
| typedef shortlogical (*K_fp)(...); | |
| typedef /* Character */ VOID (*H_fp)(...); | |
| typedef /* Subroutine */ int (*S_fp)(...); | |
| typedef int /* Unknown procedure type */ (*U_fp)(void); | |
| typedef shortint (*J_fp)(void); | |
| typedef integer (*I_fp)(void); | |
| typedef real (*R_fp)(void); | |
| typedef doublereal (*D_fp)(void), (*E_fp)(void); | |
| typedef /* Complex */ VOID (*C_fp)(void); | |
| typedef /* Double Complex */ VOID (*Z_fp)(void); | |
| typedef logical (*L_fp)(void); | |
| typedef shortlogical (*K_fp)(void); | |
| typedef /* Character */ VOID (*H_fp)(void); | |
| typedef /* Subroutine */ int (*S_fp)(void); | |
| /* E_fp is for real functions when -R is not specified */ | |
| typedef VOID C_f; /* complex function */ | |
| typedef VOID H_f; /* character function */ | |
| typedef VOID Z_f; /* double complex function */ | |
| typedef doublereal E_f; /* real function with -R not specified */ | |
| /* undef any lower-case symbols that your C compiler predefines, e.g.: */ | |