Changeset fa981f3 for variable.c
- Timestamp:
- Jul 3, 2011, 8:43:07 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 785ee77
- Parents:
- 1dab38e
- git-author:
- Jason Gross <jgross@mit.edu> (06/27/11 02:04:09)
- git-committer:
- Jason Gross <jgross@mit.edu> (07/03/11 20:43:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
variable.c
r1dab38e rfa981f3 770 770 771 771 const char *owl_variable_get_validsettings(const owl_variable *v) { 772 if (v->validsettings) { 773 return v->validsettings; 774 } else { 775 return ""; 776 } 772 return v->validsettings; 777 773 } 778 774 … … 796 792 return -1; 797 793 } 798 if (msg && v->get_tostring_fn) {794 if (msg) { 799 795 tostring = v->get_tostring_fn(v, v->get_fn(v)); 800 796 if (tostring) … … 847 843 owl_variable *owl_variable_get_var(const owl_vardict *d, const char *name) 848 844 { 849 owl_variable *v; 850 if (!name) return(NULL); 851 v = owl_dict_find_element(d, name); 852 if (v == NULL || !v->get_fn) return NULL; 853 return v; 845 return owl_dict_find_element(d, name); 854 846 } 855 847
Note: See TracChangeset
for help on using the changeset viewer.