/ Check-in [71b749a9]
Login

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

Overview
Comment:Update the tool/symbols.sh script to check for accidentally exported global variables.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 71b749a9dca953cdf671d94afec16e2c98f3aee5
User & Date: drh 2011-07-07 08:52:24
Context
2011-07-08
13:07
Extend the SQLITE_TESTCTRL_OPTIMIZATIONS option to disable DISTINCT optimizations. check-in: 18501dd1 user: drh tags: trunk
2011-07-07
08:52
Update the tool/symbols.sh script to check for accidentally exported global variables. check-in: 71b749a9 user: drh tags: trunk
08:19
Add a target to main.mk that will fail if the amalgamation contains any exported symbols that do not begin with "sqlite3_". Run this target from within releasetest.tcl. Add "static" to a couple of private functions in mem3.c. check-in: a68b6580 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/symbols.sh.

     8      8   echo '****** Exported symbols from a build including RTREE, FTS4 & ICU ******'
     9      9   gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
    10     10     -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT2 \
    11     11     -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
    12     12     -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
    13     13     -DSQLITE_ENABLE_ICU \
    14     14     sqlite3.c
    15         -nm sqlite3.o | grep ' T ' | sort -k 3
           15  +nm sqlite3.o | grep ' [TD] ' | sort -k 3
    16     16   
    17     17   echo '****** Surplus symbols from a build including RTREE, FTS4 & ICU ******'
    18         -nm sqlite3.o | grep ' T ' | grep -v ' sqlite3_'
           18  +nm sqlite3.o | grep ' [TD] ' | grep -v ' .*sqlite3_'
    19     19   
    20     20   echo '****** Dependencies of the core. No extensions. No OS interface *******'
    21     21   gcc -c -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT2 \
    22     22     -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
    23     23     -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
    24     24     -DSQLITE_OS_OTHER -DSQLITE_THREADSAFE=0 \
    25     25     sqlite3.c