File: LibANTLR.prefix

package info (click to toggle)
openvrml 0.11.2-1.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 10,284 kB
  • ctags: 15,074
  • sloc: cpp: 70,649; ansic: 47,094; xml: 17,753; sh: 6,547; makefile: 647
file content (18 lines) | stat: -rw-r--r-- 349 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdlib.h>
#include <iostream.h>

#define ANTLR_C_USING(x)	using std:: ## x
#define NO_TEMPLATE_PARTS

extern void exit();

inline int strcasecmp(const char *s1, const char *s2)
{
  while (true) {
    char c1 = tolower(*s1++),
    c2 = tolower(*s2++);
    if (c1 < c2) return -1;
    if (c1 > c2) return 1;
    if (c1 == 0) return 0;
  }
}