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
ac778660
Commit
ac778660
authored
Apr 05, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed an aliasing bug in a builtin Sass function.
parent
abc0f0ab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
11 deletions
+3
-11
context.cpp
context.cpp
+0
-2
functions.cpp
functions.cpp
+3
-6
functions.hpp
functions.hpp
+0
-3
No files found.
context.cpp
View file @
ac778660
...
@@ -33,7 +33,6 @@ namespace Sass {
...
@@ -33,7 +33,6 @@ namespace Sass {
register_function
(
rgb_descriptor
,
rgb
);
register_function
(
rgb_descriptor
,
rgb
);
register_function
(
rgba_4_descriptor
,
rgba_4
);
register_function
(
rgba_4_descriptor
,
rgba_4
);
register_function
(
rgba_2_descriptor
,
rgba_2
);
register_function
(
rgba_2_descriptor
,
rgba_2
);
register_function
(
curse_descriptor
,
curse
);
}
}
}
}
\ No newline at end of file
functions.cpp
View file @
ac778660
...
@@ -32,13 +32,9 @@ namespace Sass {
...
@@ -32,13 +32,9 @@ namespace Sass {
Function_Descriptor
rgba_2_descriptor
=
Function_Descriptor
rgba_2_descriptor
=
{
"rgba"
,
"$color"
,
"$alpha"
,
0
};
{
"rgba"
,
"$color"
,
"$alpha"
,
0
};
Node
rgba_2
(
const
vector
<
Token
>&
parameters
,
map
<
Token
,
Node
>&
bindings
)
{
Node
rgba_2
(
const
vector
<
Token
>&
parameters
,
map
<
Token
,
Node
>&
bindings
)
{
return
bindings
[
parameters
[
0
]]
<<
bindings
[
parameters
[
1
]];
return
bindings
[
parameters
[
0
]]
.
clone
()
<<
bindings
[
parameters
[
1
]];
}
}
extern
const
char
*
the_curse
=
"Damn!"
;
Function_Descriptor
curse_descriptor
=
{
"curse"
,
0
};
Node
curse
(
const
vector
<
Token
>&
parameters
,
map
<
Token
,
Node
>&
bindings
)
{
return
Node
(
Node
::
identifier
,
0
,
Token
::
make
(
the_curse
,
the_curse
+
std
::
strlen
(
the_curse
)));
}
}
}
}
}
\ No newline at end of file
functions.hpp
View file @
ac778660
...
@@ -51,9 +51,6 @@ namespace Sass {
...
@@ -51,9 +51,6 @@ namespace Sass {
extern
Function_Descriptor
rgba_2_descriptor
;
extern
Function_Descriptor
rgba_2_descriptor
;
Node
rgba_2
(
const
vector
<
Token
>&
parameters
,
map
<
Token
,
Node
>&
bindings
);
Node
rgba_2
(
const
vector
<
Token
>&
parameters
,
map
<
Token
,
Node
>&
bindings
);
extern
Function_Descriptor
curse_descriptor
;
Node
curse
(
const
vector
<
Token
>&
parameters
,
map
<
Token
,
Node
>&
bindings
);
}
}
}
}
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