Changeset 61ad0cb2 for variable.c


Ignore:
Timestamp:
May 5, 2014, 6:44:45 AM (7 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Parents:
9ae6095 (diff), 94b9ee0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:
Merge 94b9ee074ae76ef2e585605ccf56f030d02378a6 into 9ae6095ed62f67742f9d4dc1008180e8d23e7b12
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    r7dcef03 r94b9ee0  
    10381038CALLER_OWN char *owl_variable_bool_get_tostring_default(const owl_variable *v, void *dummy)
    10391039{
    1040   bool val = owl_variable_get_bool(v);
    1041   if (val == 0) {
    1042     return g_strdup("off");
    1043   } else if (val == 1) {
    1044     return g_strdup("on");
    1045   } else {
    1046     return g_strdup("<invalid>");
    1047   }
     1040  return g_strdup(owl_variable_get_bool(v) ? "on" : "off");
    10481041}
    10491042
Note: See TracChangeset for help on using the changeset viewer.