From: deu439 <de...@az...> - 2009-01-13 19:43:43
|
David Essex wrote: > Assuming you mean C structures, '01' levels can be consided to provide > equivalent functionality (with the C 'pragma pack(1)' directive). Thanks, but I _didnt_ mean structures. Typedef; can be used for define new data type/structures. So I can declare new variable/struct with defined aligment. Like this: ################# //define data type "NAME" typedef struct{ int a; int b; }NAME; main(){ //declare struct //with "NAME" aligment NAME declared_struct; } ################# Sorry whether it's too intuitive. I found documentation of LINKAGE section in IBM web. Well I can define the data structure in LINKAGE section and next rewrite address of this structure to any other address, but it's too intricately. First I must acquire lenght of structure, allocate memory, until I can rewrite the address. Any other ideas, how can I do it in tiny cobol? ------------------- de...@in... Czech Republic |