#endif
/* #define PRIVATE static */
#endif
/* #define PRIVATE static */
#ifdef TEST
#define MAXRHS 5 /* Set low to exercise exception code */
#ifdef TEST
#define MAXRHS 5 /* Set low to exercise exception code */
-void ConfigPrint(FILE *fp, struct config *cfp)
+PRIVATE void ConfigPrint(FILE *fp, struct config *cfp)
{
struct rule *rp;
int i;
{
struct rule *rp;
int i;
/* Print an action to the given file descriptor. Return FALSE if
** nothing was actually printed.
*/
/* Print an action to the given file descriptor. Return FALSE if
** nothing was actually printed.
*/
-int PrintAction(struct action *ap, FILE *fp, int indent){
+PRIVATE int PrintAction(struct action *ap, FILE *fp, int indent){
int result = 1;
switch( ap->type ){
case SHIFT:
int result = 1;
switch( ap->type ){
case SHIFT:
** The following routine emits code for the destructor for the
** symbol sp
*/
** The following routine emits code for the destructor for the
** symbol sp
*/
-void emit_destructor_code(FILE *out, struct symbol *sp, struct lemon *lemp,
+PRIVATE void emit_destructor_code(FILE *out, struct symbol *sp, struct lemon *lemp,
/*
** Return TRUE (non-zero) if the given symbol has a distructor.
*/
/*
** Return TRUE (non-zero) if the given symbol has a distructor.
*/
-int has_destructor(struct symbol *sp, struct lemon *lemp)
+PRIVATE int has_destructor(struct symbol *sp, struct lemon *lemp)
{
int ret;
if( sp->type==TERMINAL ){
{
int ret;
if( sp->type==TERMINAL ){
** union, also set the ".dtnum" field of every terminal and nonterminal
** symbol.
*/
** union, also set the ".dtnum" field of every terminal and nonterminal
** symbol.
*/
+PRIVATE void print_stack_union(
FILE *out, /* The output stream */
struct lemon *lemp, /* The main info structure for this parser */
int *plineno, /* Pointer to the line number */
FILE *out, /* The output stream */
struct lemon *lemp, /* The main info structure for this parser */
int *plineno, /* Pointer to the line number */