| LEFT | RIGHT |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 if (differentiator.offset == SIZE_MAX) | 473 if (differentiator.offset == SIZE_MAX) |
| 474 return; | 474 return; |
| 475 | 475 |
| 476 printf("var %s_mapping = \n", cls.name.c_str()); | 476 printf("var %s_mapping = \n", cls.name.c_str()); |
| 477 puts("{"); | 477 puts("{"); |
| 478 for (const auto& item : differentiator.mapping) | 478 for (const auto& item : differentiator.mapping) |
| 479 printf(" %i: exports.%s,\n", item.first, item.second.c_str()); | 479 printf(" %i: exports.%s,\n", item.first, item.second.c_str()); |
| 480 puts("};"); | 480 puts("};"); |
| 481 } | 481 } |
| 482 } // namespace bindings_internal | 482 } // namespace bindings_internal |
| 483 ABP_NS_END | 483 |
| 484 | 484 void printBindings() |
| 485 void ABP_NS::printBindings() | |
| 486 { | 485 { |
| 487 bindings_internal::printHelpers(); | 486 bindings_internal::printHelpers(); |
| 488 | 487 |
| 489 for (const auto& cls : classes) | 488 for (const auto& cls : classes) |
| 490 bindings_internal::printClass(cls); | 489 bindings_internal::printClass(cls); |
| 491 for (const auto& cls : classes) | 490 for (const auto& cls : classes) |
| 492 bindings_internal::printClassMapping(cls); | 491 bindings_internal::printClassMapping(cls); |
| 493 } | 492 } |
| 493 |
| 494 ABP_NS_END |
| LEFT | RIGHT |