User Tools

Site Tools


porting_c_projects_to_ibm_i

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
porting_c_projects_to_ibm_i [2019/01/09 11:29]
mihael
porting_c_projects_to_ibm_i [2019/01/09 14:18]
mihael
Line 135: Line 135:
  
 See https://​pubs.opengroup.org/​onlinepubs/​7908799/​xsh/​sysutsname.h.html . See https://​pubs.opengroup.org/​onlinepubs/​7908799/​xsh/​sysutsname.h.html .
 +
 +
 +===== Numbers declared as Hex =====
 +C devs like to declare their numbers in hex instead of just writing the numbers.
 +
 +    #define UNQLITE_OPEN_CREATE ​          ​0x00000004
 +
 +can be declared in RPG as
 +
 +    dcl-c UNQLITE_OPEN_CREATE 4;
 +
 +And
 +
 +    #define UNQLITE_SYNC_FULL ​         0x00003
 +
 +can be declared in RPG as 
 +
 +    dcl-c UNQLITE_SYNC_FULL 3;
  
  
porting_c_projects_to_ibm_i.txt ยท Last modified: 2019/01/09 14:18 by mihael