Changeset 3b9ca71 for commands.c


Ignore:
Timestamp:
Feb 19, 2013, 8:29:38 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10
Children:
4584d1f
Parents:
69f74c2
git-author:
David Benjamin <davidben@mit.edu> (06/09/12 23:16:53)
git-committer:
David Benjamin <davidben@mit.edu> (02/19/13 20:29:38)
Message:
Allow perl variables to participate in argumentless set/unset
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r353719a r3b9ca71  
    16041604  if (v == NULL) {
    16051605    if (!silent) owl_function_error("Unknown variable '%s'", var);
    1606   } else if (requirebool && owl_variable_get_type(v) != OWL_VARIABLE_BOOL) {
    1607     // FIXME: The above won't work when we make perl variables OWL_VARIABLE_SV
     1606  } else if (requirebool && !v->takes_on_off) {
    16081607    if (!silent) owl_function_error("Variable '%s' is not a boolean", var);
    16091608  } else {
     
    16341633  if (v == NULL) {
    16351634    if (!silent) owl_function_error("Unknown variable '%s'", var);
    1636   } else if (owl_variable_get_type(v) != OWL_VARIABLE_BOOL) {
    1637     // FIXME: The above won't work when we make perl variables OWL_VARIABLE_SV
     1635  } else if (!v->takes_on_off) {
    16381636    if (!silent) owl_function_error("Variable '%s' is not a boolean", var);
    16391637  } else {
Note: See TracChangeset for help on using the changeset viewer.