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
df5cb4a4
Commit
df5cb4a4
authored
Apr 17, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test to see whether or not there are memory leaks.
parent
9d10d034
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
loop.c
loop.c
+36
-0
No files found.
loop.c
0 → 100644
View file @
df5cb4a4
#include <stdio.h>
#include "sass_interface.h"
int
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
<
2
)
{
printf
(
"Hey, I need an input file!
\n
"
);
return
0
;
}
while
(
1
)
{
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
.
output_style
=
SASS_STYLE_NESTED
;
ctx
->
input_path
=
argv
[
1
];
sass_compile_file
(
ctx
);
if
(
ctx
->
error_status
)
{
if
(
ctx
->
error_message
)
printf
(
"%s"
,
ctx
->
error_message
);
else
printf
(
"An error occured; no error message available.
\n
"
);
break
;
}
else
if
(
ctx
->
output_string
)
{
continue
;
}
else
{
printf
(
"Unknown internal error.
\n
"
);
break
;
}
sass_free_file_context
(
ctx
);
}
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