2003-09-01 Michael Natterer <mitch@gimp.org> We really don't need that global variable overkill from appenv.h just to pass these values from main() to app_init(): * app/app_procs.[ch] (app_init): added tons of parameters that used to be global variables before. Replaced app_init_update_status() by two functions, one which actually updates the splash, and one which does nothing, so we don't need global variables in the status callback. * app/appenv.h: removed vraiable declarations here. Some are still left, will get rid of this entire file soon... * app/main.c: added them as local variables to main() and pass them to app_init(). * app/batch.c: removed the global "batch_cmds", they are passed the same way as the stuff above now.
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __APPENV_H__
|
|
#define __APPENV_H__
|
|
|
|
#ifndef GIMP_APP_GLUE_COMPILATION
|
|
#error You must not #include "appenv.h" from an app/ subdir
|
|
#endif
|
|
|
|
|
|
/* command line options */
|
|
extern gboolean use_debug_handler;
|
|
extern gboolean console_messages;
|
|
extern GimpStackTraceMode stack_trace_mode;
|
|
|
|
/* other global variables */
|
|
extern gchar *prog_name;
|
|
|
|
|
|
#endif /* __APPENV_H__ */
|