C Code "[0 … 255] From ="...What's that?

Asked 2 years ago, Updated 2 years ago, 31 views

    static void *gostruct[] =
    {
        [0 ... 255] = &&l_bad,
        ['\t'] = &&l_loop, [' '] = &&l_loop, ['\r'] = &&l_loop, ['\n'] = &&l_loop,
        ['"'] = &&l_qup,
        [':'] = &&l_loop, [','] = &&l_loop,
        ['['] = &&l_up, [']'] = &&l_down, // tracking [] and {} individually would allow fuller validation but is really messy
        ['{'] = &&l_up, ['}'] = &&l_down,
        ['-'] = &&l_bare, [48 ... 57] = &&l_bare, // 0-9
        [65 ... 90] = &&l_bare, // A-Z
        [97 ... 122] = &&l_bare // a-z
    };

........
.......

l_bad:
    *vlen = cur - json; // where error'd
    return 0;

........
........

Source: [here]

What is "..." and "&&l_bad" in this code? I can't search for moles and it's frustrating.

c gcc-extension

2022-09-22 22:18

1 Answers

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.