From: David E. <de...@us...> - 2009-01-13 09:01:58
|
deu439 wrote: > I'am newbie in tiny cobol and i'am looking for something like typedef in > c, is there anything like this? Assuming you mean C structures, '01' levels can be consided to provide equivalent functionality (with the C 'pragma pack(1)' directive). Note that the x86 (IA32) architecture uses a 4 byte boundary alignment. TC does not use boundary alignment unless the 'SYNC' clause is used. This can be an issue when reading files and calling C functions from TC. > Also I wanted to ask for tiny cobol preprocessor, how is it running? > Where can I find some documentation about tiny cobol preprocessor? Sorry, no documentation other the source 'pp_parser.y' 'pp_scanner.l' files. All the preprocessor does is to include copybooks (COPY ..), reformat the COBOL sources to free format, remove comments, and print a listing if requested. The output is used as input to the main compiler. All is run as a single process. The preprocessor is called (see process_pp function), after the command line and resource files options are processed. Hint, use the command line '-t' option to see all the intermediate files created. The preprocessor output are named '*.i'. Hope this helps. |