geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

error.c File Reference
#include "general.h"
#include <string.h>
#include <errno.h>
#include "error_p.h"
#include "options_p.h"
#include "routines_p.h"
Include dependency graph for error.c:

Go to the source code of this file.

Macros

#define selected(var, feature)   (((int)(var) & (int)(feature)) == (int)feature)
 

Functions

void setErrorPrinter (errorPrintFunc printer, void *data)
 
bool stderrDefaultErrorPrinter (const errorSelection selection, const char *const format, va_list ap, void *data)
 
void error (const errorSelection selection, const char *const format,...)
 

Variables

static errorPrintFunc errorPrinter
 
static void * errorPrinterData
 

Macro Definition Documentation

◆ selected

#define selected (   var,
  feature 
)    (((int)(var) & (int)(feature)) == (int)feature)

Definition at line 22 of file error.c.

Function Documentation

◆ error()

void error ( const errorSelection  selection,
const char *const  format,
  ... 
)

Definition at line 53 of file error.c.

References errorPrinterData, and format.

Referenced by abort_if_ferror(), addIgnoreListFromFile(), addLanguageMap(), addRegexTable(), addTagMultiTableRegex(), addTagRegexInternal(), addTagRegexOption(), applyParameter(), backupcopy_create_dir_parts(), batchMakeTags(), build_create_shellscript(), build_run_cmd(), build_spawn_cmd(), checkCtagsOptions(), checkOptionOrder(), checkOptions(), checkRegex(), closeTagFile(), common_flag_anonymous_long(), common_flag_extra_long(), common_flag_field_long(), common_flag_msg_long(), common_flag_role_long(), compile_regex(), compileRegex(), configuration_load_session_files(), copyBytes(), copyFile(), createTagsForEntry(), createTagsFromListFile(), defineRole(), defineScopeSeparator(), eCalloc(), eMalloc(), enableField(), enableLanguageField(), enableLanguageXtag(), eRealloc(), extendRegexTable(), extractMapFromParameter(), failedSort(), flagsEval(), fmtNew(), get_mtime(), getFileLanguageForRequest(), getLanguageComponentInOptionFull(), isAbsolutePath(), isCtagsLine(), isTagWritable(), kill_process(), load_css_theme(), load_system_keyfile(), makeTagEntry(), matchMultilineRegexPattern(), matchMultitableRegex(), matchMultitableRegexTable(), matchTagPattern(), on_context_action1_activate(), open_external(), openInputFile(), openTagFile(), parameterEnablingAllOrFileKind(), paramParserBool(), parse_command_line_options(), parseEnvironmentOptions(), parseFileOptions(), parseHeredoc(), parseTagRegex(), pre_lang_def_flag_base_long(), pre_ptrn_flag_advanceTo_long(), pre_ptrn_flag_guest_long(), pre_ptrn_flag_mgroup_long(), pre_ptrn_flag_mtable_long(), prepare_run_cmd(), print_external(), printing_print_gtk(), printMessage(), printMultitableMessage(), processAliasOption(), processAnonHashOption(), processBooleanOption(), processEchoOption(), processEtagsInclude(), processExcludeOptionCommon(), processExcmdOption(), processExtraTagsOption(), processFieldsOption(), processFormatOption(), processHeaderListOption(), processKindsOption(), processLangDefineExtra(), processLangDefineField(), processLangDefineKind(), processLangDefineRole(), processLangDefineScopesep(), processLangKindDefinition(), processLangKindRoleDefinition(), processLangSpecificExtraOption(), processLangSpecificFieldsOption(), processLanguageDefineOption(), processLanguageForceOption(), processLanguageMapOption(), processLanguageMultitableExtendingOption(), processLanguagesOption(), processListAliasesOption(), processListExtrasOption(), processListFieldsOption(), processListKindsOption(), processListMapsOptionForType(), processListParametersOption(), processListRolesOptions(), processListSubparsersOptions(), processLongOption(), processMapOption(), processMaxRecursionDepthOption(), processOptionFileCommon(), processOutputFormat(), processParametricOption(), processParamOption(), processPatternLengthLimit(), processPretendOption(), processPseudoTags(), processRoledefOption(), processRolesOption(), processShortOption(), processSortOption(), processTabledefOption(), processTagRegexOption(), processTagRelative(), processTotals(), pushNarrowedInputStream(), queueTagEntry(), queueTagField(), readLine(), readLineRaw(), regex_compile(), register_named_icon(), removeLanguageMap(), resumeCharacter(), ResumeString(), roleColprintAddRoles(), run_command(), sanitizeEnviron(), ScanNHexas(), ScanNumber(), scope_ptrn_flag_eval(), search_find_in_files(), search_get_argv(), setBooleanToXtagWithWarning(), setKind(), setTagFilePosition(), spawn_async(), spawn_async_with_pipes(), spawn_check_command(), spawn_get_program_name(), spawn_kill_process(), spawn_parse_argv(), spawn_sync(), spawn_with_callbacks(), tagFilePosition(), tb_editor_parse_ui(), tempFile(), toolbar_reload(), tools_execute_custom_command(), ui_init_builder(), updateSortedFlag(), utils_get_file_list(), utils_get_file_list_full(), utils_get_setting_boolean(), utils_get_setting_integer(), utils_spawn_async(), utils_spawn_sync(), utils_write_file(), uwiPopMarker(), uwiPushMarker(), and write_data_to_disk().

◆ setErrorPrinter()

void setErrorPrinter ( errorPrintFunc  printer,
void *  data 
)

Definition at line 27 of file error.c.

References errorPrinter, and errorPrinterData.

Referenced by ctags_cli_main(), and tm_ctags_init().

◆ stderrDefaultErrorPrinter()

bool stderrDefaultErrorPrinter ( const errorSelection  selection,
const char *const  format,
va_list  ap,
void *  data 
)

Definition at line 33 of file error.c.

References errno, FATAL, sOptionValues::fatalWarnings, format, getExecutableName(), Option, PERROR, selected, and WARNING.

Referenced by ctags_cli_main().

Variable Documentation

◆ errorPrinter

errorPrintFunc errorPrinter
static

Definition at line 24 of file error.c.

Referenced by setErrorPrinter().

◆ errorPrinterData

void* errorPrinterData
static

Definition at line 25 of file error.c.

Referenced by error(), and setErrorPrinter().