| 1036 | } |
| 1037 | |
| 1038 | Chat_command *GetChatCommandFromQueue() { |
| 1039 | static Chat_command response_cmd; |
| 1040 | Chat_command *tmp_cmd; |
| 1041 | if (!Firstcommand) |
| 1042 | return nullptr; |
| 1043 | Currcommand = Firstcommand; |
| 1044 | memcpy(&response_cmd, Currcommand, sizeof(Chat_command)); |
| 1045 | tmp_cmd = Currcommand->next; |
| 1046 | DLLmem_free(Firstcommand); |
| 1047 | Firstcommand = tmp_cmd; |
| 1048 | return &response_cmd; |
| 1049 | } |
| 1050 | |
| 1051 | void FlushChatCommandQueue() { |
| 1052 | Chat_command *tmp_cmd; |
no outgoing calls
no test coverage detected