diff --git a/SplitSource.php b/SplitSource.php index 605ee0121..35117f779 100644 --- a/SplitSource.php +++ b/SplitSource.php @@ -75,6 +75,7 @@ function split_file($file, $chunks, $undo) { $target_depth = 1 + $is_generated; $is_static = false; $in_define = false; + $in_comment = false; $current = ''; $common = ''; $functions = array(); @@ -113,6 +114,17 @@ function split_file($file, $chunks, $undo) { continue; } + if ($in_comment && strpos($line, '*/') === 0) { + $in_comment = false; + continue; + } + if (strpos($line, '/*') === 0) { + $in_comment = true; + } + if ($in_comment) { + continue; + } + if ($depth !== $target_depth) { $common .= $line; continue; @@ -285,7 +297,7 @@ function split_file($file, $chunks, $undo) { '[>](td_db[(][)]|get_td_db_impl[(])|TdDb[^A-Za-z]' => 'TdDb', 'TopDialogCategory|get_top_dialog_category' => 'TopDialogCategory', 'top_dialog_manager[_(-][^.]|TopDialogManager' => 'TopDialogManager', - 'updates_manager[_(-][^.]|UpdatesManager|get_difference[)]' => 'UpdatesManager', + 'updates_manager[_(-][^.]|UpdatesManager|get_difference[)]|updateSentMessage|dummyUpdate' => 'UpdatesManager', 'WebPageId(Hash)?' => 'WebPageId', 'web_pages_manager[_(-][^.]|WebPagesManager' => 'WebPagesManager'); diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index a6fd56ab6..f02c8d1d7 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -522,8 +522,6 @@ class SaveAppLogQuery : public Td::ResultHandler { } }; -/*** Td ***/ -/** Td queries **/ class TestQuery : public Td::ResultHandler { public: explicit TestQuery(uint64 request_id) : request_id_(request_id) {