From f40a836e6ce2f36c768adad70554e66dec746f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Pettersen?= Date: Fri, 23 Apr 1999 06:35:53 +0000 Subject: [PATCH] use MAIN macro --- ChangeLog | 8 ++++++++ plug-ins/common/despeckle.c | 11 ++++------- plug-ins/common/destripe.c | 8 +------- plug-ins/common/lic.c | 4 ++-- plug-ins/common/png.c | 11 ++++------- plug-ins/despeckle/despeckle.c | 11 ++++------- plug-ins/destripe/destripe.c | 8 +------- plug-ins/lic/lic.c | 4 ++-- plug-ins/png/png.c | 11 ++++------- plug-ins/sgi/sgi.c | 11 ++++------- 10 files changed, 34 insertions(+), 53 deletions(-) diff --git a/ChangeLog b/ChangeLog index 81729a3a7e..fe6a6bb74b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Fri Apr 23 08:31:50 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen) + + * plug-ins/lic/lic.c: MAIN at the end of file. + * plug-ins/despeckle/despeckle.c: + * plug-ins/destripe/destripe.c: + * plug-ins/png/png.c: + * plug-ins/sgi/sgi.c: Use MAIN() macro. + 1999-04-22 Jay Cox * app/edit_selection.c: removed some nonfunctional code. diff --git a/plug-ins/common/despeckle.c b/plug-ins/common/despeckle.c index d57f107f34..5b9f9bc4f9 100644 --- a/plug-ins/common/despeckle.c +++ b/plug-ins/common/despeckle.c @@ -43,6 +43,9 @@ * Revision History: * * $Log$ + * Revision 1.15 1999/04/23 06:35:14 asbjoer + * use MAIN macro + * * Revision 1.14 1999/01/15 17:33:24 unammx * 1999-01-15 Federico Mena Quintero * @@ -235,13 +238,7 @@ int despeckle_vals[4] = { 3, FILTER_ADAPTIVE, 7, 248 }; * 'main()' - Main entry - just call gimp_main()... */ -int -main(int argc, /* I - Number of command-line args */ - char *argv[]) /* I - Command-line args */ -{ - return (gimp_main(argc, argv)); -} - +MAIN() /* * 'query()' - Respond to a plug-in query... diff --git a/plug-ins/common/destripe.c b/plug-ins/common/destripe.c index 5505adceb7..93581d98a8 100644 --- a/plug-ins/common/destripe.c +++ b/plug-ins/common/destripe.c @@ -124,13 +124,7 @@ int avg_width = 36; * 'main()' - Main entry - just call gimp_main()... */ -int -main(int argc, /* I - Number of command-line args */ - char *argv[]) /* I - Command-line args */ -{ - return (gimp_main(argc, argv)); -} - +MAIN() /* * 'query()' - Respond to a plug-in query... diff --git a/plug-ins/common/lic.c b/plug-ins/common/lic.c index 7773836868..5fa79fe19c 100644 --- a/plug-ins/common/lic.c +++ b/plug-ins/common/lic.c @@ -1291,8 +1291,6 @@ void set_default_settings(void) licvals.effect_image_id=0; } -MAIN() - static void query(void) { static GParamDef args[] = @@ -1431,3 +1429,5 @@ void lic_noninteractive(GDrawable *drawable) printf("Noninteractive not yet implemented! Sorry.\n"); } +MAIN() + diff --git a/plug-ins/common/png.c b/plug-ins/common/png.c index eeebaea64f..348abb933d 100644 --- a/plug-ins/common/png.c +++ b/plug-ins/common/png.c @@ -37,6 +37,9 @@ * Revision History: * * $Log$ + * Revision 1.16 1999/04/23 06:33:13 asbjoer + * use MAIN macro + * * Revision 1.15 1999/04/19 00:17:49 mitch * 1999-04-19 Michael Natterer * @@ -323,13 +326,7 @@ int runme = FALSE; * 'main()' - Main entry - just call gimp_main()... */ -int -main(int argc, /* I - Number of command-line args */ - char *argv[]) /* I - Command-line args */ -{ - return (gimp_main(argc, argv)); -} - +MAIN() /* * 'query()' - Respond to a plug-in query... diff --git a/plug-ins/despeckle/despeckle.c b/plug-ins/despeckle/despeckle.c index d57f107f34..5b9f9bc4f9 100644 --- a/plug-ins/despeckle/despeckle.c +++ b/plug-ins/despeckle/despeckle.c @@ -43,6 +43,9 @@ * Revision History: * * $Log$ + * Revision 1.15 1999/04/23 06:35:14 asbjoer + * use MAIN macro + * * Revision 1.14 1999/01/15 17:33:24 unammx * 1999-01-15 Federico Mena Quintero * @@ -235,13 +238,7 @@ int despeckle_vals[4] = { 3, FILTER_ADAPTIVE, 7, 248 }; * 'main()' - Main entry - just call gimp_main()... */ -int -main(int argc, /* I - Number of command-line args */ - char *argv[]) /* I - Command-line args */ -{ - return (gimp_main(argc, argv)); -} - +MAIN() /* * 'query()' - Respond to a plug-in query... diff --git a/plug-ins/destripe/destripe.c b/plug-ins/destripe/destripe.c index 5505adceb7..93581d98a8 100644 --- a/plug-ins/destripe/destripe.c +++ b/plug-ins/destripe/destripe.c @@ -124,13 +124,7 @@ int avg_width = 36; * 'main()' - Main entry - just call gimp_main()... */ -int -main(int argc, /* I - Number of command-line args */ - char *argv[]) /* I - Command-line args */ -{ - return (gimp_main(argc, argv)); -} - +MAIN() /* * 'query()' - Respond to a plug-in query... diff --git a/plug-ins/lic/lic.c b/plug-ins/lic/lic.c index 7773836868..5fa79fe19c 100644 --- a/plug-ins/lic/lic.c +++ b/plug-ins/lic/lic.c @@ -1291,8 +1291,6 @@ void set_default_settings(void) licvals.effect_image_id=0; } -MAIN() - static void query(void) { static GParamDef args[] = @@ -1431,3 +1429,5 @@ void lic_noninteractive(GDrawable *drawable) printf("Noninteractive not yet implemented! Sorry.\n"); } +MAIN() + diff --git a/plug-ins/png/png.c b/plug-ins/png/png.c index eeebaea64f..348abb933d 100644 --- a/plug-ins/png/png.c +++ b/plug-ins/png/png.c @@ -37,6 +37,9 @@ * Revision History: * * $Log$ + * Revision 1.16 1999/04/23 06:33:13 asbjoer + * use MAIN macro + * * Revision 1.15 1999/04/19 00:17:49 mitch * 1999-04-19 Michael Natterer * @@ -323,13 +326,7 @@ int runme = FALSE; * 'main()' - Main entry - just call gimp_main()... */ -int -main(int argc, /* I - Number of command-line args */ - char *argv[]) /* I - Command-line args */ -{ - return (gimp_main(argc, argv)); -} - +MAIN() /* * 'query()' - Respond to a plug-in query... diff --git a/plug-ins/sgi/sgi.c b/plug-ins/sgi/sgi.c index bedaf7380d..5bdf36e63c 100644 --- a/plug-ins/sgi/sgi.c +++ b/plug-ins/sgi/sgi.c @@ -34,6 +34,9 @@ * Revision History: * * $Log$ + * Revision 1.12 1999/04/23 06:32:41 asbjoer + * use MAIN macro + * * Revision 1.11 1999/04/15 21:49:06 yosh * * applied gimp-lecorfec-99041[02]-0, changes follow * @@ -217,13 +220,7 @@ int runme = FALSE; * 'main()' - Main entry - just call gimp_main()... */ -int -main(int argc, /* I - Number of command-line args */ - char *argv[]) /* I - Command-line args */ -{ - return (gimp_main(argc, argv)); -} - +MAIN() /* * 'query()' - Respond to a plug-in query...