/ Check-in [41526d09]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Make SrcList.nSrc a signed quantity to avoid problems on AIX. (CVS 1795)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | version_2
Files: files | file ages | folders
SHA1: 41526d098dcae6def4940cd464d0e1e673c6abb5
User & Date: drh 2004-07-15 13:37:05
Context
2004-07-17
21:59
Fix for ticket #812 in the 2.8 branch. (CVS 1801) check-in: ea364dff user: drh tags: version_2
2004-07-15
13:37
Make SrcList.nSrc a signed quantity to avoid problems on AIX. (CVS 1795) check-in: 41526d09 user: drh tags: version_2
13:08
Correct return type on sqliteStrICmp() when argument strings differ. Ticket #804. (CVS 1793) check-in: 296528b2 user: drh tags: version_2
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.220 2004/02/25 13:47:33 drh Exp $
           14  +** @(#) $Id: sqliteInt.h,v 1.220.2.1 2004/07/15 13:37:05 drh Exp $
    15     15   */
    16     16   #include "config.h"
    17     17   #include "sqlite.h"
    18     18   #include "hash.h"
    19     19   #include "parse.h"
    20     20   #include "btree.h"
    21     21   #include <stdio.h>
................................................................................
    98     98   */
    99     99   #ifndef UINT32_TYPE
   100    100   # define UINT32_TYPE unsigned int
   101    101   #endif
   102    102   #ifndef UINT16_TYPE
   103    103   # define UINT16_TYPE unsigned short int
   104    104   #endif
          105  +#ifndef INT16_TYPE
          106  +# define INT16_TYPE short int
          107  +#endif
   105    108   #ifndef UINT8_TYPE
   106    109   # define UINT8_TYPE unsigned char
   107    110   #endif
   108    111   #ifndef INT8_TYPE
   109    112   # define INT8_TYPE signed char
   110    113   #endif
   111    114   #ifndef INTPTR_TYPE
................................................................................
   113    116   #   define INTPTR_TYPE int
   114    117   # else
   115    118   #   define INTPTR_TYPE long long
   116    119   # endif
   117    120   #endif
   118    121   typedef UINT32_TYPE u32;           /* 4-byte unsigned integer */
   119    122   typedef UINT16_TYPE u16;           /* 2-byte unsigned integer */
          123  +typedef INT16_TYPE i16;            /* 2-byte signed integer */
   120    124   typedef UINT8_TYPE u8;             /* 1-byte unsigned integer */
   121    125   typedef UINT8_TYPE i8;             /* 1-byte signed integer */
   122    126   typedef INTPTR_TYPE ptr;           /* Big enough to hold a pointer */
   123    127   typedef unsigned INTPTR_TYPE uptr; /* Big enough to hold a pointer */
   124    128   
   125    129   /*
   126    130   ** Defer sourcing vdbe.h until after the "u8" typedef is defined.
................................................................................
   758    762   ** With the addition of multiple database support, the following structure
   759    763   ** can also be used to describe a particular table such as the table that
   760    764   ** is modified by an INSERT, DELETE, or UPDATE statement.  In standard SQL,
   761    765   ** such a table must be a simple name: ID.  But in SQLite, the table can
   762    766   ** now be identified by a database name, a dot, then the table name: ID.ID.
   763    767   */
   764    768   struct SrcList {
   765         -  u16 nSrc;        /* Number of tables or subqueries in the FROM clause */
   766         -  u16 nAlloc;      /* Number of entries allocated in a[] below */
          769  +  i16 nSrc;        /* Number of tables or subqueries in the FROM clause */
          770  +  i16 nAlloc;      /* Number of entries allocated in a[] below */
   767    771     struct SrcList_item {
   768    772       char *zDatabase;  /* Name of database holding this table */
   769    773       char *zName;      /* Name of the table */
   770    774       char *zAlias;     /* The "B" part of a "A AS B" phrase.  zName is the "A" */
   771    775       Table *pTab;      /* An SQL table corresponding to zName */
   772    776       Select *pSelect;  /* A SELECT statement used in place of a table name */
   773    777       int jointype;     /* Type of join between this table and the next */