• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..13-Nov-2021-

README.md A D13-Nov-20211.5 KiB4429

build.info A D13-Nov-2021106 43

o_names.c A D13-Nov-202110.1 KiB401297

obj_compat.h A D13-Nov-20212.4 KiB4732

obj_dat.c A D13-Nov-202119.6 KiB803668

obj_dat.h A D13-Nov-2021361.5 KiB5,9865,969

obj_dat.pl A D13-Nov-20216 KiB230184

obj_err.c A D13-Nov-2021985 3520

obj_lib.c A D13-Nov-20211.7 KiB6642

obj_local.h A D13-Nov-2021495 155

obj_mac.num A D13-Nov-202126.7 KiB1,2511,250

obj_xref.c A D13-Nov-20215.4 KiB217169

obj_xref.h A D13-Nov-20214.7 KiB131114

obj_xref.txt A D13-Nov-20212.6 KiB6958

objects.pl A D13-Nov-20214.9 KiB212185

objects.txt A D13-Nov-202161.6 KiB1,7501,551

objxref.pl A D13-Nov-20212.8 KiB141101

README.md

1objects.txt syntax
2==================
3
4To cover all the naming hacks that were previously in `objects.h` needed some
5kind of hacks in `objects.txt`.
6
7The basic syntax for adding an object is as follows:
8
9        1 2 3 4         : shortName     : Long Name
10
11                If Long Name contains only word characters and hyphen-minus
12                (0x2D) or full stop (0x2E) then Long Name is used as basis
13                for the base name in C. Otherwise, the shortName is used.
14
15                The base name (let's call it 'base') will then be used to
16                create the C macros SN_base, LN_base, NID_base and OBJ_base.
17
18                Note that if the base name contains spaces, dashes or periods,
19                those will be converted to underscore.
20
21Then there are some extra commands:
22
23        !Alias foo 1 2 3 4
24
25                This just makes a name foo for an OID.  The C macro
26                OBJ_foo will be created as a result.
27
28        !Cname foo
29
30                This makes sure that the name foo will be used as base name
31                in C.
32
33        !module foo
34        1 2 3 4         : shortName     : Long Name
35        !global
36
37                The !module command was meant to define a kind of modularity.
38                What it does is to make sure the module name is prepended
39                to the base name.  !global turns this off.  This construction
40                is not recursive.
41
42Lines starting with `#` are treated as comments, as well as any line starting
43with ! and not matching the commands above.
44