Changeset 779bd3d for variable.c


Ignore:
Timestamp:
Mar 27, 2011, 12:11:26 AM (11 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
f203cad
Parents:
a2a8833
git-author:
Jason Gross <jgross@mit.edu> (11/21/10 21:45:16)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/27/11 00:11:26)
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 r779bd3d  
    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.