~ubuntu-branches/ubuntu/gutsy/gnumeric/gutsy-201105201701

« back to all changes in this revision

Viewing changes to plugins/sample_datasource/sample_datasource.c

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2007-03-08 16:16:45 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070308161645-uotkhmwywh7dkur4
Tags: 1.7.8-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
typedef struct {
57
57
        char       *name;
58
 
        float       value;
 
58
        gnm_float   value;
59
59
        gboolean    valid;
60
60
        GHashTable *deps;
61
61
} WatchedValue;
119
119
                char *value_str = strchr (buf, ':');
120
120
 
121
121
                if (value_str != NULL) {
122
 
                        float val;
 
122
                        gnm_float val;
123
123
                        char *end;
124
124
                        *value_str++ = '\0';
125
125
 
126
 
                        /* pre clear incase something left a mess */
127
 
                        errno = 0;
128
 
                        val = strtod (value_str, &end);
 
126
                        val = gnm_strto (value_str, &end);
129
127
                        if (sym != end && errno == 0) {
130
128
                                WatchedValue *wv = watched_value_fetch (sym);
131
129
                                wv->valid = TRUE;