/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/py.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-10-12 23:59:17 UTC
  • Revision ID: csa@suren.me-20151012235917-s5oi62kmu8khjl0t
Support writting register views

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
 
9
9
#include "pci.h"
 
10
#include "debug.h"
10
11
#include "pcilib.h"
11
12
#include "py.h"
12
13
#include "error.h"
167
168
        return PCILIB_ERROR_FAILED;
168
169
    }
169
170
 
 
171
    pcilib_debug(VIEWS, "Evaluating a Python string \'%s\' to %lf=\'%s\'", codestr, PyFloat_AsDouble(obj), code);
170
172
    return pcilib_set_value_from_float(ctx, value, PyFloat_AsDouble(obj));
171
173
}