diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-02-14 05:45:46 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-02-14 05:45:46 +0000 |
commit | 594e97b72fe61d95ac8ed2a1f724a4bef7394064 (patch) | |
tree | e1f3a55d3eb0f91b7ab0845ad531ec198855d41d /src/interfaces/odbc/tuple.h | |
parent | 18b04ae131b675a021613a7da4c66ae34fe625d7 (diff) |
Back out all ODBC formatting changes, and back out removal of <6.4
protocol. I have left in Tom's SOCK_get_next_byte() fix, and the new
win32.mak file addition. I have also left in the 'X' connection close
fix.
Diffstat (limited to 'src/interfaces/odbc/tuple.h')
-rw-r--r-- | src/interfaces/odbc/tuple.h | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/src/interfaces/odbc/tuple.h b/src/interfaces/odbc/tuple.h index f3d3d997d13..628d5ce449c 100644 --- a/src/interfaces/odbc/tuple.h +++ b/src/interfaces/odbc/tuple.h @@ -1,13 +1,13 @@ -/* File: tuple.h +/* File: tuple.h * - * Description: See "tuple.c" + * Description: See "tuple.c" * - * Important NOTE: The TupleField structure is used both to hold backend data and - * manual result set data. The "set_" functions and the TupleNode - * structure are only used for manual result sets by info routines. + * Important NOTE: The TupleField structure is used both to hold backend data and + * manual result set data. The "set_" functions and the TupleNode + * structure are only used for manual result sets by info routines. * - * Comments: See "notice.txt" for copyright and license information. + * Comments: See "notice.txt" for copyright and license information. * */ @@ -17,18 +17,15 @@ #include "psqlodbc.h" /* Used by backend data AND manual result sets */ -struct TupleField_ -{ - Int4 len; /* length of the current Tuple */ - void *value; /* an array representing the value */ +struct TupleField_ { + Int4 len; /* length of the current Tuple */ + void *value; /* an array representing the value */ }; /* Used ONLY for manual result sets */ -struct TupleNode_ -{ - struct TupleNode_ *prev, - *next; - TupleField tuple[1]; +struct TupleNode_ { + struct TupleNode_ *prev, *next; + TupleField tuple[1]; }; /* These macros are wrappers for the corresponding set_tuplefield functions @@ -39,9 +36,9 @@ struct TupleNode_ #define set_nullfield_int2(FLD, VAL) ((VAL) != -1 ? set_tuplefield_int2(FLD, (VAL)) : set_tuplefield_null(FLD)) #define set_nullfield_int4(FLD, VAL) ((VAL) != -1 ? set_tuplefield_int4(FLD, (VAL)) : set_tuplefield_null(FLD)) -void set_tuplefield_null(TupleField *tuple_field); -void set_tuplefield_string(TupleField *tuple_field, char *string); -void set_tuplefield_int2(TupleField *tuple_field, Int2 value); -void set_tuplefield_int4(TupleField *tuple_field, Int4 value); +void set_tuplefield_null(TupleField *tuple_field); +void set_tuplefield_string(TupleField *tuple_field, char *string); +void set_tuplefield_int2(TupleField *tuple_field, Int2 value); +void set_tuplefield_int4(TupleField *tuple_field, Int4 value); #endif |