diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-11-08 20:37:52 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-11-08 20:37:52 +0000 |
commit | 77e4fd889c0a0e374164c2b57cade1ab2384d3f3 (patch) | |
tree | ca23ee21fba96421dad466734321daeeea1c4beb /src/interfaces/ecpg/include/sqlca.h | |
parent | e8192dc0d037d30281369259b31b32330609ad30 (diff) | |
download | postgresql-77e4fd889c0a0e374164c2b57cade1ab2384d3f3.tar.gz postgresql-77e4fd889c0a0e374164c2b57cade1ab2384d3f3.zip |
Fix indenting for 'extern "C"' cases.
Diffstat (limited to 'src/interfaces/ecpg/include/sqlca.h')
-rw-r--r-- | src/interfaces/ecpg/include/sqlca.h | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/src/interfaces/ecpg/include/sqlca.h b/src/interfaces/ecpg/include/sqlca.h index e3abdf78781..63296348de9 100644 --- a/src/interfaces/ecpg/include/sqlca.h +++ b/src/interfaces/ecpg/include/sqlca.h @@ -16,44 +16,44 @@ extern "C" { #endif - struct sqlca +struct sqlca +{ + char sqlcaid[8]; + long sqlabc; + long sqlcode; + struct { - char sqlcaid[8]; - long sqlabc; - long sqlcode; - struct - { - int sqlerrml; - char sqlerrmc[SQLERRMC_LEN]; - } sqlerrm; - char sqlerrp[8]; - long sqlerrd[6]; - /* Element 0: empty */ - /* 1: OID of processed tuple if applicable */ - /* 2: number of rows processed */ - /* after an INSERT, UPDATE or */ - /* DELETE statement */ - /* 3: empty */ - /* 4: empty */ - /* 5: empty */ - char sqlwarn[8]; - /* Element 0: set to 'W' if at least one other is 'W' */ - /* 1: if 'W' at least one character string */ - /* value was truncated when it was */ - /* stored into a host variable. */ - - /* - * 2: if 'W' a (hopefully) non-fatal notice occured - */ /* 3: empty */ - /* 4: empty */ - /* 5: empty */ - /* 6: empty */ - /* 7: empty */ - - char sqlext[8]; - }; - - extern DLLIMPORT struct sqlca sqlca; + int sqlerrml; + char sqlerrmc[SQLERRMC_LEN]; + } sqlerrm; + char sqlerrp[8]; + long sqlerrd[6]; + /* Element 0: empty */ + /* 1: OID of processed tuple if applicable */ + /* 2: number of rows processed */ + /* after an INSERT, UPDATE or */ + /* DELETE statement */ + /* 3: empty */ + /* 4: empty */ + /* 5: empty */ + char sqlwarn[8]; + /* Element 0: set to 'W' if at least one other is 'W' */ + /* 1: if 'W' at least one character string */ + /* value was truncated when it was */ + /* stored into a host variable. */ + + /* + * 2: if 'W' a (hopefully) non-fatal notice occured + */ /* 3: empty */ + /* 4: empty */ + /* 5: empty */ + /* 6: empty */ + /* 7: empty */ + + char sqlext[8]; +}; + +extern DLLIMPORT struct sqlca sqlca; #ifdef __cplusplus |