Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
typon
typon-compiler
Commits
775f5b0b
Commit
775f5b0b
authored
Nov 14, 2023
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix C++ things
parent
1df92c1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
typon/include/python/builtins.hpp
typon/include/python/builtins.hpp
+2
-2
typon/include/python/socket.hpp
typon/include/python/socket.hpp
+2
-3
No files found.
typon/include/python/builtins.hpp
View file @
775f5b0b
...
...
@@ -66,8 +66,8 @@ class PyObj : public std::shared_ptr<typename RealType<T>::type> {
public:
using
inner
=
typename
RealType
<
T
>::
type
;
template
<
typename
...
Args
>
PyObj
(
Args
&&
...
args
)
:
std
::
shared_ptr
<
inner
>
(
std
::
make_shared
<
inner
>
(
std
::
forward
<
Args
>
(
args
)...))
{}
/*
template<typename... Args>
PyObj(Args&&... args) : std::shared_ptr<inner>(std::make_shared<inner>(std::forward<Args>(args)...)) {}
*/
PyObj
()
:
std
::
shared_ptr
<
inner
>
()
{}
PyObj
(
std
::
nullptr_t
)
:
std
::
shared_ptr
<
inner
>
(
nullptr
)
{}
...
...
typon/include/python/socket.hpp
View file @
775f5b0b
...
...
@@ -92,7 +92,7 @@ struct socket_t {
}
socket
;
FUNCTION
(
auto
,
getaddrinfo
,
(
std
::
string
host
,
int
port
,
int
family
=
0
,
int
type_
=
0
,
int
proto
=
0
,
int
flags
=
0
),
{
/*
addrinfo hints;
addrinfo
hints
;
std
::
memset
(
&
hints
,
0
,
sizeof
(
hints
));
hints
.
ai_family
=
family
;
hints
.
ai_socktype
=
type_
;
...
...
@@ -102,8 +102,7 @@ struct socket_t {
if
(
int
err
=
::
getaddrinfo
(
host
.
c_str
(),
port
.
c_str
(),
&
hints
,
&
res
);
err
!=
0
)
{
system_error
(
err
,
"getaddrinfo()"
);
}
return res;*/
return
123
;
return
res
;
})
}
all
;
...
...
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