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
2c6fbef8
Commit
2c6fbef8
authored
Sep 02, 2014
by
Andrew Nesbitt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #404 from deepak1556/nan_patch
Removing deprecated NanCString usage
parents
c3698fec
55023b8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
binding.cpp
binding.cpp
+5
-2
No files found.
binding.cpp
View file @
2c6fbef8
...
@@ -23,8 +23,11 @@ char* CreateString(Local<Value> value) {
...
@@ -23,8 +23,11 @@ char* CreateString(Local<Value> value) {
if
(
value
->
IsNull
()
||
!
value
->
IsString
())
{
if
(
value
->
IsNull
()
||
!
value
->
IsString
())
{
return
const_cast
<
char
*>
(
""
);
// return empty string.
return
const_cast
<
char
*>
(
""
);
// return empty string.
}
}
size_t
count
;
return
NanCString
(
value
,
&
count
);
String
::
Utf8Value
string
(
value
);
char
*
str
=
(
char
*
)
malloc
(
string
.
length
()
+
1
);
strcpy
(
str
,
*
string
);
return
str
;
}
}
void
ExtractOptions
(
Local
<
Value
>
optionsValue
,
void
*
cptr
,
sass_context_wrapper
*
ctx_w
,
bool
isFile
)
{
void
ExtractOptions
(
Local
<
Value
>
optionsValue
,
void
*
cptr
,
sass_context_wrapper
*
ctx_w
,
bool
isFile
)
{
...
...
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