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
df5191ca
Commit
df5191ca
authored
May 21, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The Context objects should have a Node_Factory.
parent
490a56f1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
context.cpp
context.cpp
+3
-0
context.hpp
context.hpp
+1
-0
No files found.
context.cpp
View file @
df5191ca
...
...
@@ -44,6 +44,7 @@ namespace Sass {
source_refs
(
vector
<
char
*>
()),
registry
(
vector
<
vector
<
Node
>*>
()),
include_paths
(
vector
<
string
>
()),
new_Node
(
Node_Factory
()),
ref_count
(
0
)
{
register_functions
();
...
...
@@ -55,6 +56,8 @@ namespace Sass {
for
(
size_t
i
=
0
;
i
<
source_refs
.
size
();
++
i
)
{
delete
[]
source_refs
[
i
];
}
new_Node
.
free
();
// cerr << "Deallocated " << i << " source string(s)." << endl;
}
...
...
context.hpp
View file @
df5191ca
...
...
@@ -45,6 +45,7 @@ namespace Sass {
vector
<
char
*>
source_refs
;
// all the source c-strings
vector
<
vector
<
Node
>*>
registry
;
// all the child vectors
vector
<
string
>
include_paths
;
Node_Factory
new_node
;
size_t
ref_count
;
string
sass_path
;
string
css_path
;
...
...
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