Sat, 16 Mar 2013 00:35:36 +0200
Check whether the numeric arguments of lines really are numeric, and treat lines that don't pass this check as gibberish
0 | 1 | #include "common.h" |
2 | #include "ldtypes.h" | |
3 | ||
4 | const char* g_saObjTypeNames[] = { | |
5 | "unidentified", | |
6 | "unknown", | |
7 | "empty", | |
8 | "comment", | |
9 | "subfile", | |
10 | "line", | |
11 | "triangle", | |
12 | "quadrilateral", | |
13 | "condline", | |
14 | "vector", | |
15 | "vertex", | |
16 | }; | |
17 | ||
18 | // ============================================================================= | |
19 | // LDObject constructors | |
20 | LDObject::LDObject () { | |
21 | ||
22 | } | |
23 | ||
24 | LDGibberish::LDGibberish () { | |
25 | ||
26 | } | |
27 | ||
11
323390a03294
Color gibberish red. Check for line code length for gibberish (must be 1 to be valid)
Santeri Piippo <crimsondusk64@gmail.com>
parents:
0
diff
changeset
|
28 | LDGibberish::LDGibberish (str _zContent, str _zReason) { |
323390a03294
Color gibberish red. Check for line code length for gibberish (must be 1 to be valid)
Santeri Piippo <crimsondusk64@gmail.com>
parents:
0
diff
changeset
|
29 | zContent = _zContent; |
323390a03294
Color gibberish red. Check for line code length for gibberish (must be 1 to be valid)
Santeri Piippo <crimsondusk64@gmail.com>
parents:
0
diff
changeset
|
30 | zReason = _zReason; |
323390a03294
Color gibberish red. Check for line code length for gibberish (must be 1 to be valid)
Santeri Piippo <crimsondusk64@gmail.com>
parents:
0
diff
changeset
|
31 | } |
323390a03294
Color gibberish red. Check for line code length for gibberish (must be 1 to be valid)
Santeri Piippo <crimsondusk64@gmail.com>
parents:
0
diff
changeset
|
32 | |
0 | 33 | LDEmpty::LDEmpty () { |
34 | ||
35 | } | |
36 | ||
37 | LDComment::LDComment () { | |
38 | ||
39 | } | |
40 | ||
41 | LDSubfile::LDSubfile () { | |
42 | ||
43 | } | |
44 | ||
45 | LDLine::LDLine () { | |
46 | ||
47 | } | |
48 | ||
49 | LDTriangle::LDTriangle () { | |
50 | ||
51 | } | |
52 | ||
53 | LDQuad::LDQuad () { | |
54 | ||
55 | } | |
56 | ||
57 | LDCondLine::LDCondLine () { | |
58 | ||
59 | } | |
60 | ||
61 | LDVector::LDVector () { | |
62 | ||
63 | } | |
64 | ||
65 | LDVertex::LDVertex () { | |
66 | ||
67 | } |