Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
044fcf24
Unverified
Commit
044fcf24
authored
Nov 02, 2020
by
Vasilis Vryniotis
Committed by
GitHub
Nov 02, 2020
Browse files
Replacing C-style typedefs with aliases. (#2945)
parent
36daee3f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
torchvision/csrc/cpu/decoder/decoder.h
torchvision/csrc/cpu/decoder/decoder.h
+1
-1
torchvision/csrc/cpu/image/jpegcommon.h
torchvision/csrc/cpu/image/jpegcommon.h
+1
-1
torchvision/csrc/cpu/image/writepng_cpu.cpp
torchvision/csrc/cpu/image/writepng_cpu.cpp
+1
-1
No files found.
torchvision/csrc/cpu/decoder/decoder.h
View file @
044fcf24
...
...
@@ -7,7 +7,7 @@
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
using
ssize_t
=
SSIZE_T
;
#endif
namespace
ffmpeg
{
...
...
torchvision/csrc/cpu/image/jpegcommon.h
View file @
044fcf24
...
...
@@ -17,7 +17,7 @@ struct torch_jpeg_error_mgr {
jmp_buf
setjmp_buffer
;
/* for return to caller */
};
typedef
struct
torch_jpeg_error_mgr
*
torch_jpeg_error_ptr
;
using
torch_jpeg_error_ptr
=
struct
torch_jpeg_error_mgr
*
;
void
torch_jpeg_error_exit
(
j_common_ptr
cinfo
);
#endif
torchvision/csrc/cpu/image/writepng_cpu.cpp
View file @
044fcf24
...
...
@@ -23,7 +23,7 @@ struct torch_png_error_mgr {
jmp_buf
setjmp_buffer
;
/* for return to caller */
};
typedef
torch_png_error_mgr
*
torch_png_error_mgr
_ptr
;
using
torch_png_error_mgr
_ptr
=
torch_png_error_mgr
*
;
void
torch_png_warn
(
png_structp
png_ptr
,
png_const_charp
warn_msg
)
{
/* Display warning to user */
...
...
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