~ubuntu-branches/ubuntu/hardy/sqlite3/hardy

« back to all changes in this revision

Viewing changes to src/sqliteInt.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-07-23 14:35:04 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20070723143504-v52h2illx871jas3
Tags: 3.4.1-0ubuntu1
New upstream release. Closes LP: #127223.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
*************************************************************************
12
12
** Internal interface definitions for SQLite.
13
13
**
14
 
** @(#) $Id: sqliteInt.h,v 1.572 2007/06/10 22:57:33 drh Exp $
 
14
** @(#) $Id: sqliteInt.h,v 1.578 2007/06/26 10:38:55 danielk1977 Exp $
15
15
*/
16
16
#ifndef _SQLITEINT_H_
17
17
#define _SQLITEINT_H_
18
 
#include "limits.h"
 
18
#include "sqliteLimit.h"
19
19
 
20
20
 
21
21
#if defined(SQLITE_TCL) || defined(TCLSH)
65
65
#include <assert.h>
66
66
#include <stddef.h>
67
67
 
68
 
#if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__)
69
 
# define isnan(X)  ((X)!=(X))
70
 
#endif
 
68
#define sqlite3_isnan(X)  ((X)!=(X))
71
69
 
72
70
/*
73
71
** If compiling for a processor that lacks floating point support,
586
584
  const sqlite3_module *pModule;       /* Callback pointers */
587
585
  const char *zName;                   /* Name passed to create_module() */
588
586
  void *pAux;                          /* pAux passed to create_module() */
 
587
  void (*xDestroy)(void *);            /* Module destructor function */
589
588
};
590
589
 
591
590
/*
607
606
  u8 notNull;      /* True if there is a NOT NULL constraint */
608
607
  u8 isPrimKey;    /* True if this column is part of the PRIMARY KEY */
609
608
  char affinity;   /* One of the SQLITE_AFF_... values */
 
609
#ifndef SQLITE_OMIT_VIRTUALTABLE
 
610
  u8 isHidden;     /* True if this column is 'hidden' */
 
611
#endif
610
612
};
611
613
 
612
614
/*
745
747
** table support is omitted from the build.
746
748
*/
747
749
#ifndef SQLITE_OMIT_VIRTUALTABLE
748
 
#  define IsVirtual(X) ((X)->isVirtual)
 
750
#  define IsVirtual(X)      ((X)->isVirtual)
 
751
#  define IsHiddenColumn(X) ((X)->isHidden)
749
752
#else
750
 
#  define IsVirtual(X) 0
 
753
#  define IsVirtual(X)      0
 
754
#  define IsHiddenColumn(X) 0
751
755
#endif
752
756
 
753
757
/*