MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / gql_skip_ignored

Function gql_skip_ignored

internal/cbm/service_patterns.c:978–988  ·  view source on GitHub ↗

Skip GraphQL "ignored tokens" (whitespace, commas, comments). */

Source from the content-addressed store, hash-verified

976
977/* Skip GraphQL "ignored tokens" (whitespace, commas, comments). */
978static const char *gql_skip_ignored(const char *p) {
979 for (;;) {
980 while (*p == ' ' || *p == '\t' || *p == '\n' || *p == '\r' || *p == ',') {
981 p++;
982 }
983 if (*p != '#') {
984 return p;
985 }
986 p = gql_skip_opaque(p);
987 }
988}
989
990/* Copy the Name token at p (bounded). Returns false when p is not a Name. */
991static bool gql_copy_name(const char *p, char *name_buf, size_t name_sz) {

Callers 1

Calls 1

gql_skip_opaqueFunction · 0.85

Tested by

no test coverage detected