genevent fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 10 Mar 2006 04:36:41 +0000 (04:36 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 10 Mar 2006 04:36:41 +0000 (04:36 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1663 04897980-b3bd-0310-b5e0-8ef037075253

genevent-new/parser.c

index 3d454a6afde81ea7a874c5c4ae1bbd466070bf5a..1ab1b73bf7bf256ac23f468d95482c31584cfc33 100644 (file)
@@ -234,18 +234,18 @@ void getTypeAttributes(parse_file_t *in, type_descriptor_t *t,
        else token = getName(in);
                        if(!strcmp("network", token)) {
                        t->network = 1;
+                       }
                } else if(!strcmp("write",token)) {
        getEqual(in);
        car = seekNextChar(in);
        if(car == EOF) in->error(in,"write type was expected (custom?)");
        else if(car == '\"') token = getQuotedString(in);
        else token = getName(in);
-                       if(!strcmp("custom", token))
-                       t->network = 1;
+                       if(!strcmp("custom", token)) {
+                       t->custom_write = 1;
+                       }
          }
        }
-               
-  }
 }
 
 /**************************************************************************
@@ -350,7 +350,7 @@ void getFacilityAttributes(parse_file_t *in, facility_t *fac)
     } else if(!strcmp("arch", token)) {
       getEqual(in);
       car = seekNextChar(in);
-      if(car == '\"') fac->name = allocAndCopy(getQuotedString(in));
+      if(car == '\"') fac->arch = allocAndCopy(getQuotedString(in));
                        else fac->arch = allocAndCopy(getName(in));
                }
   }
This page took 0.025079 seconds and 4 git commands to generate.