Compared files  

Left
C:\SDK\wxWidgets-2.6.2\contrib\src\stc\scintilla\src\LexPOV.cxx
Last modified2004-02-18 17:28:54.001 +0100
Size9.1 Kb (311 Lines)
EncodingLatin 1 - ANSI (CP1252) default
Right
C:\SDK\wxWidgets-2.6.3\contrib\src\stc\scintilla\src\LexPOV.cxx
Last modified2006-03-16 13:07:08.000 +0100
Size9.1 Kb (313 Lines)
EncodingLatin 1 - ANSI (CP1252) default


   Comparison Statistics  

Detailed Statistics

All Changes
 BlocksLines
Unchanged10303
Inserted12
Deleted11
Ignored00
Changed715



   Comparison Details  

2 skipped lines
3 3  ** Lexer for POV-Ray SDL (Persistance of Vision Raytracer, Scene Description Language).
4 4  ** Written by Philippe Lhoste but this is mostly a derivative of LexCPP...
5 5  **/
6 // Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org> 6 // Copyright 1998-2005 by Neil Hodgson <neilh@scintilla.org>
7 7 // The License.txt file describes the conditions under which this software may be distributed.
8 8  
9 9 // Some points that distinguish from a simple C lexer:
19 skipped lines
29 29 #include "Scintilla.h"
30 30 #include "SciLexer.h"
31 31  
32 static inline bool IsAWordChar(const int ch) { 32 static inline bool IsAWordChar(int ch) {
33 33     return ch < 0x80 && (isalnum(ch) || ch == '_');
34 34 }
35 35  
36 static inline bool IsAWordStart(const int ch) { 36 static inline bool IsAWordStart(int ch) {
37 37     return ch < 0x80 && isalpha(ch);
38 38 }
39 39  
40 static inline bool IsANumberChar(const int ch) { 40 static inline bool IsANumberChar(int ch) {
41 41     // Not exactly following number definition (several dots are seen as OK, etc.)
42 42     // but probably enough in most cases.
43 43     return (ch < 0x80) &&
25 skipped lines
69 69     }
70 70  
71 71     // Do not leak onto next line
72     if (initStyle == SCE_POV_STRINGEOL) { 72     if (initStyle == SCE_POV_STRINGEOL || initStyle == SCE_POV_COMMENTLINE) {
73 73         initStyle = SCE_POV_DEFAULT;
74 74     }
75 75  
76     StyleContext sc(startPos, length, initStyle, styler);  
77 76     short stringLen = 0;
78 77  
  78     StyleContext sc(startPos, length, initStyle, styler);
  79  
79 80     for (; sc.More(); sc.Forward()) {
80 81         if (sc.atLineEnd) {
81 82         // Update the line state, so it can be seen by next line
43 skipped lines
125 126         }
126 127         } else if (sc.state == SCE_POV_DIRECTIVE) {
127 128         if (!IsAWordChar(sc.ch)) {
128         char s[100], *p; 129         char s[100];
  130         char *p;
129 131         sc.GetCurrent(s, sizeof(s));
130 132         p = s;
131 133         // Skip # and whitespace between # and directive word
18 skipped lines
150 152         }
151 153         } else if (sc.state == SCE_POV_COMMENTLINE) {
152 154         if (sc.atLineEnd) {
153         sc.SetState(SCE_POV_DEFAULT); 155         sc.ForwardSetState(SCE_POV_DEFAULT);
154 156         }
155 157         } else if (sc.state == SCE_POV_STRING) {
156 158         if (sc.ch == '\\') {
155 skipped lines

   Text comparison Options  

Syntax colouring language used: C / C++
Match character case: yes.
Match line endings: no.
Match spaces

At start of lines: yes,
In middle of lines: yes,
At end of lines: yes.
Blank lines as empty lines: no.
Activate comparison algorithm
At word level: yes,
At character level: no.


   Legend  

Unchanged lineExample of unchanged line
Modified lineExample of modified line
Added lineExample of added line
Removed lineExample of removed line
Ignored lineExample of ignored line

This report has been generated by Ellié Computing Merge on 2006-09-07 15:48:29.001 +0200.
© 2005-2006 Ellié Computing http://www.elliecomputing.com. All rights reserved.