Fossil

Check-in [ae640886]
Login

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

Overview
Comment:minor hack to name_search() to make it stop searching after it determines there is an ambiguity.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ae64088627dfdb16ebfcca5dfa9aaa78de91bf51
User & Date: stephan 2011-10-02 13:30:38.869
References
2011-10-02
18:28
Merged in trunk [ae64088627df]. Added /json/timeline/checkin as alias for /json/timeline/commit (checkin is historically more correct/consistent). ... (check-in: a9070a49 user: stephan tags: json-multitag-test, json)
Context
2011-10-03
16:34
Disabling Cache-control: no-store, as it made firefox forget about form field contents on back/forward in history.

Resolution achieved by a minimal consensus at this thread on the mailing list. ... (check-in: 3fac77d7 user: viriketo tags: trunk)

2011-10-02
18:28
Merged in trunk [ae64088627df]. Added /json/timeline/checkin as alias for /json/timeline/commit (checkin is historically more correct/consistent). ... (check-in: a9070a49 user: stephan tags: json-multitag-test, json)
13:30
minor hack to name_search() to make it stop searching after it determines there is an ambiguity. ... (check-in: ae640886 user: stephan tags: trunk)
2011-10-01
20:50
Variable used for return value of send(2) must be signed, otherwise error conditions just result in infinite loops. ... (check-in: 5e351987 user: joerg tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
      return 0;
    }else if( c<0 ){
      upr = mid - 1;
    }else{
      lwr = mid + 1;
    }
  }
  for(m=cnt=0, i=upr-2; i<=upr+3 && i<nMap; i++){
    if( i<0 ) continue;
    if( strncmp(zName, aMap[i].zName, n)==0 ){
      m = i;
      cnt++;
    }
  }
  if( cnt==1 ){







|







215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
      return 0;
    }else if( c<0 ){
      upr = mid - 1;
    }else{
      lwr = mid + 1;
    }
  }
  for(m=cnt=0, i=upr-2; cnt<2 && i<=upr+3 && i<nMap; i++){
    if( i<0 ) continue;
    if( strncmp(zName, aMap[i].zName, n)==0 ){
      m = i;
      cnt++;
    }
  }
  if( cnt==1 ){