2007-10-24 12:04:15 +00:00
|
|
|
/*
|
|
|
|
* pluginmacros.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2008-01-06 18:11:57 +00:00
|
|
|
* Copyright 2007-2008 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2007-2008 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
2007-10-24 12:04:15 +00:00
|
|
|
*
|
|
|
|
* 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., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
* MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Useful macros to avoid typing geany_data so often. */
|
|
|
|
|
|
|
|
#ifndef PLUGINMACROS_H
|
|
|
|
#define PLUGINMACROS_H
|
|
|
|
|
2007-12-16 11:27:59 +00:00
|
|
|
#define app geany_data->app
|
|
|
|
#define doc_array geany_data->doc_array
|
|
|
|
#define prefs geany_data->prefs
|
|
|
|
#define project app->project
|
2007-10-24 12:04:15 +00:00
|
|
|
|
2008-01-28 17:27:39 +00:00
|
|
|
#ifdef GEANY_DISABLE_DEPRECATED
|
|
|
|
|
|
|
|
/* These macros are named the same as the first word in the core function name,
|
|
|
|
* but with a 'p_' prefix to prevent conflicts with other tag names.
|
|
|
|
* Example: document_open_file() -> p_document->open_file() */
|
|
|
|
#define p_dialogs geany_data->dialogs
|
|
|
|
#define p_document geany_data->documents
|
|
|
|
#define p_encoding geany_data->encoding
|
2008-03-24 17:33:50 +00:00
|
|
|
#define p_filetype geany_data->filetype
|
2008-01-28 17:27:39 +00:00
|
|
|
#define p_highlighting geany_data->highlighting
|
|
|
|
#define p_keybindings geany_data->keybindings
|
|
|
|
#define p_msgwindow geany_data->msgwindow
|
|
|
|
#define p_sci geany_data->sci
|
|
|
|
#define p_search geany_data->search
|
|
|
|
#define p_support geany_data->support
|
|
|
|
#define p_templates geany_data->templates
|
|
|
|
#define p_tm geany_data->tm
|
|
|
|
#define p_ui geany_data->ui
|
|
|
|
#define p_utils geany_data->utils
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define p_dialogs dialogs
|
|
|
|
#define p_document documents
|
|
|
|
#define p_encoding encodings
|
|
|
|
#define p_highlighting highlighting
|
|
|
|
#define p_keybindings keybindings
|
|
|
|
#define p_msgwindow msgwindow
|
|
|
|
#define p_sci scintilla
|
|
|
|
#define p_search search
|
|
|
|
#define p_support support
|
|
|
|
#define p_templates templates
|
|
|
|
#define p_tm tagmanager
|
|
|
|
#define p_ui ui
|
|
|
|
#define p_utils utils
|
|
|
|
|
|
|
|
/* Temporary source compatibility macros - do not use these in new code. */
|
2007-12-16 11:27:59 +00:00
|
|
|
#define dialogs geany_data->dialogs
|
2008-02-27 13:17:29 +00:00
|
|
|
#define documents geany_data->documents /* avoids conflict with document typedef */
|
|
|
|
#define encodings geany_data->encoding /* avoids conflict with document::encoding */
|
2007-12-16 11:27:59 +00:00
|
|
|
#define highlighting geany_data->highlighting
|
|
|
|
#define keybindings geany_data->keybindings
|
|
|
|
#define msgwindow geany_data->msgwindow
|
|
|
|
#define scintilla geany_data->sci
|
|
|
|
#define search geany_data->search
|
|
|
|
#define support geany_data->support
|
|
|
|
#define templates geany_data->templates
|
2008-02-27 13:17:29 +00:00
|
|
|
#define tagmanager geany_data->tm /* avoids conflict with "struct tm *t" */
|
2007-12-16 11:27:59 +00:00
|
|
|
#define ui geany_data->ui
|
|
|
|
#define utils geany_data->utils
|
2007-10-24 12:04:15 +00:00
|
|
|
|
|
|
|
#endif
|
2008-01-28 17:27:39 +00:00
|
|
|
|
|
|
|
#endif
|