Changeset 94b9ee0
- Timestamp:
- May 5, 2014, 6:44:00 AM (11 years ago)
- Branches:
- master, release-1.10
- Children:
- ea23e6d, e8db357, 5f3f1e4, 61ad0cb2
- Parents:
- 18380fd
- git-author:
- Anders Kaseorg <andersk@mit.edu> (04/23/14 03:02:13)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (05/05/14 06:44:00)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
variable.c
r7dcef03 r94b9ee0 1038 1038 CALLER_OWN char *owl_variable_bool_get_tostring_default(const owl_variable *v, void *dummy) 1039 1039 { 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"); 1048 1041 } 1049 1042
Note: See TracChangeset
for help on using the changeset viewer.