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
5fb94280
Commit
5fb94280
authored
May 21, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the clients of the new Document interface.
parent
df5191ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
sass_interface.cpp
sass_interface.cpp
+5
-3
No files found.
sass_interface.cpp
View file @
5fb94280
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
#include "sass_interface.h"
#include "sass_interface.h"
extern
"C"
{
extern
"C"
{
using
namespace
std
;
using
namespace
std
;
sass_context
*
sass_new_context
()
sass_context
*
sass_new_context
()
{
return
(
sass_context
*
)
calloc
(
1
,
sizeof
(
sass_context
));
}
{
return
(
sass_context
*
)
calloc
(
1
,
sizeof
(
sass_context
));
}
...
@@ -64,7 +64,8 @@ extern "C" {
...
@@ -64,7 +64,8 @@ extern "C" {
using
namespace
Sass
;
using
namespace
Sass
;
try
{
try
{
Context
cpp_ctx
(
c_ctx
->
options
.
include_paths
);
Context
cpp_ctx
(
c_ctx
->
options
.
include_paths
);
Document
doc
(
0
,
c_ctx
->
input_string
,
cpp_ctx
);
// Document doc(0, c_ctx->input_string, cpp_ctx);
Document
doc
(
Document
::
make_from_source_chars
(
cpp_ctx
,
c_ctx
->
source_string
));
c_ctx
->
output_string
=
process_document
(
doc
,
c_ctx
->
options
.
output_style
);
c_ctx
->
output_string
=
process_document
(
doc
,
c_ctx
->
options
.
output_style
);
c_ctx
->
error_message
=
0
;
c_ctx
->
error_message
=
0
;
c_ctx
->
error_status
=
0
;
c_ctx
->
error_status
=
0
;
...
@@ -98,7 +99,8 @@ extern "C" {
...
@@ -98,7 +99,8 @@ extern "C" {
using
namespace
Sass
;
using
namespace
Sass
;
try
{
try
{
Context
cpp_ctx
(
c_ctx
->
options
.
include_paths
);
Context
cpp_ctx
(
c_ctx
->
options
.
include_paths
);
Document
doc
(
c_ctx
->
input_path
,
0
,
cpp_ctx
);
// Document doc(c_ctx->input_path, 0, cpp_ctx);
Document
doc
(
Document
::
make_from_file
(
cpp_ctx
,
string
(
c_ctx
->
input_path
));
// cerr << "MADE A DOC AND CONTEXT OBJ" << endl;
// cerr << "MADE A DOC AND CONTEXT OBJ" << endl;
// cerr << "REGISTRY: " << doc.context.registry.size() << endl;
// cerr << "REGISTRY: " << doc.context.registry.size() << endl;
c_ctx
->
output_string
=
process_document
(
doc
,
c_ctx
->
options
.
output_style
);
c_ctx
->
output_string
=
process_document
(
doc
,
c_ctx
->
options
.
output_style
);
...
...
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