Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
088dd2ed
Commit
088dd2ed
authored
Feb 01, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
That one wasn't even Latin-1
parent
adc858d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
mozilla/support/npmac.cpp
mozilla/support/npmac.cpp
+10
-10
No files found.
mozilla/support/npmac.cpp
View file @
088dd2ed
...
...
@@ -17,7 +17,7 @@
//
// A4Stuff.h contains the definition of EnterCodeResource and
// EnterCodeResource, used for setting up the code resource
s
// EnterCodeResource, used for setting up the code resource
’s
// globals for 68K (analagous to the function SetCurrentA5
// defined by the toolbox).
//
...
...
@@ -183,9 +183,9 @@ static void* SetupTVtoFPGlue(TTVtoFPGlue* functionGlue, void* tvp)
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#if !TARGET_API_MAC_CARBON
QDGlobals
*
gQDPtr
;
// Pointer to Netscape
s
QuickDraw globals
QDGlobals
*
gQDPtr
;
// Pointer to Netscape
’s
QuickDraw globals
#endif
short
gResFile
;
// Refnum of the plugin
s
resource file
short
gResFile
;
// Refnum of the plugin
’s
resource file
NPNetscapeFuncs
gNetscapeFuncs
;
// Function table for procs in Netscape called by plugin
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
...
...
@@ -567,7 +567,7 @@ void SetUpQD(void)
#endif
//
// Memorize the plugin
s
resource file
// Memorize the plugin
’s
resource file
// refnum for later use.
//
gResFile
=
CurResFile
();
...
...
@@ -614,7 +614,7 @@ void SetUpQD(void)
//
// Now that we know the app name and FSSpec, we can call GetDiskFragment
// to get a connID to use in a subsequent call to FindSymbol (it will also
// return the address of
main i
n app, which we ignore). If GetDiskFragment
// return the address of
“main” in
app, which we ignore). If GetDiskFragment
// returns an error, we assume the app must be 68K.
//
Ptr
mainAddr
;
...
...
@@ -627,7 +627,7 @@ void SetUpQD(void)
{
//
// The app is a PPC code fragment, so call FindSymbol
// to get the exported
qd s
ymbol so we can access its
// to get the exported
“qd” sy
mbol so we can access its
// QuickDraw globals.
//
CFragSymbolClass
symClass
;
...
...
@@ -685,11 +685,11 @@ DEFINE_API_C(NPError) main(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs,
err
=
NPERR_INVALID_FUNCTABLE_ERROR
;
//
// Check the
major version passed in Netscapes f
unction table.
// We won
t
load if the major version is newer than what we expect.
// Check the
“major” version passed in Netscape’s fun
ction table.
// We won
’t
load if the major version is newer than what we expect.
// Also check that the function tables passed in are big enough for
// all the functions we need (they could be bigger, if Netscape added
// new APIs, but that
s OK with us -- well
just ignore them).
// new APIs, but that
’s OK with us -- we’ll j
ust ignore them).
//
if
(
err
==
NPERR_NO_ERROR
)
{
...
...
@@ -701,7 +701,7 @@ DEFINE_API_C(NPError) main(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs,
if
(
err
==
NPERR_NO_ERROR
)
{
//
// Copy all the fields of Netscape
s
function table into our
// Copy all the fields of Netscape
’s
function table into our
// copy so we can call back into Netscape later. Note that
// we need to copy the fields one by one, rather than assigning
// the whole structure, because the Netscape function table
...
...
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