1MKCHDR(1) General Commands Manual MKCHDR(1)
2
3
4
6 mkchdr - creates a C header file from a type table
7
9 mkchdr <tbl-file> [output-file]
10
12 mkchdr will generate a C header file from the given type table. The C
13 data structures will be written to the given output file. If an output
14 file is not given, the C header is written to stdout.
15
16 The generated C data structure is the value representation that table
17 driven encoder expects (and decoder returns) for the type definitions
18 in the given type table. The table driven encoder and decoder, etc.
19 routines do not use the generated header - they treat the data in a
20 generic way. The generated header file simply saves you the hassle of
21 dealing with ASN.1 values in the same generic way. Instead you get
22 properly named structs and field names. You do not need to use mkchdr
23 to use the table driven encoders etc. but it is recommended.
24
26 snacc/tbl-tools/mkchdr/ Source code for the mkchdr program
27
29 There is no means of customizing the generated data structure.
30
32 Copyright (c) 1993 Mike Sample and the University of British Columbia
33
34 Permission is granted to make and distribute verbatim copies of this
35 manual provided the copyright notice and this permission notice are
36 preserved on all copies.
37
38 Permission is granted to copy and distribute modified versions of this
39 manual under the conditions for verbatim copying, provided that the
40 entire resulting derived work is distributed under the terms of a per‐
41 mission notice identical to this one.
42
44 Mike Sample <msample@cs.ubc.ca>, University of British Columbia
45
47 This work was made possible by grants from the Canadian Institute for
48 Telecommunications Research (CITR) and Natural Sciences and Engineering
49 Research Council of Canada (NSERC).
50
51
52
53 11 July 1993 MKCHDR(1)