update parser
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 6 Mar 2006 03:57:05 +0000 (03:57 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 6 Mar 2006 03:57:05 +0000 (03:57 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1575 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/parser.c
ltt/branches/poly/ltt/parser.h

index bcae82e1a4ab89e62948c998a6d7d088bf88c22f..3183367e7ff16a97e479c7d52dcd1b6ce540d5e0 100644 (file)
@@ -289,6 +289,7 @@ void getFacilityAttributes(parse_file_t *in, facility_t *fac)
   
   fac->name = NULL;
   fac->arch = NULL;
+       fac->user = 0;
 
   while(1) {
     token = getToken(in); 
@@ -303,6 +304,8 @@ void getFacilityAttributes(parse_file_t *in, facility_t *fac)
       if(car == EOF) in->error(in,"name was expected");
       else if(car == '\"') fac->name = allocAndCopy(getQuotedString(in));
       else fac->name = allocAndCopy(getName(in));
+                       if(!strncmp(fac->name, "user_", sizeof("user_")) == 0)
+                               fac->user = 1;
     } else if(!strcmp("arch", token)) {
       getEqual(in);
       car = seekNextChar(in);
index 70e89cb0ffc33064879442073937d8366e471c6b..c039404990990a4b0aacee1fb6a40e6cdd91f0ed 100644 (file)
@@ -145,6 +145,7 @@ typedef struct _facility {
   sequence_t unnamed_types; //FIXME : remove
   table_t named_types;
        unsigned int checksum;
+       int     user;           /* Is this a userspace facility ? */
 } facility_t;
 
 int getSizeindex(unsigned int value);
This page took 0.024535 seconds and 4 git commands to generate.