@@ -39,13 +39,13 @@ static PyObject *
3939PySass_compile_string (PyObject *self, PyObject *args) {
4040 struct sass_context *context;
4141 char *string, *include_paths, *image_path;
42- int output_style, source_comments;
42+ int output_style, source_comments, precision ;
4343 PyObject *result;
4444
4545 if (!PyArg_ParseTuple (args,
46- PySass_IF_PY3 (" yiiyy " , " siiss " ),
46+ PySass_IF_PY3 (" yiiyyi " , " siissi " ),
4747 &string, &output_style, &source_comments,
48- &include_paths, &image_path)) {
48+ &include_paths, &image_path, &precision )) {
4949 return NULL ;
5050 }
5151
@@ -55,6 +55,7 @@ PySass_compile_string(PyObject *self, PyObject *args) {
5555 context->options .source_comments = source_comments;
5656 context->options .include_paths = include_paths;
5757 context->options .image_path = image_path;
58+ context->options .precision = precision;
5859
5960 sass_compile (context);
6061
@@ -71,13 +72,13 @@ static PyObject *
7172PySass_compile_filename (PyObject *self, PyObject *args) {
7273 struct sass_file_context *context;
7374 char *filename, *include_paths, *image_path;
74- int output_style, source_comments, error_status;
75+ int output_style, source_comments, error_status, precision ;
7576 PyObject *source_map_filename, *result;
7677
7778 if (!PyArg_ParseTuple (args,
78- PySass_IF_PY3 (" yiiyyO " , " siissO " ),
79+ PySass_IF_PY3 (" yiiyyiO " , " siissiO " ),
7980 &filename, &output_style, &source_comments,
80- &include_paths, &image_path, &source_map_filename)) {
81+ &include_paths, &image_path, &precision, & source_map_filename)) {
8182 return NULL ;
8283 }
8384
@@ -99,6 +100,7 @@ PySass_compile_filename(PyObject *self, PyObject *args) {
99100 context->options .source_comments = source_comments;
100101 context->options .include_paths = include_paths;
101102 context->options .image_path = image_path;
103+ context->options .precision = precision;
102104
103105 sass_compile_file (context);
104106
@@ -119,14 +121,14 @@ static PyObject *
119121PySass_compile_dirname (PyObject *self, PyObject *args) {
120122 struct sass_folder_context *context;
121123 char *search_path, *output_path, *include_paths, *image_path;
122- int output_style, source_comments;
124+ int output_style, source_comments, precision ;
123125 PyObject *result;
124126
125127 if (!PyArg_ParseTuple (args,
126- PySass_IF_PY3 (" yyiyy " , " ssiss " ),
128+ PySass_IF_PY3 (" yyiiyyi " , " ssiissi " ),
127129 &search_path, &output_path,
128130 &output_style, &source_comments,
129- &include_paths, &image_path)) {
131+ &include_paths, &image_path, precision )) {
130132 return NULL ;
131133 }
132134
@@ -137,6 +139,7 @@ PySass_compile_dirname(PyObject *self, PyObject *args) {
137139 context->options .source_comments = source_comments;
138140 context->options .include_paths = include_paths;
139141 context->options .image_path = image_path;
142+ context->options .precision = precision;
140143
141144 sass_compile_folder (context);
142145
0 commit comments