Diff for /embedaddon/libxml2/testSchemas.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:37:58 version 1.1.1.2, 2014/06/15 19:53:29
Line 49 Line 49
 static int debug = 0;  static int debug = 0;
 #endif  #endif
 static int noout = 0;  static int noout = 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 80  int main(int argc, char **argv) { Line 80  int main(int argc, char **argv) {
             if (schema == NULL) {              if (schema == NULL) {
                 xmlSchemaParserCtxtPtr ctxt;                  xmlSchemaParserCtxtPtr 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 164  int main(int argc, char **argv) { Line 164  int main(int argc, char **argv) {
         printf("\t--debug : dump a debug tree of the in-memory document\n");          printf("\t--debug : dump a debug tree of the in-memory document\n");
 #endif  #endif
         printf("\t--noout : do not print the result\n");          printf("\t--noout : do not print the result\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
     }      }

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>