Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
53ec8a45
Commit
53ec8a45
authored
Mar 17, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mozilla: fix integer types
(u)int16 -> (u)int16_t (u)int32 -> (u)int32_t
parent
681ac9f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
25 deletions
+24
-25
projects/mozilla/support/npunix.c
projects/mozilla/support/npunix.c
+18
-19
projects/mozilla/support/npwin.cpp
projects/mozilla/support/npwin.cpp
+6
-6
No files found.
projects/mozilla/support/npunix.c
View file @
53ec8a45
...
...
@@ -128,14 +128,14 @@ NPN_GetURLNotify(NPP instance, const char* url, const char* window, void* notify
NPError
NPN_PostURL
(
NPP
instance
,
const
char
*
url
,
const
char
*
window
,
uint32
len
,
const
char
*
buf
,
NPBool
file
)
uint32
_t
len
,
const
char
*
buf
,
NPBool
file
)
{
return
CallNPN_PostURLProc
(
gNetscapeFuncs
.
posturl
,
instance
,
url
,
window
,
len
,
buf
,
file
);
}
NPError
NPN_PostURLNotify
(
NPP
instance
,
const
char
*
url
,
const
char
*
window
,
uint32
len
,
NPN_PostURLNotify
(
NPP
instance
,
const
char
*
url
,
const
char
*
window
,
uint32
_t
len
,
const
char
*
buf
,
NPBool
file
,
void
*
notifyData
)
{
return
CallNPN_PostURLNotifyProc
(
gNetscapeFuncs
.
posturlnotify
,
...
...
@@ -157,8 +157,8 @@ NPN_NewStream(NPP instance, NPMIMEType type, const char *window,
type
,
window
,
stream_ptr
);
}
int32
NPN_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
len
,
void
*
buffer
)
int32
_t
NPN_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
_t
len
,
void
*
buffer
)
{
return
CallNPN_WriteProc
(
gNetscapeFuncs
.
write
,
instance
,
stream
,
len
,
buffer
);
...
...
@@ -183,8 +183,7 @@ NPN_UserAgent(NPP instance)
return
CallNPN_UserAgentProc
(
gNetscapeFuncs
.
uagent
,
instance
);
}
void
*
NPN_MemAlloc
(
uint32
size
)
void
*
NPN_MemAlloc
(
uint32_t
size
)
{
return
CallNPN_MemAllocProc
(
gNetscapeFuncs
.
memalloc
,
size
);
}
...
...
@@ -194,7 +193,7 @@ void NPN_MemFree(void* ptr)
CallNPN_MemFreeProc
(
gNetscapeFuncs
.
memfree
,
ptr
);
}
uint32
NPN_MemFlush
(
uint32
size
)
uint32
_t
NPN_MemFlush
(
uint32_t
size
)
{
return
CallNPN_MemFlushProc
(
gNetscapeFuncs
.
memflush
,
size
);
}
...
...
@@ -443,15 +442,15 @@ void NPN_SetException(NPObject* obj, const NPUTF8 *message)
***********************************************************************/
/* Function prototypes */
NPError
Private_New
(
NPMIMEType
pluginType
,
NPP
instance
,
uint16
mode
,
int16
argc
,
char
*
argn
[],
char
*
argv
[],
NPSavedData
*
saved
);
NPError
Private_New
(
NPMIMEType
pluginType
,
NPP
instance
,
uint16
_t
mode
,
int16
_t
argc
,
char
*
argn
[],
char
*
argv
[],
NPSavedData
*
saved
);
NPError
Private_Destroy
(
NPP
instance
,
NPSavedData
**
save
);
NPError
Private_SetWindow
(
NPP
instance
,
NPWindow
*
window
);
NPError
Private_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPBool
seekable
,
uint16
*
stype
);
int32
Private_WriteReady
(
NPP
instance
,
NPStream
*
stream
);
int32
Private_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
offset
,
int32
len
,
void
*
buffer
);
NPBool
seekable
,
uint16
_t
*
stype
);
int32
_t
Private_WriteReady
(
NPP
instance
,
NPStream
*
stream
);
int32
_t
Private_Write
(
NPP
instance
,
NPStream
*
stream
,
int32_t
offset
,
int32
_t
len
,
void
*
buffer
);
void
Private_StreamAsFile
(
NPP
instance
,
NPStream
*
stream
,
const
char
*
fname
);
NPError
Private_DestroyStream
(
NPP
instance
,
NPStream
*
stream
,
NPError
reason
);
void
Private_URLNotify
(
NPP
instance
,
const
char
*
url
,
...
...
@@ -465,8 +464,8 @@ JRIGlobalRef Private_GetJavaClass(void);
/* function implementations */
NPError
Private_New
(
NPMIMEType
pluginType
,
NPP
instance
,
uint16
mode
,
int16
argc
,
char
*
argn
[],
char
*
argv
[],
NPSavedData
*
saved
)
Private_New
(
NPMIMEType
pluginType
,
NPP
instance
,
uint16
_t
mode
,
int16
_t
argc
,
char
*
argn
[],
char
*
argv
[],
NPSavedData
*
saved
)
{
NPError
ret
;
PLUGINDEBUGSTR
(
"New"
);
...
...
@@ -492,7 +491,7 @@ Private_SetWindow(NPP instance, NPWindow* window)
NPError
Private_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPBool
seekable
,
uint16
*
stype
)
NPBool
seekable
,
uint16
_t
*
stype
)
{
NPError
err
;
PLUGINDEBUGSTR
(
"NewStream"
);
...
...
@@ -500,7 +499,7 @@ Private_NewStream(NPP instance, NPMIMEType type, NPStream* stream,
return
err
;
}
int32
int32
_t
Private_WriteReady
(
NPP
instance
,
NPStream
*
stream
)
{
unsigned
int
result
;
...
...
@@ -509,8 +508,8 @@ Private_WriteReady(NPP instance, NPStream* stream)
return
result
;
}
int32
Private_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
offset
,
int32
len
,
int32
_t
Private_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
_t
offset
,
int32_t
len
,
void
*
buffer
)
{
unsigned
int
result
;
...
...
projects/mozilla/support/npwin.cpp
View file @
53ec8a45
...
...
@@ -449,7 +449,7 @@ NPError NPN_GetURL(NPP instance, const char *url, const char *target)
return
g_pNavigatorFuncs
->
geturl
(
instance
,
url
,
target
);
}
NPError
NPN_PostURLNotify
(
NPP
instance
,
const
char
*
url
,
const
char
*
window
,
uint32
len
,
const
char
*
buf
,
NPBool
file
,
void
*
notifyData
)
NPError
NPN_PostURLNotify
(
NPP
instance
,
const
char
*
url
,
const
char
*
window
,
uint32
_t
len
,
const
char
*
buf
,
NPBool
file
,
void
*
notifyData
)
{
int
navMinorVers
=
g_pNavigatorFuncs
->
version
&
0xFF
;
NPError
err
;
...
...
@@ -463,7 +463,7 @@ NPError NPN_PostURLNotify(NPP instance, const char* url, const char* window, uin
}
NPError
NPN_PostURL
(
NPP
instance
,
const
char
*
url
,
const
char
*
window
,
uint32
len
,
const
char
*
buf
,
NPBool
file
)
NPError
NPN_PostURL
(
NPP
instance
,
const
char
*
url
,
const
char
*
window
,
uint32
_t
len
,
const
char
*
buf
,
NPBool
file
)
{
return
g_pNavigatorFuncs
->
posturl
(
instance
,
url
,
window
,
len
,
buf
,
file
);
}
...
...
@@ -497,11 +497,11 @@ NPError NPN_NewStream(NPP instance, NPMIMEType type,
/* Provides len bytes of data.
*/
int32
NPN_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
len
,
void
*
buffer
)
int32
_t
NPN_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
_t
len
,
void
*
buffer
)
{
int
navMinorVersion
=
g_pNavigatorFuncs
->
version
&
0xFF
;
int32
result
;
int32
_t
result
;
if
(
navMinorVersion
>=
NPVERS_HAS_STREAMOUTPUT
)
{
result
=
g_pNavigatorFuncs
->
write
(
instance
,
stream
,
len
,
buffer
);
...
...
@@ -546,7 +546,7 @@ const char* NPN_UserAgent(NPP instance)
/* allocates memory from the Navigator's memory space. Necessary so that
* saved instance data may be freed by Navigator when exiting.
*/
void
*
NPN_MemAlloc
(
uint32
size
)
void
*
NPN_MemAlloc
(
uint32
size
)
{
return
g_pNavigatorFuncs
->
memalloc
(
size
);
}
...
...
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