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
016aabe9
Commit
016aabe9
authored
Feb 29, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Giving a parameter a default value.
parent
b29755b7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
node.hpp
src/node.hpp
+2
-1
unit-test-document.cpp
src/unit-test-document.cpp
+1
-1
No files found.
src/node.hpp
View file @
016aabe9
...
@@ -31,6 +31,6 @@ namespace Sass {
...
@@ -31,6 +31,6 @@ namespace Sass {
Node
(
Node_Type
_type
,
Token
&
_token
);
Node
(
Node_Type
_type
,
Token
&
_token
);
void
push_child
(
const
Node
&
node
);
void
push_child
(
const
Node
&
node
);
void
push_opt_child
(
const
Node
&
node
);
void
push_opt_child
(
const
Node
&
node
);
void
dump
(
unsigned
int
depth
);
void
dump
(
unsigned
int
depth
=
0
);
};
};
}
}
\ No newline at end of file
src/unit-test-document.cpp
View file @
016aabe9
...
@@ -52,7 +52,7 @@ int main(int argc, char* argv[]) {
...
@@ -52,7 +52,7 @@ int main(int argc, char* argv[]) {
int
j
=
doc
.
statements
.
size
();
int
j
=
doc
.
statements
.
size
();
printf
(
"%d
\n
"
,
j
);
printf
(
"%d
\n
"
,
j
);
for
(
i
=
0
;
i
<
j
;
++
i
)
{
for
(
i
=
0
;
i
<
j
;
++
i
)
{
doc
.
statements
[
i
].
dump
(
0
);
doc
.
statements
[
i
].
dump
();
}
}
}
}
...
...
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