/ Check-in [f2bb83cf]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make SrcList.nSrc a signed quantity to avoid problems in AIX. (CVS 1796)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f2bb83cfd7e6b7ff853099897a24346a2991bc57
User & Date: drh 2004-07-15 13:37:22
Context
2004-07-15
14:15
Implement the experimental sqlite3_bind_parameter_count() API in support of DBD::SQLite. Also fix the sqlite3.def export list. (CVS 1797) check-in: c44943e6 user: drh tags: trunk
13:37
Make SrcList.nSrc a signed quantity to avoid problems in AIX. (CVS 1796) check-in: f2bb83cf user: drh tags: trunk
13:23
Fix the return type on sqliteStrICmp when the input strings are not equal. Ticket #804. (CVS 1794) check-in: 660b89a0 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqliteInt.h.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Internal interface definitions for SQLite.
    13     13   **
    14         -** @(#) $Id: sqliteInt.h,v 1.304 2004/06/30 04:02:12 drh Exp $
           14  +** @(#) $Id: sqliteInt.h,v 1.305 2004/07/15 13:37:22 drh Exp $
    15     15   */
    16     16   #ifndef _SQLITEINT_H_
    17     17   #define _SQLITEINT_H_
    18     18   
    19     19   #include "config.h"
    20     20   #include "sqlite3.h"
    21     21   #include "hash.h"
................................................................................
    95     95   #endif
    96     96   #ifndef UINT32_TYPE
    97     97   # define UINT32_TYPE unsigned int
    98     98   #endif
    99     99   #ifndef UINT16_TYPE
   100    100   # define UINT16_TYPE unsigned short int
   101    101   #endif
          102  +#ifndef INT16_TYPE
          103  +# define INT16_TYPE short int
          104  +#endif
   102    105   #ifndef UINT8_TYPE
   103    106   # define UINT8_TYPE unsigned char
   104    107   #endif
   105    108   #ifndef INT8_TYPE
   106    109   # define INT8_TYPE signed char
   107    110   #endif
   108    111   #ifndef LONGDOUBLE_TYPE
................................................................................
   115    118   #   define INTPTR_TYPE sqlite_int64
   116    119   # endif
   117    120   #endif
   118    121   typedef sqlite_int64 i64;          /* 8-byte signed integer */
   119    122   typedef UINT64_TYPE u64;           /* 8-byte unsigned integer */
   120    123   typedef UINT32_TYPE u32;           /* 4-byte unsigned integer */
   121    124   typedef UINT16_TYPE u16;           /* 2-byte unsigned integer */
          125  +typedef INT16_TYPE i16;            /* 2-byte signed integer */
   122    126   typedef UINT8_TYPE u8;             /* 1-byte unsigned integer */
   123    127   typedef UINT8_TYPE i8;             /* 1-byte signed integer */
   124    128   typedef INTPTR_TYPE ptr;           /* Big enough to hold a pointer */
   125    129   typedef unsigned INTPTR_TYPE uptr; /* Big enough to hold a pointer */
   126    130   
   127    131   /*
   128    132   ** Macros to determine whether the machine is big or little endian,
................................................................................
   826    830   ** With the addition of multiple database support, the following structure
   827    831   ** can also be used to describe a particular table such as the table that
   828    832   ** is modified by an INSERT, DELETE, or UPDATE statement.  In standard SQL,
   829    833   ** such a table must be a simple name: ID.  But in SQLite, the table can
   830    834   ** now be identified by a database name, a dot, then the table name: ID.ID.
   831    835   */
   832    836   struct SrcList {
   833         -  u16 nSrc;        /* Number of tables or subqueries in the FROM clause */
   834         -  u16 nAlloc;      /* Number of entries allocated in a[] below */
          837  +  i16 nSrc;        /* Number of tables or subqueries in the FROM clause */
          838  +  i16 nAlloc;      /* Number of entries allocated in a[] below */
   835    839     struct SrcList_item {
   836    840       char *zDatabase;  /* Name of database holding this table */
   837    841       char *zName;      /* Name of the table */
   838    842       char *zAlias;     /* The "B" part of a "A AS B" phrase.  zName is the "A" */
   839    843       Table *pTab;      /* An SQL table corresponding to zName */
   840    844       Select *pSelect;  /* A SELECT statement used in place of a table name */
   841    845       int jointype;     /* Type of join between this table and the next */