Changeset b27e82f


Ignore:
Timestamp:
Mar 25, 2011, 5:33:45 AM (10 years ago)
Author:
Jason Gross <jgross@mit.edu>
Children:
eaa8f09
Parents:
1a30f05
git-author:
Jason Gross <jgross@mit.edu> (11/21/10 21:45:16)
git-committer:
Jason Gross <jgross@mit.edu> (03/25/11 05:33:45)
Message:
Fixed minor bugs in variable.c

Some functions previously ignored custom variable getters (v->get_fn)
and used v->val.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    rf25df21 rb27e82f  
    688688  }
    689689  if (msg && v->get_tostring_fn) {
    690     tostring = v->get_tostring_fn(v, v->val);
     690    tostring = v->get_tostring_fn(v, v->get_fn(v));
    691691    owl_function_makemsg("%s = '%s'", name, tostring);
    692692    g_free(tostring);
     
    726726  v = owl_dict_find_element(d, name);
    727727  if (v == NULL || !v->get_tostring_fn) return NULL;
    728   return v->get_tostring_fn(v, v->val);
     728  return v->get_tostring_fn(v, v->get_fn(v));
    729729}
    730730
Note: See TracChangeset for help on using the changeset viewer.