Fossil

Check-in [b47e4cc4]
Login

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

Overview
Comment:Coding style tweak.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | binDiffFix
Files: files | file ages | folders
SHA1: b47e4cc40168d0701010e918052ea5098527e1a3
User & Date: mistachkin 2016-10-04 02:55:23
Context
2016-10-26
21:32
Minor tweaks to the break_into_lines() algorithm. Add tests. check-in: 057e4b0a user: mistachkin tags: trunk
2016-10-23
02:14
Minor tweaks to the break_into_lines() algorithm. Add tests. check-in: d3cc6d1d user: mistachkin tags: experimental
2016-10-04
02:55
Coding style tweak. Closed-Leaf check-in: b47e4cc4 user: mistachkin tags: binDiffFix
02:44
Whitespace tweak. check-in: 4ed91cda user: mistachkin tags: binDiffFix
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/diff.c.

131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
  int *pnLine
){
  int nLine;
  const char *zNL, *z2;
  for(nLine=0, z2=z; (zNL = strchr(z2,'\n'))!=0; z2=zNL+1, nLine++){}
  if( z2[0]!='\0' ){
    nLine++;
    do{ z2++; }while( z2[0] );
  }
  if( n!=(int)(z2-z) ) return 0;
  if( pnLine ) *pnLine = nLine;
  return 1;
}

/*







|







131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
  int *pnLine
){
  int nLine;
  const char *zNL, *z2;
  for(nLine=0, z2=z; (zNL = strchr(z2,'\n'))!=0; z2=zNL+1, nLine++){}
  if( z2[0]!='\0' ){
    nLine++;
    do{ z2++; }while( z2[0]!='\0' );
  }
  if( n!=(int)(z2-z) ) return 0;
  if( pnLine ) *pnLine = nLine;
  return 1;
}

/*