Plan 9 from Bell Labs’s /usr/web/sources/contrib/de0u/root/sys/src/cmd/divergefs/configyacclex.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.



/** defines the type to store content of each token */
#define YYSTYPE ConfigString

typedef char * ConfigString;

/** yacc's main function that does all the parsing */
int yyparse(void);

/** enum to define yyparse return code */
enum 
{ 
  CONFIG_YACC_SUCCESS = 0,
  CONFIG_YACC_FAIL = 1
};

/** sets the current rule's path */
void config_set_currentpath(char *path);

/** push the setting onto stack */
bool config_push_setting(char *rule, char *setting);

/** tells config that current rule is done */
void config_rule_end(void);

/** tells config to pop two rules up and push as an || rule */
void config_or_setting(void);

/** tells config to pop two rules up and push as an && rule */
void config_and_setting(void);



Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.