File: t_pragma.c

package info (click to toggle)
libconvert-binary-c-perl 0.86-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,264 kB
  • sloc: ansic: 47,836; perl: 4,980; yacc: 2,143; makefile: 61
file content (47 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
switch (tokstr[0])
{
  case 'p':
    switch (tokstr[1])
    {
      case 'a':
        if (tokstr[2] == 'c' &&
            tokstr[3] == 'k' &&
            tokstr[4] == PRAGMA_TOKEN_END)
        {                                         /* pack */
          toklen = 4;
          tokval = PACK_TOK;
          goto success;
        }

        goto unknown;

      case 'o':
        if (tokstr[2] == 'p' &&
            tokstr[3] == PRAGMA_TOKEN_END)
        {                                         /* pop  */
          toklen = 3;
          tokval = POP_TOK;
          goto success;
        }

        goto unknown;

      case 'u':
        if (tokstr[2] == 's' &&
            tokstr[3] == 'h' &&
            tokstr[4] == PRAGMA_TOKEN_END)
        {                                         /* push */
          toklen = 4;
          tokval = PUSH_TOK;
          goto success;
        }

        goto unknown;

      default:
        goto unknown;
    }

  default:
    goto unknown;
}