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
ea2b7c13
Commit
ea2b7c13
authored
Oct 25, 2012
by
Gong Hao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
cef9e341
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
binding.cpp
binding.cpp
+5
-2
package.json
package.json
+1
-1
No files found.
binding.cpp
View file @
ea2b7c13
...
...
@@ -48,11 +48,14 @@ Handle<Value> Render(const Arguments& args) {
sass_context
*
ctx
=
sass_new_context
();
String
::
AsciiValue
astr
(
args
[
0
]);
Local
<
Function
>
callback
=
Local
<
Function
>::
Cast
(
args
[
1
]);
String
::
AsciiValue
bstr
(
args
[
2
]);
Integer
*
tint
=
Integer
::
Cast
(
*
args
[
3
]);
ctx
->
source_string
=
new
char
[
strlen
(
*
astr
)
+
1
];
strcpy
(
ctx
->
source_string
,
*
astr
);
ctx
->
options
.
include_paths
=
args
[
2
];
ctx
->
options
.
output_style
=
args
[
3
];
ctx
->
options
.
include_paths
=
new
char
[
strlen
(
*
bstr
)
+
1
];
strcpy
(
ctx
->
options
.
include_paths
,
*
bstr
);
ctx
->
options
.
output_style
=
tint
->
Value
();
ctx
->
callback
=
Persistent
<
Function
>::
New
(
callback
);
ctx
->
request
.
data
=
ctx
;
...
...
package.json
View file @
ea2b7c13
...
...
@@ -7,7 +7,7 @@
"main"
:
"./sass.js"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"git://github.com/
gonghao
/node-sass.git"
"url"
:
"git://github.com/
andrew
/node-sass.git"
},
"scripts"
:
{
"install"
:
"node rebuild.js"
...
...
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