Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
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
community
godot
Commits
097b746f
Commit
097b746f
authored
Nov 12, 2019
by
Rémi Verschelde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nanosvg: Sync with upstream c1f6e20
Now formally unmaintained, so probably no further sync to expect from this repository.
parent
1d0bd3eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
README.md
thirdparty/README.md
+1
-1
nanosvg.h
thirdparty/nanosvg/nanosvg.h
+3
-3
No files found.
thirdparty/README.md
View file @
097b746f
...
@@ -383,7 +383,7 @@ Collection of single-file libraries used in Godot components.
...
@@ -383,7 +383,7 @@ Collection of single-file libraries used in Godot components.
## nanosvg
## nanosvg
-
Upstream: https://github.com/memononen/nanosvg
-
Upstream: https://github.com/memononen/nanosvg
-
Version: git (
c1f6e20, 2018
)
-
Version: git (
25241c5, 2019
)
-
License: zlib
-
License: zlib
Files extracted from the upstream source:
Files extracted from the upstream source:
...
...
thirdparty/nanosvg/nanosvg.h
View file @
097b746f
...
@@ -1102,7 +1102,7 @@ static double nsvg__atof(const char* s)
...
@@ -1102,7 +1102,7 @@ static double nsvg__atof(const char* s)
// Parse integer part
// Parse integer part
if
(
nsvg__isdigit
(
*
cur
))
{
if
(
nsvg__isdigit
(
*
cur
))
{
// Parse digit sequence
// Parse digit sequence
intPart
=
(
double
)
strtoll
(
cur
,
&
end
,
10
);
intPart
=
strtoll
(
cur
,
&
end
,
10
);
if
(
cur
!=
end
)
{
if
(
cur
!=
end
)
{
res
=
(
double
)
intPart
;
res
=
(
double
)
intPart
;
hasIntPart
=
1
;
hasIntPart
=
1
;
...
@@ -1130,7 +1130,7 @@ static double nsvg__atof(const char* s)
...
@@ -1130,7 +1130,7 @@ static double nsvg__atof(const char* s)
// Parse optional exponent
// Parse optional exponent
if
(
*
cur
==
'e'
||
*
cur
==
'E'
)
{
if
(
*
cur
==
'e'
||
*
cur
==
'E'
)
{
int
expPart
=
0
;
long
expPart
=
0
;
cur
++
;
// skip 'E'
cur
++
;
// skip 'E'
expPart
=
strtol
(
cur
,
&
end
,
10
);
// Parse digit sequence with sign
expPart
=
strtol
(
cur
,
&
end
,
10
);
// Parse digit sequence with sign
if
(
cur
!=
end
)
{
if
(
cur
!=
end
)
{
...
@@ -1168,7 +1168,7 @@ static const char* nsvg__parseNumber(const char* s, char* it, const int size)
...
@@ -1168,7 +1168,7 @@ static const char* nsvg__parseNumber(const char* s, char* it, const int size)
}
}
}
}
// exponent
// exponent
if
(
*
s
==
'e'
||
*
s
==
'E'
)
{
if
(
(
*
s
==
'e'
||
*
s
==
'E'
)
&&
(
s
[
1
]
!=
'm'
&&
s
[
1
]
!=
'x'
)
)
{
if
(
i
<
last
)
it
[
i
++
]
=
*
s
;
if
(
i
<
last
)
it
[
i
++
]
=
*
s
;
s
++
;
s
++
;
if
(
*
s
==
'-'
||
*
s
==
'+'
)
{
if
(
*
s
==
'-'
||
*
s
==
'+'
)
{
...
...
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