mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 11:47:34 +00:00
Revert "IPCCompiler: Use string hashes for IPC endpoint magic"
This reverts commit 59218007a3
.
This commit is contained in:
parent
53aec3e06d
commit
418bc484e4
25 changed files with 29 additions and 25 deletions
|
@ -1,4 +1,4 @@
|
|||
endpoint LanguageClient
|
||||
endpoint LanguageClient = 8002
|
||||
{
|
||||
AutoCompleteSuggestions(Vector<GUI::AutocompleteProvider::Entry> suggestions) =|
|
||||
DeclarationLocation(GUI::AutocompleteProvider::ProjectLocation location) =|
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
endpoint LanguageServer
|
||||
endpoint LanguageServer = 8001
|
||||
{
|
||||
Greet(String project_root) => ()
|
||||
|
||||
|
|
|
@ -164,7 +164,11 @@ int main(int argc, char** argv)
|
|||
lexer.consume_specific("endpoint");
|
||||
consume_whitespace();
|
||||
endpoints.last().name = lexer.consume_while([](char ch) { return !isspace(ch); });
|
||||
endpoints.last().magic = Traits<String>::hash(endpoints.last().name);
|
||||
consume_whitespace();
|
||||
assert_specific('=');
|
||||
consume_whitespace();
|
||||
auto magic_string = lexer.consume_while([](char ch) { return !isspace(ch) && ch != '{'; });
|
||||
endpoints.last().magic = magic_string.to_int().value();
|
||||
consume_whitespace();
|
||||
assert_specific('{');
|
||||
parse_messages();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue