version 1.1.1.1, 2012/02/21 23:37:58
|
version 1.1.1.2, 2014/06/15 19:53:29
|
Line 49 static int debug = 0;
|
Line 49 static int debug = 0;
|
#endif |
#endif |
static int noout = 0; |
static int noout = 0; |
static int tree = 0; |
static int tree = 0; |
#ifdef HAVE_SYS_MMAN_H | #ifdef HAVE_MMAP |
static int memory = 0; |
static int memory = 0; |
#endif |
#endif |
|
|
Line 65 int main(int argc, char **argv) {
|
Line 65 int main(int argc, char **argv) {
|
debug++; |
debug++; |
else |
else |
#endif |
#endif |
#ifdef HAVE_SYS_MMAN_H | #ifdef HAVE_MMAP |
if ((!strcmp(argv[i], "-memory")) || (!strcmp(argv[i], "--memory"))) { |
if ((!strcmp(argv[i], "-memory")) || (!strcmp(argv[i], "--memory"))) { |
memory++; |
memory++; |
} else |
} else |
Line 84 int main(int argc, char **argv) {
|
Line 84 int main(int argc, char **argv) {
|
if (schema == NULL) { |
if (schema == NULL) { |
xmlRelaxNGParserCtxtPtr ctxt; |
xmlRelaxNGParserCtxtPtr ctxt; |
|
|
#ifdef HAVE_SYS_MMAN_H | #ifdef HAVE_MMAP |
if (memory) { |
if (memory) { |
int fd; |
int fd; |
struct stat info; |
struct stat info; |
const char *base; |
const char *base; |
if (stat(argv[i], &info) < 0) | if (stat(argv[i], &info) < 0) |
break; |
break; |
if ((fd = open(argv[i], O_RDONLY)) < 0) |
if ((fd = open(argv[i], O_RDONLY)) < 0) |
break; |
break; |
Line 174 int main(int argc, char **argv) {
|
Line 174 int main(int argc, char **argv) {
|
#endif |
#endif |
printf("\t--noout : do not print the result\n"); |
printf("\t--noout : do not print the result\n"); |
printf("\t--tree : print the intermediate Relax-NG document tree\n"); |
printf("\t--tree : print the intermediate Relax-NG document tree\n"); |
#ifdef HAVE_SYS_MMAN_H | #ifdef HAVE_MMAP |
printf("\t--memory : test the schemas in memory parsing\n"); |
printf("\t--memory : test the schemas in memory parsing\n"); |
#endif |
#endif |
} |
} |