Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
9b686e10
Commit
9b686e10
authored
Apr 30, 1999
by
Asbjørn Pettersen
Browse files
only OS/2 patches
parent
11ef0a81
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/dialogs/module-dialog.c
View file @
9b686e10
...
...
@@ -22,6 +22,7 @@
#include
<stdio.h>
#include
<string.h>
#include
<sys/types.h>
#include
<sys/stat.h>
#ifdef HAVE_UNISTD_H
#include
<unistd.h>
...
...
@@ -56,6 +57,19 @@ static const char * const statename[] = {
"ST_UNLOADED_OK"
};
#ifdef __EMX__
extern
void
gimp_color_selector_register
();
extern
void
gimp_color_selector_unregister
();
static
struct
main_funcs_struc
{
gchar
*
name
;
void
(
*
func
)();
}
gimp_main_funcs
[]
=
{
{
"gimp_color_selector_register"
,
gimp_color_selector_register
},
{
"gimp_color_selector_unregister"
,
gimp_color_selector_unregister
},
{
NULL
,
NULL
}
};
#endif
/* one of these objects is kept per-module */
typedef
struct
{
...
...
@@ -385,7 +399,7 @@ valid_module_name (const char *filename)
len
=
strlen
(
basename
);
#if
n
def
WIN32
#if
!
def
ined(WIN32) && !defined(__EMX__)
if
(
len
<
3
+
1
+
3
)
return
FALSE
;
...
...
@@ -451,6 +465,12 @@ mod_load (module_info *mod, gboolean verbose)
return
;
}
#ifdef __EMX__
if
(
g_module_symbol
(
mod
->
module
,
"gimp_main_funcs"
,
&
symbol
))
{
*
(
struct
main_funcs_struc
**
)
symbol
=
gimp_main_funcs
;
}
#endif
/* find the module_init symbol */
if
(
!
g_module_symbol
(
mod
->
module
,
"module_init"
,
&
symbol
))
{
...
...
app/gui/module-browser.c
View file @
9b686e10
...
...
@@ -22,6 +22,7 @@
#include
<stdio.h>
#include
<string.h>
#include
<sys/types.h>
#include
<sys/stat.h>
#ifdef HAVE_UNISTD_H
#include
<unistd.h>
...
...
@@ -56,6 +57,19 @@ static const char * const statename[] = {
"ST_UNLOADED_OK"
};
#ifdef __EMX__
extern
void
gimp_color_selector_register
();
extern
void
gimp_color_selector_unregister
();
static
struct
main_funcs_struc
{
gchar
*
name
;
void
(
*
func
)();
}
gimp_main_funcs
[]
=
{
{
"gimp_color_selector_register"
,
gimp_color_selector_register
},
{
"gimp_color_selector_unregister"
,
gimp_color_selector_unregister
},
{
NULL
,
NULL
}
};
#endif
/* one of these objects is kept per-module */
typedef
struct
{
...
...
@@ -385,7 +399,7 @@ valid_module_name (const char *filename)
len
=
strlen
(
basename
);
#if
n
def
WIN32
#if
!
def
ined(WIN32) && !defined(__EMX__)
if
(
len
<
3
+
1
+
3
)
return
FALSE
;
...
...
@@ -451,6 +465,12 @@ mod_load (module_info *mod, gboolean verbose)
return
;
}
#ifdef __EMX__
if
(
g_module_symbol
(
mod
->
module
,
"gimp_main_funcs"
,
&
symbol
))
{
*
(
struct
main_funcs_struc
**
)
symbol
=
gimp_main_funcs
;
}
#endif
/* find the module_init symbol */
if
(
!
g_module_symbol
(
mod
->
module
,
"module_init"
,
&
symbol
))
{
...
...
app/module_db.c
View file @
9b686e10
...
...
@@ -22,6 +22,7 @@
#include
<stdio.h>
#include
<string.h>
#include
<sys/types.h>
#include
<sys/stat.h>
#ifdef HAVE_UNISTD_H
#include
<unistd.h>
...
...
@@ -56,6 +57,19 @@ static const char * const statename[] = {
"ST_UNLOADED_OK"
};
#ifdef __EMX__
extern
void
gimp_color_selector_register
();
extern
void
gimp_color_selector_unregister
();
static
struct
main_funcs_struc
{
gchar
*
name
;
void
(
*
func
)();
}
gimp_main_funcs
[]
=
{
{
"gimp_color_selector_register"
,
gimp_color_selector_register
},
{
"gimp_color_selector_unregister"
,
gimp_color_selector_unregister
},
{
NULL
,
NULL
}
};
#endif
/* one of these objects is kept per-module */
typedef
struct
{
...
...
@@ -385,7 +399,7 @@ valid_module_name (const char *filename)
len
=
strlen
(
basename
);
#if
n
def
WIN32
#if
!
def
ined(WIN32) && !defined(__EMX__)
if
(
len
<
3
+
1
+
3
)
return
FALSE
;
...
...
@@ -451,6 +465,12 @@ mod_load (module_info *mod, gboolean verbose)
return
;
}
#ifdef __EMX__
if
(
g_module_symbol
(
mod
->
module
,
"gimp_main_funcs"
,
&
symbol
))
{
*
(
struct
main_funcs_struc
**
)
symbol
=
gimp_main_funcs
;
}
#endif
/* find the module_init symbol */
if
(
!
g_module_symbol
(
mod
->
module
,
"module_init"
,
&
symbol
))
{
...
...
Write
Preview
Supports
Markdown
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