1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

Converted EXPR_*SIZE macros to use offsetof() to avoid MSVC compiler warnings. (CVS 6334)

FossilOrigin-Name: 5e8e16f7d505a4b21272f1d300f366ee0e211e56
This commit is contained in:
shane
2009-03-02 17:18:48 +00:00
parent 18209cd6e2
commit ce6fa1706a
3 changed files with 12 additions and 12 deletions

View File

@@ -11,7 +11,7 @@
*************************************************************************
** Internal interface definitions for SQLite.
**
** @(#) $Id: sqliteInt.h,v 1.839 2009/02/28 10:47:42 danielk1977 Exp $
** @(#) $Id: sqliteInt.h,v 1.840 2009/03/02 17:18:48 shane Exp $
*/
#ifndef _SQLITEINT_H_
#define _SQLITEINT_H_
@@ -1503,9 +1503,9 @@ struct Expr {
** and an Expr struct with the EP_TokenOnly flag set.
*/
#define EXPR_FULLSIZE sizeof(Expr)
#define EXPR_REDUCEDSIZE ((int)(&((Expr*)(0))->iTable))
#define EXPR_TOKENONLYSIZE ((int)(&((Expr*)(0))->span))
#define EXPR_SPANONLYSIZE ((int)(&((Expr*)(0))->pLeft))
#define EXPR_REDUCEDSIZE offsetof(Expr,iTable)
#define EXPR_TOKENONLYSIZE offsetof(Expr,span)
#define EXPR_SPANONLYSIZE offsetof(Expr,pLeft)
/*
** Flags passed to the sqlite3ExprDup() function. See the header comment