password_items:
/* empty */ { }
- | FROM datetime ';' password_items { last_password_item->from = $2; }
- | TO datetime ';' password_items { last_password_item->to = $2; }
- | ID NUM ';' password_items { last_password_item->id = $2; }
+ | FROM datetime password_items { last_password_item->from = $2; }
+ | TO datetime password_items { last_password_item->to = $2; }
+ | ID NUM password_items { last_password_item->id = $2; }
;
password_list:
/* empty */ { $$ = NULL; }
- | '{' password_begin ';' password_items '}' password_list {
- last_password_item->next = $6;
+ | password_begin password_items ';' password_list {
+ last_password_item->next = $4;
+ $$ = last_password_item;
}
;
* Can be freely distributed and used under the terms of the GNU GPL.
*/
+#ifndef PASSWORD_H
+#define PASSWORD_H
struct password_item {
struct password_item *next;
char *password;
};
extern struct password_item *last_password_item;
+#endif