Skip to content

Commit fd93fc0

Browse files
author
freddy77
committed
make tds_put_data inline
1 parent 9f25a2b commit fd93fc0

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

ChangeLog

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Wed Aug 10 10:03:11 CEST 2011 Frediano Ziglio <freddy77_A_gmail_D_com>
2+
* src/tds/query.c: make tds_put_data inline
3+
14
Wed Aug 10 09:49:10 CEST 2011 Frediano Ziglio <freddy77_A_gmail_D_com>
25
* src/odbc/unittests/funccall.c: initialize variable
36

@@ -700,4 +703,4 @@ Sat Apr 9 16:15:00 EDT 2011 JK Lowden <[email protected]>
700703
* ChangeLog-0.91 added because of release
701704

702705
$FreeTDS$
703-
$Id: ChangeLog,v 1.3362 2011/08/10 07:49:02 freddy77 Exp $
706+
$Id: ChangeLog,v 1.3363 2011/08/10 08:03:40 freddy77 Exp $

src/tds/query.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444

4545
#include <assert.h>
4646

47-
TDS_RCSID(var, "$Id: query.c,v 1.261 2011/08/10 07:46:08 freddy77 Exp $");
47+
TDS_RCSID(var, "$Id: query.c,v 1.262 2011/08/10 08:03:40 freddy77 Exp $");
4848

4949
static void tds_put_params(TDSSOCKET * tds, TDSPARAMINFO * info, int flags);
5050
static void tds7_put_query_params(TDSSOCKET * tds, const char *query, size_t query_len);
5151
static void tds7_put_params_definition(TDSSOCKET * tds, const char *param_definition, size_t param_length);
5252
static TDSRET tds_put_data_info(TDSSOCKET * tds, TDSCOLUMN * curcol, int flags);
53-
static TDSRET tds_put_data(TDSSOCKET * tds, TDSCOLUMN * curcol);
53+
static inline TDSRET tds_put_data(TDSSOCKET * tds, TDSCOLUMN * curcol);
5454
static char *tds7_build_param_def_from_query(TDSSOCKET * tds, const char* converted_query, size_t converted_query_len, TDSPARAMINFO * params, size_t *out_len);
5555
static char *tds7_build_param_def_from_params(TDSSOCKET * tds, const char* query, size_t query_len, TDSPARAMINFO * params, size_t *out_len);
5656

@@ -229,6 +229,18 @@ tds5_fix_dot_query(const char *query, size_t *query_len, TDSPARAMINFO * params)
229229
return out;
230230
}
231231

232+
/**
233+
* Write data to wire
234+
* \param tds state information for the socket and the TDS protocol
235+
* \param curcol column where store column information
236+
* \return TDS_FAIL on error or TDS_SUCCESS
237+
*/
238+
static inline TDSRET
239+
tds_put_data(TDSSOCKET * tds, TDSCOLUMN * curcol)
240+
{
241+
return curcol->funcs->put_data(tds, curcol);
242+
}
243+
232244
static const TDS_UCHAR tds72_query_start[] = {
233245
/* total length */
234246
0x16, 0, 0, 0,
@@ -1509,18 +1521,6 @@ tds_put_data_info_length(TDSSOCKET * tds, TDSCOLUMN * curcol, int flags)
15091521
return len + curcol->column_varint_size;
15101522
}
15111523

1512-
/**
1513-
* Write data to wire
1514-
* \param tds state information for the socket and the TDS protocol
1515-
* \param curcol column where store column information
1516-
* \return TDS_FAIL on error or TDS_SUCCESS
1517-
*/
1518-
static TDSRET
1519-
tds_put_data(TDSSOCKET * tds, TDSCOLUMN * curcol)
1520-
{
1521-
return curcol->funcs->put_data(tds, curcol);
1522-
}
1523-
15241524
static void
15251525
tds7_send_execute(TDSSOCKET * tds, TDSDYNAMIC * dyn)
15261526
{

0 commit comments

Comments
 (0)