Changeset e5c9b14a for variable.c
- Timestamp:
- Aug 15, 2009, 7:08:19 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- ff7e289
- Parents:
- 636b137
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 00:34:17)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
variable.c
r64735f0 re5c9b14a 614 614 615 615 /* free the list with owl_variable_dict_namelist_free */ 616 void owl_variable_dict_get_names( owl_vardict *d, owl_list *l) {616 void owl_variable_dict_get_names(const owl_vardict *d, owl_list *l) { 617 617 owl_dict_get_keys(d, l); 618 618 } … … 702 702 } 703 703 704 int owl_variable_get_tostring( owl_vardict *d, const char *name, char *buf, int bufsize) {704 int owl_variable_get_tostring(const owl_vardict *d, const char *name, char *buf, int bufsize) { 705 705 owl_variable *v; 706 706 if (!name) return(-1); … … 710 710 } 711 711 712 int owl_variable_get_default_tostring( owl_vardict *d, const char *name, char *buf, int bufsize) {712 int owl_variable_get_default_tostring(const owl_vardict *d, const char *name, char *buf, int bufsize) { 713 713 owl_variable *v; 714 714 if (!name) return(-1); … … 722 722 } 723 723 724 owl_variable *owl_variable_get_var( owl_vardict *d, const char *name, int require_type) {724 owl_variable *owl_variable_get_var(const owl_vardict *d, const char *name, int require_type) { 725 725 owl_variable *v; 726 726 if (!name) return(NULL); … … 731 731 732 732 /* returns a reference */ 733 const void *owl_variable_get( owl_vardict *d, const char *name, int require_type) {733 const void *owl_variable_get(const owl_vardict *d, const char *name, int require_type) { 734 734 owl_variable *v = owl_variable_get_var(d, name, require_type); 735 735 if(v == NULL) return NULL; … … 738 738 739 739 /* returns a reference */ 740 const char *owl_variable_get_string( owl_vardict *d, const char *name) {740 const char *owl_variable_get_string(const owl_vardict *d, const char *name) { 741 741 return owl_variable_get(d,name, OWL_VARIABLE_STRING); 742 742 } 743 743 744 744 /* returns a reference */ 745 const void *owl_variable_get_other( owl_vardict *d, const char *name) {745 const void *owl_variable_get_other(const owl_vardict *d, const char *name) { 746 746 return owl_variable_get(d,name, OWL_VARIABLE_OTHER); 747 747 } 748 748 749 int owl_variable_get_int( owl_vardict *d, const char *name) {749 int owl_variable_get_int(const owl_vardict *d, const char *name) { 750 750 const int *pi; 751 751 pi = owl_variable_get(d,name,OWL_VARIABLE_INT); … … 754 754 } 755 755 756 int owl_variable_get_bool( owl_vardict *d, const char *name) {756 int owl_variable_get_bool(const owl_vardict *d, const char *name) { 757 757 const int *pi; 758 758 pi = owl_variable_get(d,name,OWL_VARIABLE_BOOL); … … 761 761 } 762 762 763 void owl_variable_describe( owl_vardict *d, const char *name, owl_fmtext *fm) {763 void owl_variable_describe(const owl_vardict *d, const char *name, owl_fmtext *fm) { 764 764 char defaultbuf[50]; 765 765 char buf[1024]; … … 785 785 } 786 786 787 void owl_variable_get_help( owl_vardict *d, const char *name, owl_fmtext *fm) {787 void owl_variable_get_help(const owl_vardict *d, const char *name, owl_fmtext *fm) { 788 788 char buff[1024]; 789 789 int bufflen = 1023;
Note: See TracChangeset
for help on using the changeset viewer.