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
0936e9d8
Commit
0936e9d8
authored
Apr 19, 2012
by
Hampton Catlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move executables out of the src folder
parent
c1e55438
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
51 deletions
+13
-51
Makefile
Makefile
+2
-1
extconf.rb
extconf.rb
+5
-0
loop.c
loop.c
+0
-0
sassc.c
sassc.c
+1
-1
extconf.rb
src/extconf.rb
+5
-0
sasscpp.cpp
src/sasscpp.cpp
+0
-49
No files found.
Makefile
View file @
0936e9d8
...
...
@@ -15,7 +15,8 @@ CPP_FILES = \
sassc
:
sassc_obj libsass
gcc
-o
$(BIN_DIR)
/sassc
$(BUILD_DIR)
/sassc.o libsass.a
-lstdc
++
sassc_obj
:
build_dir $(SRC_DIR)/sassc.c
sassc_obj
:
build_dir sassc.c
gcc
-c
sassc.c
mv
*
.o
$(BUILD_DIR)
libsass
:
libsass_objs
...
...
extconf.rb
0 → 100644
View file @
0936e9d8
require
'mkmf'
dir_config
(
'cdjukebox'
)
# .. more stuff
create_makefile
(
"CDJukeBox"
)
\ No newline at end of file
src/
loop.c
→
loop.c
View file @
0936e9d8
File moved
s
rc/s
assc.c
→
sassc.c
View file @
0936e9d8
...
...
@@ -18,7 +18,7 @@
// var cssResult = sass_compile(opts, &callbackfunction);
#include <stdio.h>
#include "sass_interface.h"
#include "s
rc/s
ass_interface.h"
int
main
(
int
argc
,
char
**
argv
)
{
...
...
src/extconf.rb
0 → 100644
View file @
0936e9d8
require
'mkmf'
# .. more stuff
$LIBPATH
.
push
(
Config
::
CONFIG
[
'libdir'
])
create_makefile
(
"libsass"
)
\ No newline at end of file
src/sasscpp.cpp
deleted
100644 → 0
View file @
c1e55438
#include <iostream>
#include <string>
#include <map>
#include "document.hpp"
#include "eval_apply.hpp"
using
namespace
Sass
;
using
namespace
std
;
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
argc
<
2
)
{
cout
<<
"Hey, I at least need a file to read!"
<<
endl
;
return
0
;
}
char
*
path
;
Document
::
CSS_Style
style
=
Document
::
nested
;
for
(
int
i
=
1
;
i
<
argc
;
++
i
)
{
if
(
string
(
argv
[
i
])
==
"--style"
)
{
string
style_name
(
argv
[
++
i
]);
if
(
style_name
==
"nested"
)
style
=
Document
::
nested
;
else
if
(
style_name
==
"expanded"
)
style
=
Document
::
expanded
;
else
if
(
style_name
==
"echo"
)
style
=
Document
::
echo
;
}
else
{
path
=
argv
[
i
];
}
}
Document
doc
(
path
,
0
);
cerr
<<
"INITIALIZED DOCUMENT OBJECT"
<<
endl
;
doc
.
parse_scss
();
cerr
<<
"PARSED DOCUMENT"
<<
endl
;
eval
(
doc
.
root
,
doc
.
context
.
global_env
,
doc
.
context
.
function_env
);
cerr
<<
"EVALUATED DOCUMENT"
<<
endl
;
string
output
=
doc
.
emit_css
(
style
);
// cerr << "Fresh nodes:\t" << Node::fresh << endl;
// cerr << "Copied nodes:\t" << Node::copied << endl;
cerr
<<
"Allocations:
\t
"
<<
Node
::
allocations
<<
endl
;
cout
<<
output
;
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