/ Check-in [c4fb44fd]
Login

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

Overview
Comment:The mkopcodeh.awk script removes \r for use with msys. Ticket #954. (CVS 2016)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c4fb44fd5f89960ec09c9ed64aeb037b5ca55ea2
User & Date: drh 2004-10-10 19:11:36
Context
2004-10-11
21:48
Fix typo in the lockingv3.html page on the website. (CVS 2017) check-in: a31b6477 user: drh tags: trunk
2004-10-10
19:11
The mkopcodeh.awk script removes \r for use with msys. Ticket #954. (CVS 2016) check-in: c4fb44fd user: drh tags: trunk
18:00
Documentation updates (CVS 2015) check-in: a4546c09 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to mkopcodeh.awk.

18
19
20
21
22
23
24

25
26
27
28
29
30
31
  tk[$2] = $3
}

# Scan for "case OP_aaaa:" lines in the vdbe.c file
/^case OP_/ {
  name = $2
  gsub(/:/,"",name)

  op[name] = -1
  for(i=3; i<NF-2; i++){
    if($i=="same" && $(i+1)=="as"){
      op[name] = tk[$(i+2)]
      used[op[name]] = 1
    }
  }







>







18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  tk[$2] = $3
}

# Scan for "case OP_aaaa:" lines in the vdbe.c file
/^case OP_/ {
  name = $2
  gsub(/:/,"",name)
  gsub("\r","",name)
  op[name] = -1
  for(i=3; i<NF-2; i++){
    if($i=="same" && $(i+1)=="as"){
      op[name] = tk[$(i+2)]
      used[op[name]] = 1
    }
  }