Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
geany
Commits
a95fc1a9
Kaydet (Commit)
a95fc1a9
authored
Kas 05, 2014
tarafından
Jiří Techet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't expose the source file update function to plugins
üst
90944c77
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
16 deletions
+10
-16
geanyfunctions.h
plugins/geanyfunctions.h
+0
-2
document.c
src/document.c
+1
-1
plugindata.h
src/plugindata.h
+0
-1
plugins.c
src/plugins.c
+0
-1
tm_workspace.c
tagmanager/src/tm_workspace.c
+7
-9
tm_workspace.h
tagmanager/src/tm_workspace.h
+2
-2
No files found.
plugins/geanyfunctions.h
Dosyayı görüntüle @
a95fc1a9
...
...
@@ -350,8 +350,6 @@
geany_functions->p_tm->tm_source_file_free
#define tm_workspace_add_source_file \
geany_functions->p_tm->tm_workspace_add_source_file
#define tm_workspace_update_source_file \
geany_functions->p_tm->tm_workspace_update_source_file
#define tm_workspace_remove_source_file \
geany_functions->p_tm->tm_workspace_remove_source_file
#define tm_workspace_add_source_files \
...
...
src/document.c
Dosyayı görüntüle @
a95fc1a9
...
...
@@ -2488,7 +2488,7 @@ void document_update_tags(GeanyDocument *doc)
g_free
(
locale_filename
);
if
(
doc
->
tm_file
)
tm_workspace_add_source_file
(
doc
->
tm_file
);
tm_workspace_add_source_file
_noupdate
(
doc
->
tm_file
);
}
/* early out if there's no tm source file and we couldn't create one */
...
...
src/plugindata.h
Dosyayı görüntüle @
a95fc1a9
...
...
@@ -602,7 +602,6 @@ typedef struct TagManagerFuncs
TMSourceFile
*
(
*
tm_source_file_new
)
(
const
char
*
file_name
,
const
char
*
name
);
void
(
*
tm_source_file_free
)
(
TMSourceFile
*
source_file
);
void
(
*
tm_workspace_add_source_file
)
(
TMSourceFile
*
source_file
);
void
(
*
tm_workspace_update_source_file
)
(
TMSourceFile
*
source_file
);
void
(
*
tm_workspace_remove_source_file
)
(
TMSourceFile
*
source_file
);
void
(
*
tm_workspace_add_source_files
)
(
GPtrArray
*
source_files
);
void
(
*
tm_workspace_remove_source_files
)
(
GPtrArray
*
source_files
);
...
...
src/plugins.c
Dosyayı görüntüle @
a95fc1a9
...
...
@@ -292,7 +292,6 @@ static TagManagerFuncs tagmanager_funcs = {
&
tm_source_file_new
,
&
tm_source_file_free
,
&
tm_workspace_add_source_file
,
&
tm_workspace_update_source_file
,
&
tm_workspace_remove_source_file
,
&
tm_workspace_add_source_files
,
&
tm_workspace_remove_source_files
...
...
tagmanager/src/tm_workspace.c
Dosyayı görüntüle @
a95fc1a9
...
...
@@ -154,9 +154,7 @@ static void update_source_file(TMSourceFile *source_file, guchar* text_buf,
}
/** Adds a source file to the workspace. At some point, tm_workspace_update_source_file()
has to be called to parse the source file, create the source file's tag array
and update the workspace tag arrays.
/** Adds a source file to the workspace, parses it and updates the workspace tags.
@param source_file The source file to add to the workspace.
*/
void
tm_workspace_add_source_file
(
TMSourceFile
*
source_file
)
...
...
@@ -164,15 +162,15 @@ void tm_workspace_add_source_file(TMSourceFile *source_file)
g_return_if_fail
(
source_file
!=
NULL
);
g_ptr_array_add
(
theWorkspace
->
source_files
,
source_file
);
update_source_file
(
source_file
,
NULL
,
0
,
FALSE
,
TRUE
);
}
/** Parses the source file, updates its tag array and the workspace tag arrays.
@param source_file The source file to update.
*/
void
tm_workspace_update_source_file
(
TMSourceFile
*
source_file
)
void
tm_workspace_add_source_file_noupdate
(
TMSourceFile
*
source_file
)
{
update_source_file
(
source_file
,
NULL
,
0
,
FALSE
,
TRUE
);
g_return_if_fail
(
source_file
!=
NULL
);
g_ptr_array_add
(
theWorkspace
->
source_files
,
source_file
);
}
...
...
@@ -277,7 +275,7 @@ void tm_workspace_add_source_files(GPtrArray *source_files)
{
TMSourceFile
*
source_file
=
source_files
->
pdata
[
i
];
tm_workspace_add_source_file
(
source_file
);
tm_workspace_add_source_file
_noupdate
(
source_file
);
update_source_file
(
source_file
,
NULL
,
0
,
FALSE
,
FALSE
);
}
...
...
tagmanager/src/tm_workspace.h
Dosyayı görüntüle @
a95fc1a9
...
...
@@ -38,8 +38,6 @@ typedef struct
void
tm_workspace_add_source_file
(
TMSourceFile
*
source_file
);
void
tm_workspace_update_source_file
(
TMSourceFile
*
source_file
);
void
tm_workspace_remove_source_file
(
TMSourceFile
*
source_file
);
void
tm_workspace_add_source_files
(
GPtrArray
*
source_files
);
...
...
@@ -68,6 +66,8 @@ const GPtrArray *tm_workspace_find_scope_members(const GPtrArray *file_tags,
gboolean
find_global
,
gboolean
no_definitions
);
void
tm_workspace_add_source_file_noupdate
(
TMSourceFile
*
source_file
);
void
tm_workspace_update_source_file_buffer
(
TMSourceFile
*
source_file
,
guchar
*
text_buf
,
gint
buf_size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment