Ignore:
Timestamp:
Dec 29, 2008, 11:20:11 PM (17 years ago)
Author:
bird
Message:

kmk: Implemented $(for ) and $(while ) loops (C-style). Fixes #73.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/expreval.c

    r2117 r2161  
    20732073 * Evaluates the given if expression.
    20742074 *
    2075  * @returns -1, 0 or 1.
     2075 * @returns -1, 0 or 1. (GNU make conditional check convention, see read.c.)
    20762076 * @retval  -1 if the expression is invalid.
    20772077 * @retval  0 if the expression is true
    20782078 * @retval  1 if the expression is false.
    20792079 *
    2080  * @param   line    The expression. Can modify this as we like.
     2080 * @param   line    The expression.
    20812081 * @param   flocp   The file location, used for errors.
    20822082 */
    2083 int expr_eval_if_conditionals(char *line, const struct floc *flocp)
     2083int expr_eval_if_conditionals(const char *line, const struct floc *flocp)
    20842084{
    20852085    /*
     
    21152115 * @param   expr    The expression.
    21162116 */
    2117 char *expr_eval_to_string(char *o, char *expr)
     2117char *expr_eval_to_string(char *o, const char *expr)
    21182118{
    21192119    /*
Note: See TracChangeset for help on using the changeset viewer.