Ted Kremenek | 04a847e | 2009-03-13 22:21:17 +0000 | [diff] [blame] | 1 | //=- ClangDiagnosticsEmitter.cpp - Generate Clang diagnostics tables -*- C++ -*- |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // These tablegen backends emit Clang diagnostics tables. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "ClangDiagnosticsEmitter.h" |
| 15 | #include "Record.h" |
| 16 | #include "llvm/Support/Debug.h" |
Ted Kremenek | 0f9d510 | 2009-03-18 21:36:46 +0000 | [diff] [blame] | 17 | #include "llvm/Support/Compiler.h" |
Ted Kremenek | 8b9d027 | 2009-03-18 21:16:16 +0000 | [diff] [blame] | 18 | #include "llvm/ADT/DenseSet.h" |
Chris Lattner | 457cde4 | 2009-04-15 20:13:18 +0000 | [diff] [blame] | 19 | #include "llvm/ADT/StringExtras.h" |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 20 | #include "llvm/ADT/StringMap.h" |
Chris Lattner | 457cde4 | 2009-04-15 20:13:18 +0000 | [diff] [blame] | 21 | #include "llvm/ADT/VectorExtras.h" |
Ted Kremenek | 8b9d027 | 2009-03-18 21:16:16 +0000 | [diff] [blame] | 22 | #include <set> |
| 23 | #include <map> |
Ted Kremenek | 04a847e | 2009-03-13 22:21:17 +0000 | [diff] [blame] | 24 | using namespace llvm; |
Ted Kremenek | 8b9d027 | 2009-03-18 21:16:16 +0000 | [diff] [blame] | 25 | |
| 26 | //===----------------------------------------------------------------------===// |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 27 | // Diagnostic category computation code. |
| 28 | //===----------------------------------------------------------------------===// |
| 29 | |
| 30 | namespace { |
| 31 | class DiagGroupParentMap { |
Chris Lattner | 67db883 | 2010-12-13 00:23:57 +0000 | [diff] [blame] | 32 | RecordKeeper &Records; |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 33 | std::map<const Record*, std::vector<Record*> > Mapping; |
| 34 | public: |
Chris Lattner | 67db883 | 2010-12-13 00:23:57 +0000 | [diff] [blame] | 35 | DiagGroupParentMap(RecordKeeper &records) : Records(records) { |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 36 | std::vector<Record*> DiagGroups |
| 37 | = Records.getAllDerivedDefinitions("DiagGroup"); |
| 38 | for (unsigned i = 0, e = DiagGroups.size(); i != e; ++i) { |
| 39 | std::vector<Record*> SubGroups = |
| 40 | DiagGroups[i]->getValueAsListOfDefs("SubGroups"); |
| 41 | for (unsigned j = 0, e = SubGroups.size(); j != e; ++j) |
| 42 | Mapping[SubGroups[j]].push_back(DiagGroups[i]); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | const std::vector<Record*> &getParents(const Record *Group) { |
| 47 | return Mapping[Group]; |
| 48 | } |
| 49 | }; |
| 50 | } // end anonymous namespace. |
| 51 | |
| 52 | |
| 53 | static std::string |
| 54 | getCategoryFromDiagGroup(const Record *Group, |
| 55 | DiagGroupParentMap &DiagGroupParents) { |
| 56 | // If the DiagGroup has a category, return it. |
| 57 | std::string CatName = Group->getValueAsString("CategoryName"); |
| 58 | if (!CatName.empty()) return CatName; |
| 59 | |
| 60 | // The diag group may the subgroup of one or more other diagnostic groups, |
| 61 | // check these for a category as well. |
| 62 | const std::vector<Record*> &Parents = DiagGroupParents.getParents(Group); |
| 63 | for (unsigned i = 0, e = Parents.size(); i != e; ++i) { |
| 64 | CatName = getCategoryFromDiagGroup(Parents[i], DiagGroupParents); |
| 65 | if (!CatName.empty()) return CatName; |
| 66 | } |
| 67 | return ""; |
| 68 | } |
| 69 | |
| 70 | /// getDiagnosticCategory - Return the category that the specified diagnostic |
| 71 | /// lives in. |
| 72 | static std::string getDiagnosticCategory(const Record *R, |
| 73 | DiagGroupParentMap &DiagGroupParents) { |
Chris Lattner | ec5a0b3 | 2010-05-24 21:55:47 +0000 | [diff] [blame] | 74 | // If the diagnostic is in a group, and that group has a category, use it. |
| 75 | if (DefInit *Group = dynamic_cast<DefInit*>(R->getValueInit("Group"))) { |
| 76 | // Check the diagnostic's diag group for a category. |
| 77 | std::string CatName = getCategoryFromDiagGroup(Group->getDef(), |
| 78 | DiagGroupParents); |
| 79 | if (!CatName.empty()) return CatName; |
| 80 | } |
| 81 | |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 82 | // If the diagnostic itself has a category, get it. |
Chris Lattner | ec5a0b3 | 2010-05-24 21:55:47 +0000 | [diff] [blame] | 83 | return R->getValueAsString("CategoryName"); |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | namespace { |
| 87 | class DiagCategoryIDMap { |
Chris Lattner | 67db883 | 2010-12-13 00:23:57 +0000 | [diff] [blame] | 88 | RecordKeeper &Records; |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 89 | StringMap<unsigned> CategoryIDs; |
| 90 | std::vector<std::string> CategoryStrings; |
| 91 | public: |
Chris Lattner | 67db883 | 2010-12-13 00:23:57 +0000 | [diff] [blame] | 92 | DiagCategoryIDMap(RecordKeeper &records) : Records(records) { |
| 93 | DiagGroupParentMap ParentInfo(Records); |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 94 | |
| 95 | // The zero'th category is "". |
| 96 | CategoryStrings.push_back(""); |
| 97 | CategoryIDs[""] = 0; |
| 98 | |
| 99 | std::vector<Record*> Diags = |
| 100 | Records.getAllDerivedDefinitions("Diagnostic"); |
| 101 | for (unsigned i = 0, e = Diags.size(); i != e; ++i) { |
| 102 | std::string Category = getDiagnosticCategory(Diags[i], ParentInfo); |
| 103 | if (Category.empty()) continue; // Skip diags with no category. |
| 104 | |
| 105 | unsigned &ID = CategoryIDs[Category]; |
| 106 | if (ID != 0) continue; // Already seen. |
| 107 | |
| 108 | ID = CategoryStrings.size(); |
| 109 | CategoryStrings.push_back(Category); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | unsigned getID(StringRef CategoryString) { |
| 114 | return CategoryIDs[CategoryString]; |
| 115 | } |
| 116 | |
| 117 | typedef std::vector<std::string>::iterator iterator; |
| 118 | iterator begin() { return CategoryStrings.begin(); } |
| 119 | iterator end() { return CategoryStrings.end(); } |
| 120 | }; |
| 121 | } // end anonymous namespace. |
| 122 | |
| 123 | |
| 124 | |
| 125 | //===----------------------------------------------------------------------===// |
Ted Kremenek | 8b9d027 | 2009-03-18 21:16:16 +0000 | [diff] [blame] | 126 | // Warning Tables (.inc file) generation. |
| 127 | //===----------------------------------------------------------------------===// |
| 128 | |
Daniel Dunbar | 1a55180 | 2009-07-03 00:10:29 +0000 | [diff] [blame] | 129 | void ClangDiagsDefsEmitter::run(raw_ostream &OS) { |
Ted Kremenek | 557f7f8 | 2009-03-13 22:53:41 +0000 | [diff] [blame] | 130 | // Write the #if guard |
| 131 | if (!Component.empty()) { |
Chris Lattner | 9371c33 | 2009-04-15 20:16:12 +0000 | [diff] [blame] | 132 | std::string ComponentName = UppercaseString(Component); |
| 133 | OS << "#ifdef " << ComponentName << "START\n"; |
| 134 | OS << "__" << ComponentName << "START = DIAG_START_" << ComponentName |
| 135 | << ",\n"; |
| 136 | OS << "#undef " << ComponentName << "START\n"; |
Kovarththanan Rajaratnam | e7e891f | 2010-03-18 13:16:38 +0000 | [diff] [blame] | 137 | OS << "#endif\n\n"; |
Ted Kremenek | 557f7f8 | 2009-03-13 22:53:41 +0000 | [diff] [blame] | 138 | } |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 139 | |
| 140 | const std::vector<Record*> &Diags = |
| 141 | Records.getAllDerivedDefinitions("Diagnostic"); |
Ted Kremenek | 557f7f8 | 2009-03-13 22:53:41 +0000 | [diff] [blame] | 142 | |
Chris Lattner | 67db883 | 2010-12-13 00:23:57 +0000 | [diff] [blame] | 143 | DiagCategoryIDMap CategoryIDs(Records); |
| 144 | DiagGroupParentMap DGParentMap(Records); |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 145 | |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 146 | for (unsigned i = 0, e = Diags.size(); i != e; ++i) { |
| 147 | const Record &R = *Diags[i]; |
Chris Lattner | f1624aa | 2009-04-15 06:26:49 +0000 | [diff] [blame] | 148 | // Filter by component. |
| 149 | if (!Component.empty() && Component != R.getValueAsString("Component")) |
| 150 | continue; |
Ted Kremenek | 557f7f8 | 2009-03-13 22:53:41 +0000 | [diff] [blame] | 151 | |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 152 | OS << "DIAG(" << R.getName() << ", "; |
| 153 | OS << R.getValueAsDef("Class")->getName(); |
| 154 | OS << ", diag::" << R.getValueAsDef("DefaultMapping")->getName(); |
Chris Lattner | bfc0104 | 2009-04-16 05:52:18 +0000 | [diff] [blame] | 155 | |
| 156 | // Description string. |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 157 | OS << ", \""; |
Daniel Dunbar | 3446cf1 | 2009-10-17 20:43:19 +0000 | [diff] [blame] | 158 | OS.write_escaped(R.getValueAsString("Text")) << '"'; |
Chris Lattner | bfc0104 | 2009-04-16 05:52:18 +0000 | [diff] [blame] | 159 | |
| 160 | // Warning associated with the diagnostic. |
| 161 | if (DefInit *DI = dynamic_cast<DefInit*>(R.getValueInit("Group"))) { |
Daniel Dunbar | 3446cf1 | 2009-10-17 20:43:19 +0000 | [diff] [blame] | 162 | OS << ", \""; |
| 163 | OS.write_escaped(DI->getDef()->getValueAsString("GroupName")) << '"'; |
Chris Lattner | bfc0104 | 2009-04-16 05:52:18 +0000 | [diff] [blame] | 164 | } else { |
| 165 | OS << ", 0"; |
| 166 | } |
Douglas Gregor | 956244b | 2009-06-14 07:24:49 +0000 | [diff] [blame] | 167 | |
| 168 | // SFINAE bit |
| 169 | if (R.getValueAsBit("SFINAE")) |
| 170 | OS << ", true"; |
| 171 | else |
| 172 | OS << ", false"; |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 173 | |
| 174 | // Category number. |
| 175 | OS << ", " << CategoryIDs.getID(getDiagnosticCategory(&R, DGParentMap)); |
Chris Lattner | bfc0104 | 2009-04-16 05:52:18 +0000 | [diff] [blame] | 176 | OS << ")\n"; |
Ted Kremenek | 04a847e | 2009-03-13 22:21:17 +0000 | [diff] [blame] | 177 | } |
Ted Kremenek | 557f7f8 | 2009-03-13 22:53:41 +0000 | [diff] [blame] | 178 | } |
Ted Kremenek | 8b9d027 | 2009-03-18 21:16:16 +0000 | [diff] [blame] | 179 | |
| 180 | //===----------------------------------------------------------------------===// |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 181 | // Warning Group Tables generation |
Ted Kremenek | 8b9d027 | 2009-03-18 21:16:16 +0000 | [diff] [blame] | 182 | //===----------------------------------------------------------------------===// |
| 183 | |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 184 | struct GroupInfo { |
| 185 | std::vector<const Record*> DiagsInGroup; |
| 186 | std::vector<std::string> SubGroups; |
Chris Lattner | 9efac56 | 2009-04-16 03:16:12 +0000 | [diff] [blame] | 187 | unsigned IDNo; |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 188 | }; |
| 189 | |
Daniel Dunbar | 1a55180 | 2009-07-03 00:10:29 +0000 | [diff] [blame] | 190 | void ClangDiagGroupsEmitter::run(raw_ostream &OS) { |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 191 | // Compute a mapping from a DiagGroup to all of its parents. |
Chris Lattner | 67db883 | 2010-12-13 00:23:57 +0000 | [diff] [blame] | 192 | DiagGroupParentMap DGParentMap(Records); |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 193 | |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 194 | // Invert the 1-[0/1] mapping of diags to group into a one to many mapping of |
| 195 | // groups to diags in the group. |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 196 | std::map<std::string, GroupInfo> DiagsInGroup; |
Chris Lattner | 457cde4 | 2009-04-15 20:13:18 +0000 | [diff] [blame] | 197 | |
Chris Lattner | a0ed8ca | 2009-04-15 22:33:02 +0000 | [diff] [blame] | 198 | std::vector<Record*> Diags = |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 199 | Records.getAllDerivedDefinitions("Diagnostic"); |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 200 | for (unsigned i = 0, e = Diags.size(); i != e; ++i) { |
| 201 | const Record *R = Diags[i]; |
| 202 | DefInit *DI = dynamic_cast<DefInit*>(R->getValueInit("Group")); |
| 203 | if (DI == 0) continue; |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 204 | std::string GroupName = DI->getDef()->getValueAsString("GroupName"); |
| 205 | DiagsInGroup[GroupName].DiagsInGroup.push_back(R); |
Ted Kremenek | 8b9d027 | 2009-03-18 21:16:16 +0000 | [diff] [blame] | 206 | } |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 207 | |
Chris Lattner | a0ed8ca | 2009-04-15 22:33:02 +0000 | [diff] [blame] | 208 | // Add all DiagGroup's to the DiagsInGroup list to make sure we pick up empty |
| 209 | // groups (these are warnings that GCC supports that clang never produces). |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 210 | std::vector<Record*> DiagGroups |
| 211 | = Records.getAllDerivedDefinitions("DiagGroup"); |
| 212 | for (unsigned i = 0, e = DiagGroups.size(); i != e; ++i) { |
| 213 | Record *Group = DiagGroups[i]; |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 214 | GroupInfo &GI = DiagsInGroup[Group->getValueAsString("GroupName")]; |
| 215 | |
| 216 | std::vector<Record*> SubGroups = Group->getValueAsListOfDefs("SubGroups"); |
| 217 | for (unsigned j = 0, e = SubGroups.size(); j != e; ++j) |
| 218 | GI.SubGroups.push_back(SubGroups[j]->getValueAsString("GroupName")); |
Chris Lattner | a0ed8ca | 2009-04-15 22:33:02 +0000 | [diff] [blame] | 219 | } |
| 220 | |
Chris Lattner | 9efac56 | 2009-04-16 03:16:12 +0000 | [diff] [blame] | 221 | // Assign unique ID numbers to the groups. |
| 222 | unsigned IDNo = 0; |
| 223 | for (std::map<std::string, GroupInfo>::iterator |
| 224 | I = DiagsInGroup.begin(), E = DiagsInGroup.end(); I != E; ++I, ++IDNo) |
| 225 | I->second.IDNo = IDNo; |
| 226 | |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 227 | // Walk through the groups emitting an array for each diagnostic of the diags |
| 228 | // that are mapped to. |
| 229 | OS << "\n#ifdef GET_DIAG_ARRAYS\n"; |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 230 | unsigned MaxLen = 0; |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 231 | for (std::map<std::string, GroupInfo>::iterator |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 232 | I = DiagsInGroup.begin(), E = DiagsInGroup.end(); I != E; ++I) { |
| 233 | MaxLen = std::max(MaxLen, (unsigned)I->first.size()); |
Ted Kremenek | 3ac82fe | 2009-03-18 21:28:47 +0000 | [diff] [blame] | 234 | |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 235 | std::vector<const Record*> &V = I->second.DiagsInGroup; |
Chris Lattner | 9efac56 | 2009-04-16 03:16:12 +0000 | [diff] [blame] | 236 | if (!V.empty()) { |
| 237 | OS << "static const short DiagArray" << I->second.IDNo << "[] = { "; |
| 238 | for (unsigned i = 0, e = V.size(); i != e; ++i) |
| 239 | OS << "diag::" << V[i]->getName() << ", "; |
| 240 | OS << "-1 };\n"; |
| 241 | } |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 242 | |
Chris Lattner | 9efac56 | 2009-04-16 03:16:12 +0000 | [diff] [blame] | 243 | const std::vector<std::string> &SubGroups = I->second.SubGroups; |
| 244 | if (!SubGroups.empty()) { |
Chandler Carruth | 93ca7b6 | 2010-05-13 07:43:47 +0000 | [diff] [blame] | 245 | OS << "static const short DiagSubGroup" << I->second.IDNo << "[] = { "; |
Chris Lattner | 9efac56 | 2009-04-16 03:16:12 +0000 | [diff] [blame] | 246 | for (unsigned i = 0, e = SubGroups.size(); i != e; ++i) { |
| 247 | std::map<std::string, GroupInfo>::iterator RI = |
| 248 | DiagsInGroup.find(SubGroups[i]); |
| 249 | assert(RI != DiagsInGroup.end() && "Referenced without existing?"); |
| 250 | OS << RI->second.IDNo << ", "; |
| 251 | } |
| 252 | OS << "-1 };\n"; |
| 253 | } |
Ted Kremenek | 3ac82fe | 2009-03-18 21:28:47 +0000 | [diff] [blame] | 254 | } |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 255 | OS << "#endif // GET_DIAG_ARRAYS\n\n"; |
| 256 | |
| 257 | // Emit the table now. |
| 258 | OS << "\n#ifdef GET_DIAG_TABLE\n"; |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 259 | for (std::map<std::string, GroupInfo>::iterator |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 260 | I = DiagsInGroup.begin(), E = DiagsInGroup.end(); I != E; ++I) { |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 261 | // Group option string. |
Daniel Dunbar | 3446cf1 | 2009-10-17 20:43:19 +0000 | [diff] [blame] | 262 | OS << " { \""; |
| 263 | OS.write_escaped(I->first) << "\"," |
| 264 | << std::string(MaxLen-I->first.size()+1, ' '); |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 265 | |
| 266 | // Diagnostics in the group. |
| 267 | if (I->second.DiagsInGroup.empty()) |
| 268 | OS << "0, "; |
| 269 | else |
Chris Lattner | 9efac56 | 2009-04-16 03:16:12 +0000 | [diff] [blame] | 270 | OS << "DiagArray" << I->second.IDNo << ", "; |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 271 | |
Chris Lattner | 9efac56 | 2009-04-16 03:16:12 +0000 | [diff] [blame] | 272 | // Subgroups. |
| 273 | if (I->second.SubGroups.empty()) |
| 274 | OS << 0; |
| 275 | else |
| 276 | OS << "DiagSubGroup" << I->second.IDNo; |
Chris Lattner | d0d3494 | 2009-04-16 00:53:25 +0000 | [diff] [blame] | 277 | OS << " },\n"; |
Chris Lattner | 2f8c1d5 | 2009-04-15 20:55:08 +0000 | [diff] [blame] | 278 | } |
| 279 | OS << "#endif // GET_DIAG_TABLE\n\n"; |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 280 | |
| 281 | // Emit the category table next. |
Chris Lattner | 67db883 | 2010-12-13 00:23:57 +0000 | [diff] [blame] | 282 | DiagCategoryIDMap CategoriesByID(Records); |
Chris Lattner | af1465b | 2010-05-04 20:44:23 +0000 | [diff] [blame] | 283 | OS << "\n#ifdef GET_CATEGORY_TABLE\n"; |
| 284 | for (DiagCategoryIDMap::iterator I = CategoriesByID.begin(), |
| 285 | E = CategoriesByID.end(); I != E; ++I) |
| 286 | OS << "CATEGORY(\"" << *I << "\")\n"; |
| 287 | OS << "#endif // GET_CATEGORY_TABLE\n\n"; |
Ted Kremenek | 8b9d027 | 2009-03-18 21:16:16 +0000 | [diff] [blame] | 288 | } |