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
![]() ![]() |
The TMSourceFile structure and associated functions are used to maintain tags for individual files. More...
Go to the source code of this file.
Classes | |
struct | TMSourceFile |
The TMSourceFile structure represents the source file and its tags in the tag manager. More... | |
Macros | |
#define | TM_SOURCE_FILE(source_file) ((TMSourceFile *) source_file) |
#define | FALLBACK(X, Y) (X)?(X):(Y) |
Typedefs | |
typedef struct TMSourceFile | TMSourceFile |
The TMSourceFile structure represents the source file and its tags in the tag manager. More... | |
Functions | |
GType | tm_source_file_get_type (void) |
TMSourceFile * | tm_source_file_new (const char *file_name, const char *name) |
Initializes a TMSourceFile structure and returns a pointer to it. More... | |
void | tm_source_file_free (TMSourceFile *source_file) |
Decrements the reference count of source_file. More... | |
gchar * | tm_get_real_path (const gchar *file_name) |
Given a file name, returns a newly allocated string containing the realpath() of the file. More... | |
The TMSourceFile structure and associated functions are used to maintain tags for individual files.
Definition in file tm_source_file.h.
#define FALLBACK | ( | X, | |
Y | |||
) | (X)?(X):(Y) |
Definition at line 26 of file tm_source_file.h.
#define TM_SOURCE_FILE | ( | source_file | ) | ((TMSourceFile *) source_file) |
Definition at line 23 of file tm_source_file.h.
typedef struct TMSourceFile TMSourceFile |
The TMSourceFile structure represents the source file and its tags in the tag manager.
gchar * tm_get_real_path | ( | const gchar * | file_name | ) |
Given a file name, returns a newly allocated string containing the realpath() of the file.
file_name | The original file_name |
Definition at line 124 of file tm_source_file.c.
References get_path_max(), and NULL.
Referenced by tm_source_file_init(), and utils_get_real_path().
void tm_source_file_free | ( | TMSourceFile * | source_file | ) |
Decrements the reference count of source_file.
If the reference count drops to 0, then source_file is freed, including all contents. Make sure the source_file is already removed from any TMWorkSpace before the this happens.
source_file | The source file to free. |
Definition at line 663 of file tm_source_file.c.
References NULL, priv, SOURCE_FILE_FREE, and tm_source_file_destroy().
Referenced by document_load_config(), handle_save_as(), remove_page(), tm_workspace_create_global_tags(), and tm_workspace_free().
GType tm_source_file_get_type | ( | void | ) |
TMSourceFile * tm_source_file_new | ( | const char * | file_name, |
const char * | name | ||
) |
Initializes a TMSourceFile structure and returns a pointer to it.
The TMSourceFile has to be added to TMWorkspace to start its parsing.
file_name | The file name. |
name | Name of the used programming language, NULL to disable parsing. |
Definition at line 614 of file tm_source_file.c.
References name, NULL, priv, SOURCE_FILE_FREE, SOURCE_FILE_NEW, and tm_source_file_init().
Referenced by document_update_tags(), and tm_workspace_create_global_tags().