Search
lxdream.org :: lxdream/src/tools/insparse.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/tools/insparse.c
changeset 420:e6f43dec3cf0
prev359:c588dce7ebde
next561:533f6b478071
author nkeynes
date Sat Oct 06 08:48:47 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix compile warnings
file annotate diff log raw
1.1 --- a/src/tools/insparse.c Thu Aug 23 12:33:27 2007 +0000
1.2 +++ b/src/tools/insparse.c Sat Oct 06 08:48:47 2007 +0000
1.3 @@ -13,6 +13,16 @@
1.4 return rule;
1.5 }
1.6
1.7 +int parse_registers_block( char *buf, int buflen, FILE *f );
1.8 +int parse_rule( char **str, struct rule *rule );
1.9 +int parse_bitstring( char **str, struct rule *rule );
1.10 +int parse_bitoperand( char **str, struct rule *rule );
1.11 +int parse_integer( char **str );
1.12 +int parse_rule_format( char **str, struct rule *rule );
1.13 +int parse_operand_uses( char **str, struct rule *rule );
1.14 +
1.15 +
1.16 +
1.17 struct ruleset *parse_ruleset_file( FILE *f )
1.18 {
1.19 struct ruleset *rules = malloc( sizeof(struct ruleset ) );
1.20 @@ -44,6 +54,7 @@
1.21 break;
1.22 }
1.23 } while( fgets( buf, buflen, f ) != NULL );
1.24 + return 0;
1.25 }
1.26
1.27 /**
1.28 @@ -113,7 +124,6 @@
1.29 int parse_bitoperand( char **str, struct rule *rule )
1.30 {
1.31 char *p = rule->operands[rule->operand_count].name;
1.32 - char tmp[8];
1.33
1.34 if( rule->operand_count == MAX_OPERANDS ) {
1.35 fprintf( stderr, "Maximum operands/rule exceeded (%d) at line %d\n", MAX_OPERANDS, yyline );
1.36 @@ -187,7 +197,7 @@
1.37
1.38 int parse_operand_uses( char **str, struct rule *rule )
1.39 {
1.40 -
1.41 + return 0;
1.42 }
1.43
1.44 void dump_ruleset( struct ruleset *rules, FILE *f )
.