From 383d64dac9b5130311476c125d77224151e45a6f Mon Sep 17 00:00:00 2001 From: compudj Date: Mon, 6 Mar 2006 03:57:05 +0000 Subject: [PATCH] update parser git-svn-id: http://ltt.polymtl.ca/svn@1575 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/parser.c | 3 +++ ltt/branches/poly/ltt/parser.h | 1 + 2 files changed, 4 insertions(+) diff --git a/ltt/branches/poly/ltt/parser.c b/ltt/branches/poly/ltt/parser.c index bcae82e1..3183367e 100644 --- a/ltt/branches/poly/ltt/parser.c +++ b/ltt/branches/poly/ltt/parser.c @@ -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); diff --git a/ltt/branches/poly/ltt/parser.h b/ltt/branches/poly/ltt/parser.h index 70e89cb0..c0394049 100644 --- a/ltt/branches/poly/ltt/parser.h +++ b/ltt/branches/poly/ltt/parser.h @@ -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); -- 2.34.1