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
82b95b9e
Commit
82b95b9e
authored
Apr 18, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the memory-leak test. No leaks.
parent
44637897
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
loop.c
loop.c
+7
-3
No files found.
loop.c
View file @
82b95b9e
...
@@ -14,28 +14,31 @@ int main(int argc, char** argv)
...
@@ -14,28 +14,31 @@ int main(int argc, char** argv)
while
(
1
)
{
while
(
1
)
{
getrusage
(
who
,
&
r
);
getrusage
(
who
,
&
r
);
printf
(
"Memory usage: %ld"
,
r
.
ru_maxrss
);
printf
(
"Memory usage: %ld
\n
"
,
r
.
ru_maxrss
);
struct
sass_file_context
*
ctx
=
sass_new_file_context
();
struct
sass_file_context
*
ctx
=
sass_new_file_context
();
ctx
->
options
.
include_paths
=
"::/blah/bloo/fuzz:/slub/flub/chub::/Users/Aaron/dev/libsass/::::/huzz/buzz:::"
;
ctx
->
options
.
include_paths
=
"::/blah/bloo/fuzz:/slub/flub/chub::/Users/Aaron/dev/libsass/::::/huzz/buzz:::"
;
ctx
->
options
.
output_style
=
SASS_STYLE_NESTED
;
ctx
->
options
.
output_style
=
SASS_STYLE_NESTED
;
ctx
->
input_path
=
argv
[
1
];
ctx
->
input_path
=
argv
[
1
];
sass_
file_comp
ile
(
ctx
);
sass_
compile_f
ile
(
ctx
);
if
(
ctx
->
error_status
)
{
if
(
ctx
->
error_status
)
{
if
(
ctx
->
error_message
)
printf
(
"%s"
,
ctx
->
error_message
);
if
(
ctx
->
error_message
)
printf
(
"%s"
,
ctx
->
error_message
);
else
printf
(
"An error occured; no error message available.
\n
"
);
else
printf
(
"An error occured; no error message available.
\n
"
);
sass_free_file_context
(
ctx
);
break
;
break
;
}
}
else
if
(
ctx
->
output_string
)
{
else
if
(
ctx
->
output_string
)
{
sass_free_file_context
(
ctx
);
continue
;
continue
;
}
}
else
{
else
{
printf
(
"Unknown internal error.
\n
"
);
printf
(
"Unknown internal error.
\n
"
);
sass_free_file_context
(
ctx
);
break
;
break
;
}
}
sass_file_free_context
(
ctx
);
}
}
return
0
;
return
0
;
}
}
\ No newline at end of file
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