Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
1a441d56
Commit
1a441d56
authored
Jul 24, 2013
by
Dean Mao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #129 from dean-m/master
fix segfaults
parents
e9f8807a
6f45b2a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
binding.cpp
binding.cpp
+3
-0
No files found.
binding.cpp
View file @
1a441d56
...
...
@@ -121,6 +121,7 @@ Handle<Value> Render(const Arguments& args) {
ctx
->
options
.
include_paths
=
new
char
[
strlen
(
*
bstr
)
+
1
];
strcpy
(
ctx
->
options
.
include_paths
,
*
bstr
);
// ctx->options.output_style = SASS_STYLE_NESTED;
ctx
->
options
.
image_path
=
new
char
[
0
];
ctx
->
options
.
output_style
=
args
[
4
]
->
Int32Value
();
ctx
->
options
.
source_comments
=
args
[
5
]
->
Int32Value
();
ctx_w
->
ctx
=
ctx
;
...
...
@@ -147,6 +148,7 @@ Handle<Value> RenderSync(const Arguments& args) {
ctx
->
options
.
include_paths
=
new
char
[
strlen
(
*
bstr
)
+
1
];
strcpy
(
ctx
->
options
.
include_paths
,
*
bstr
);
ctx
->
options
.
output_style
=
args
[
2
]
->
Int32Value
();
ctx
->
options
.
image_path
=
new
char
[
0
];
ctx
->
options
.
source_comments
=
args
[
3
]
->
Int32Value
();
sass_compile
(
ctx
);
...
...
@@ -227,6 +229,7 @@ Handle<Value> RenderFile(const Arguments& args) {
strcpy
(
ctx
->
options
.
include_paths
,
*
bstr
);
// ctx->options.output_style = SASS_STYLE_NESTED;
ctx
->
options
.
output_style
=
args
[
4
]
->
Int32Value
();
ctx
->
options
.
image_path
=
new
char
[
0
];
ctx
->
options
.
source_comments
=
args
[
5
]
->
Int32Value
();
ctx_w
->
ctx
=
ctx
;
ctx_w
->
callback
=
Persistent
<
Function
>::
New
(
callback
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment