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 Unified Diffs Show Whitespace Changes Patch

Changes to pages/capi3ref.in.

185
186
187
188
189
190
191
192

193
194
195
196
197
198
199
...
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
# to lower case and prefixed with "c_".  If we did not
# do this, then the names "SQLITE_BLOB" and "sqlite3_blob"
# would collide.
#
proc convert_keyword_to_filename {oldname} {
  set oldname [string tolower $oldname]
  regsub {^sqlite_} $oldname {c_} oldname
  regsub {^sqlite3_} $oldname {} name

  return $name.html
}

# Output HTML that displays the list $lx in $N columns
#
proc output_list {N lx} {
  hd_putsnl {<table width="100%" cellpadding="5"><tr>}
................................................................................
foreach c $content {
  foreach {key title type keywords body code} $c break
  if {$type!="constant"} continue
  set keywords [lsort $keywords]
  set k [preferred_keyword $keywords]
  set s $supported($k)
  foreach kw $keywords {
    if {[regexp {^SQLITE_} $kw]} {
      lappend clist [list $kw $kw $s]
    }
  }
}
hd_open_aux c3ref/constlist.html
hd_header {List Of SQLite Constants}
hd_enable_main 0







|
>







 







|







185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
...
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
# to lower case and prefixed with "c_".  If we did not
# do this, then the names "SQLITE_BLOB" and "sqlite3_blob"
# would collide.
#
proc convert_keyword_to_filename {oldname} {
  set oldname [string tolower $oldname]
  regsub {^sqlite_} $oldname {c_} oldname
  regsub {^sqlite3_} $oldname {} oldname
  regsub { } $oldname _ name
  return $name.html
}

# Output HTML that displays the list $lx in $N columns
#
proc output_list {N lx} {
  hd_putsnl {<table width="100%" cellpadding="5"><tr>}
................................................................................
foreach c $content {
  foreach {key title type keywords body code} $c break
  if {$type!="constant"} continue
  set keywords [lsort $keywords]
  set k [preferred_keyword $keywords]
  set s $supported($k)
  foreach kw $keywords {
    if {[regexp {^SQLITE_} $kw] && ![regexp {[^A-Z_0-9]} $kw]} {
      lappend clist [list $kw $kw $s]
    }
  }
}
hd_open_aux c3ref/constlist.html
hd_header {List Of SQLite Constants}
hd_enable_main 0