Changeset cce9369 for variable.c
- Timestamp:
- Sep 30, 2011, 8:14:50 AM (13 years ago)
- Children:
- e21b921
- Parents:
- b54b06a
- git-author:
- Jason Gross <jgross@mit.edu> (07/12/11 19:20:46)
- git-committer:
- Jason Gross <jgross@mit.edu> (09/30/11 08:14:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
variable.c
rc0e728a rcce9369 665 665 } 666 666 667 void owl_variable_dict_newvar_string(owl_vardict *vd, const char *name, const char *summ, const char *desc, const char *initval )667 void owl_variable_dict_newvar_string(owl_vardict *vd, const char *name, const char *summ, const char *desc, const char *initval, const char *validsettings) 668 668 { 669 669 owl_variable *old = owl_variable_get_var(vd, name); … … 671 671 if (old && owl_variable_get_type(old) == OWL_VARIABLE_STRING) 672 672 oldval = owl_variable_get_tostring(old); 673 owl_variable *var = owl_variable_newvar(name, summ, desc, "<string>", OWL_VARIABLE_STRING);673 owl_variable *var = owl_variable_newvar(name, summ, desc, validsettings, OWL_VARIABLE_STRING); 674 674 var->pval_default = g_strdup(initval); 675 675 owl_variable_init_defaults(var); … … 680 680 } 681 681 682 void owl_variable_dict_newvar_int(owl_vardict *vd, const char *name, const char *summ, const char *desc, int initval )682 void owl_variable_dict_newvar_int(owl_vardict *vd, const char *name, const char *summ, const char *desc, int initval, const char *validsettings) 683 683 { 684 684 owl_variable *old = owl_variable_get_var(vd, name); … … 686 686 if (old && owl_variable_get_type(old) == OWL_VARIABLE_INT) 687 687 oldval = owl_variable_get_int(old); 688 owl_variable *var = owl_variable_newvar(name, summ, desc, "<int>", OWL_VARIABLE_INT);688 owl_variable *var = owl_variable_newvar(name, summ, desc, validsettings, OWL_VARIABLE_INT); 689 689 var->ival_default = initval; 690 690 owl_variable_init_defaults(var);
Note: See TracChangeset
for help on using the changeset viewer.