VirtualBox

Changeset 1958 in kBuild


Ignore:
Timestamp:
Oct 26, 2008 6:38:35 PM (16 years ago)
Author:
bird
Message:

function.c: func_eval_optimize_variable - display error if the variable is of the wrong kind.

File:
1 edited

Legend:

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

    r1957 r1958  
    16901690    {
    16911691      struct variable *v = lookup_variable (argv[i], strlen (argv[i]));
    1692 #ifdef CONFIG_WITH_RDONLY_VARIABLE_VALUE
     1692# ifdef CONFIG_WITH_RDONLY_VARIABLE_VALUE
    16931693      if (v && !v->origin != o_automatic && !v->rdonly_val)
    1694 #else
     1694# else
    16951695      if (v && !v->origin != o_automatic)
    1696 #endif
     1696# endif
    16971697        {
    16981698          char *eos, *src;
     
    17431743            }
    17441744        }
     1745      else if (v)
     1746        error (NILF, _("$(%s ): variable `%s' is of the wrong type\n"), funcname, v->name);
    17451747    }
    17461748
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette