Documentation Source Text

Check-in [50d18aeabf]
Login

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

Overview
Comment:Fix issues with the c3ref documentation generator script.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:50d18aeabfed7fd0e7147accb3efcba331d4b35a
User & Date: drh 2011-06-30 16:26:15
Context
2011-07-20
13:49
Fix typos in the file format document. check-in: 81951052dc user: drh tags: trunk
2011-06-30
16:26
Fix issues with the c3ref documentation generator script. check-in: 50d18aeabf user: drh tags: trunk
2011-06-28
18:01
Add the SQLITE_SOURCE_ID and SHA1 checksum for 3.7.7.1 to the changelog. check-in: f84b6b4880 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to pages/capi3ref.in.

   185    185   # to lower case and prefixed with "c_".  If we did not
   186    186   # do this, then the names "SQLITE_BLOB" and "sqlite3_blob"
   187    187   # would collide.
   188    188   #
   189    189   proc convert_keyword_to_filename {oldname} {
   190    190     set oldname [string tolower $oldname]
   191    191     regsub {^sqlite_} $oldname {c_} oldname
   192         -  regsub {^sqlite3_} $oldname {} name
          192  +  regsub {^sqlite3_} $oldname {} oldname
          193  +  regsub { } $oldname _ name
   193    194     return $name.html
   194    195   }
   195    196   
   196    197   # Output HTML that displays the list $lx in $N columns
   197    198   #
   198    199   proc output_list {N lx} {
   199    200     hd_putsnl {<table width="100%" cellpadding="5"><tr>}
................................................................................
   407    408   foreach c $content {
   408    409     foreach {key title type keywords body code} $c break
   409    410     if {$type!="constant"} continue
   410    411     set keywords [lsort $keywords]
   411    412     set k [preferred_keyword $keywords]
   412    413     set s $supported($k)
   413    414     foreach kw $keywords {
   414         -    if {[regexp {^SQLITE_} $kw]} {
          415  +    if {[regexp {^SQLITE_} $kw] && ![regexp {[^A-Z_0-9]} $kw]} {
   415    416         lappend clist [list $kw $kw $s]
   416    417       }
   417    418     }
   418    419   }
   419    420   hd_open_aux c3ref/constlist.html
   420    421   hd_header {List Of SQLite Constants}
   421    422   hd_enable_main 0