Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
0cf6f792
Commit
0cf6f792
authored
Mar 17, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
safari: integer type cleanup
parent
1cd23817
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
projects/mozilla/support/npmac.cpp
projects/mozilla/support/npmac.cpp
+19
-19
No files found.
projects/mozilla/support/npmac.cpp
View file @
0cf6f792
...
@@ -157,7 +157,7 @@ static inline void* SetupFPtoTVGlue(TFPtoTVGlue* functionGlue, void* fp)
...
@@ -157,7 +157,7 @@ static inline void* SetupFPtoTVGlue(TFPtoTVGlue* functionGlue, void* fp)
// glue for mapping netscape TVectors to Macho function pointers
// glue for mapping netscape TVectors to Macho function pointers
struct
TTVtoFPGlue
{
struct
TTVtoFPGlue
{
uint32
glue
[
6
];
uint32
_t
glue
[
6
];
};
};
static
struct
{
static
struct
{
...
@@ -276,7 +276,7 @@ NPError NPN_GetURL(NPP instance, const char* url, const char* window)
...
@@ -276,7 +276,7 @@ NPError NPN_GetURL(NPP instance, const char* url, const char* window)
return
CallNPN_GetURLProc
(
gNetscapeFuncs
.
geturl
,
instance
,
url
,
window
);
return
CallNPN_GetURLProc
(
gNetscapeFuncs
.
geturl
,
instance
,
url
,
window
);
}
}
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
=
gNetscapeFuncs
.
version
&
0xFF
;
int
navMinorVers
=
gNetscapeFuncs
.
version
&
0xFF
;
NPError
err
;
NPError
err
;
...
@@ -293,7 +293,7 @@ NPError NPN_PostURLNotify(NPP instance, const char* url, const char* window, uin
...
@@ -293,7 +293,7 @@ NPError NPN_PostURLNotify(NPP instance, const char* url, const char* window, uin
return
err
;
return
err
;
}
}
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
CallNPN_PostURLProc
(
gNetscapeFuncs
.
posturl
,
instance
,
url
,
window
,
len
,
buf
,
file
);
return
CallNPN_PostURLProc
(
gNetscapeFuncs
.
posturl
,
instance
,
url
,
window
,
len
,
buf
,
file
);
}
}
...
@@ -319,7 +319,7 @@ NPError NPN_NewStream(NPP instance, NPMIMEType type, const char* window, NPStrea
...
@@ -319,7 +319,7 @@ NPError NPN_NewStream(NPP instance, NPMIMEType type, const char* window, NPStrea
return
err
;
return
err
;
}
}
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
navMinorVers
=
gNetscapeFuncs
.
version
&
0xFF
;
int
navMinorVers
=
gNetscapeFuncs
.
version
&
0xFF
;
NPError
err
;
NPError
err
;
...
@@ -361,7 +361,7 @@ const char* NPN_UserAgent(NPP instance)
...
@@ -361,7 +361,7 @@ const char* NPN_UserAgent(NPP instance)
return
CallNPN_UserAgentProc
(
gNetscapeFuncs
.
uagent
,
instance
);
return
CallNPN_UserAgentProc
(
gNetscapeFuncs
.
uagent
,
instance
);
}
}
void
*
NPN_MemAlloc
(
uint32
size
)
void
*
NPN_MemAlloc
(
uint32
_t
size
)
{
{
return
CallNPN_MemAllocProc
(
gNetscapeFuncs
.
memalloc
,
size
);
return
CallNPN_MemAllocProc
(
gNetscapeFuncs
.
memalloc
,
size
);
}
}
...
@@ -371,7 +371,7 @@ void NPN_MemFree(void* ptr)
...
@@ -371,7 +371,7 @@ void NPN_MemFree(void* ptr)
CallNPN_MemFreeProc
(
gNetscapeFuncs
.
memfree
,
ptr
);
CallNPN_MemFreeProc
(
gNetscapeFuncs
.
memfree
,
ptr
);
}
}
uint32
NPN_MemFlush
(
uint32
size
)
uint32
_t
NPN_MemFlush
(
uint32_t
size
)
{
{
return
CallNPN_MemFlushProc
(
gNetscapeFuncs
.
memflush
,
size
);
return
CallNPN_MemFlushProc
(
gNetscapeFuncs
.
memflush
,
size
);
}
}
...
@@ -618,18 +618,18 @@ void NPN_SetException(NPObject *npobj, const NPUTF8 *message)
...
@@ -618,18 +618,18 @@ void NPN_SetException(NPObject *npobj, const NPUTF8 *message)
NPError
Private_Initialize
(
void
);
NPError
Private_Initialize
(
void
);
void
Private_Shutdown
(
void
);
void
Private_Shutdown
(
void
);
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_Destroy
(
NPP
instance
,
NPSavedData
**
save
);
NPError
Private_SetWindow
(
NPP
instance
,
NPWindow
*
window
);
NPError
Private_SetWindow
(
NPP
instance
,
NPWindow
*
window
);
NPError
Private_GetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
value
);
NPError
Private_GetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
value
);
NPError
Private_SetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
value
);
NPError
Private_SetValue
(
NPP
instance
,
NPPVariable
variable
,
void
*
value
);
NPError
Private_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPBool
seekable
,
uint16
*
stype
);
NPError
Private_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPBool
seekable
,
uint16
_t
*
stype
);
NPError
Private_DestroyStream
(
NPP
instance
,
NPStream
*
stream
,
NPError
reason
);
NPError
Private_DestroyStream
(
NPP
instance
,
NPStream
*
stream
,
NPError
reason
);
int32
Private_WriteReady
(
NPP
instance
,
NPStream
*
stream
);
int32
_t
Private_WriteReady
(
NPP
instance
,
NPStream
*
stream
);
int32
Private_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
offset
,
int32
len
,
void
*
buffer
);
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
);
void
Private_StreamAsFile
(
NPP
instance
,
NPStream
*
stream
,
const
char
*
fname
);
void
Private_Print
(
NPP
instance
,
NPPrint
*
platformPrint
);
void
Private_Print
(
NPP
instance
,
NPPrint
*
platformPrint
);
int16
Private_HandleEvent
(
NPP
instance
,
void
*
event
);
int16
_t
Private_HandleEvent
(
NPP
instance
,
void
*
event
);
void
Private_URLNotify
(
NPP
instance
,
const
char
*
url
,
NPReason
reason
,
void
*
notifyData
);
void
Private_URLNotify
(
NPP
instance
,
const
char
*
url
,
NPReason
reason
,
void
*
notifyData
);
jobject
Private_GetJavaClass
(
void
);
jobject
Private_GetJavaClass
(
void
);
...
@@ -657,7 +657,7 @@ void Private_Shutdown(void)
...
@@ -657,7 +657,7 @@ void Private_Shutdown(void)
ExitCodeResource
();
ExitCodeResource
();
}
}
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
)
{
{
EnterCodeResource
();
EnterCodeResource
();
NPError
ret
=
NPP_New
(
pluginType
,
instance
,
mode
,
argc
,
argn
,
argv
,
saved
);
NPError
ret
=
NPP_New
(
pluginType
,
instance
,
mode
,
argc
,
argn
,
argv
,
saved
);
...
@@ -706,7 +706,7 @@ NPError Private_SetValue( NPP instance, NPNVariable variable, void *value )
...
@@ -706,7 +706,7 @@ NPError Private_SetValue( NPP instance, NPNVariable variable, void *value )
return
err
;
return
err
;
}
}
NPError
Private_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPBool
seekable
,
uint16
*
stype
)
NPError
Private_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPBool
seekable
,
uint16
_t
*
stype
)
{
{
NPError
err
;
NPError
err
;
EnterCodeResource
();
EnterCodeResource
();
...
@@ -716,9 +716,9 @@ NPError Private_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBoo
...
@@ -716,9 +716,9 @@ NPError Private_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBoo
return
err
;
return
err
;
}
}
int32
Private_WriteReady
(
NPP
instance
,
NPStream
*
stream
)
int32
_t
Private_WriteReady
(
NPP
instance
,
NPStream
*
stream
)
{
{
int32
result
;
int32
_t
result
;
EnterCodeResource
();
EnterCodeResource
();
PLUGINDEBUGSTR
(
"\pWriteReady;g;"
);
PLUGINDEBUGSTR
(
"\pWriteReady;g;"
);
result
=
NPP_WriteReady
(
instance
,
stream
);
result
=
NPP_WriteReady
(
instance
,
stream
);
...
@@ -726,9 +726,9 @@ int32 Private_WriteReady(NPP instance, NPStream* stream)
...
@@ -726,9 +726,9 @@ int32 Private_WriteReady(NPP instance, NPStream* stream)
return
result
;
return
result
;
}
}
int32
Private_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
offset
,
int32
len
,
void
*
buffer
)
int32
_t
Private_Write
(
NPP
instance
,
NPStream
*
stream
,
int32_t
offset
,
int32_t
len
,
void
*
buffer
)
{
{
int32
result
;
int32
_t
result
;
EnterCodeResource
();
EnterCodeResource
();
PLUGINDEBUGSTR
(
"\pWrite;g;"
);
PLUGINDEBUGSTR
(
"\pWrite;g;"
);
result
=
NPP_Write
(
instance
,
stream
,
offset
,
len
,
buffer
);
result
=
NPP_Write
(
instance
,
stream
,
offset
,
len
,
buffer
);
...
@@ -754,9 +754,9 @@ NPError Private_DestroyStream(NPP instance, NPStream* stream, NPError reason)
...
@@ -754,9 +754,9 @@ NPError Private_DestroyStream(NPP instance, NPStream* stream, NPError reason)
return
err
;
return
err
;
}
}
int16
Private_HandleEvent
(
NPP
instance
,
void
*
event
)
int16
_t
Private_HandleEvent
(
NPP
instance
,
void
*
event
)
{
{
int16
result
;
int16
_t
result
;
EnterCodeResource
();
EnterCodeResource
();
PLUGINDEBUGSTR
(
"\pHandleEvent;g;"
);
PLUGINDEBUGSTR
(
"\pHandleEvent;g;"
);
result
=
NPP_HandleEvent
(
instance
,
event
);
result
=
NPP_HandleEvent
(
instance
,
event
);
...
...
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