|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T p
Length: 2069 (0x815) Types: TextFile Names: »photo.h«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« └─⟦d3ac74d73⟧ └─⟦this⟧ »isode-5.0/h/quipu/photo.h«
/* photo.h - */ /* * $Header: /f/osi/h/quipu/RCS/photo.h,v 6.0 89/03/18 23:33:02 mrose Rel $ * * * $Log: photo.h,v $ * Revision 6.0 89/03/18 23:33:02 mrose * Release 5.0 * */ /* * NOTICE * * Acquisition, use, and distribution of this module and related * materials are subject to the restrictions of a license agreement. * Consult the Preface in the User's Manual for the full terms of * this agreement. * */ typedef struct { char length; /* number of bits in the pattern */ short pattern; /* the bit pattern (starting at bit 13) */ } code_word; typedef struct { code_word make, /* make up code */ /* if make.length = 0 then there is no make up code */ term; /* terminal code */ } full_code; typedef struct { unsigned char pos; /* pointer into the string */ int * run_top; /* run length pointer */ int * run_pos; /* pointer to above */ unsigned char mask; /* mask to get at one bit of the string */ char * dbuf_top; char * dbuf; } bit_string; typedef struct { char r_type; /* descibes type of run */ int run_length; /* a run_length */ } run_type; typedef struct nd { char n_type; /* describe the type of node */ struct nd * one; /* one branch */ struct nd * zero; /* zero branch */ int value; /* value arrived at */ } node ; /* now some constant definitions */ #define MSB_MASK 010000 /* octal. Mask to get at first bit of code_word pattern */ #define BIT_MASK 0x80 /* i.e. set bit 8 of a char */ #define WHITE 0 #define WT_TERM 0 #define BLACK 1 #define BL_TERM 1 #define MAKE 2 #define EOLN 127 #define INTERNAL 7 #define P 1 #define H 2 #define V0 6 #define VR1 7 #define VR2 8 #define VR3 9 #define VL1 5 #define VL2 4 #define VL3 3 #define BUFLEN 75000 #define LINEBUF 4096 #define FIXED_OFFSET 6 full_code get_code(); char get_bit(); node * get_node (); run_type next_run ();