Lines Matching defs:directive
455 char *directive;
483 find_directive (directive)
484 char *directive;
488 for (i = 0; handlers[i].directive; i++)
489 if (strcmp (handlers[i].directive, directive) == 0)
582 char *directive;
585 /* Isolate the directive. */
588 directive = xmalloc (j);
589 strncpy (directive, line + 1, j - 1);
590 directive[j -1] = '\0';
593 handler = find_directive (directive);
597 line_error (defs, "Unknown directive `%s'", directive);
598 free (directive);
607 /* Call the directive handler with the FILE, and ARGS. */
608 (*(handler->function)) (directive, defs, line + j);
610 free (directive);
736 FOR_WHOM is the name of the directive which needs the argument.
737 DEFS is the DEF_FILE in which the directive is found.
756 must_be_building (directive, defs)
757 char *directive;
761 line_error (defs, "%s must be inside of a $BUILTIN block", directive);
766 current_builtin (directive, defs)
767 char *directive;
770 must_be_building (directive, defs);
799 /* How to handle the $BUILTIN directive. */
847 /* How to handle the $FUNCTION directive. */
860 line_error (defs, "syntax error: no current builtin for $FUNCTION directive");
872 /* How to handle the $DOCNAME directive. */
892 /* How to handle the $SHORT_DOC directive. */
912 /* How to handle the $COMMENT directive. */
922 /* How to handle the $DEPENDS_ON directive. */
943 /* How to handle the $PRODUCES directive. */
980 /* How to handle the $END directive. */