MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / FetchFlagsTask_Ensure

Function FetchFlagsTask_Ensure

src/LWeb.c:654–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654static void FetchFlagsTask_Ensure(void) {
655 if (flagsCount < flagsCapacity) return;
656 flagsCapacity = flagsCount + 10;
657
658 if (flags) {
659 flags = (struct Flag*)Mem_Realloc(flags, flagsCapacity, sizeof(struct Flag), "flags");
660 } else {
661 flags = (struct Flag*)Mem_Alloc(flagsCapacity, sizeof(struct Flag), "flags");
662 }
663}
664
665void FetchFlagsTask_Add(const struct ServerInfo* server) {
666 int i;

Callers 1

FetchFlagsTask_AddFunction · 0.85

Calls 2

Mem_ReallocFunction · 0.85
Mem_AllocFunction · 0.85

Tested by

no test coverage detected