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
2f237c91
Kaydet (Commit)
2f237c91
authored
Tem 12, 2015
tarafından
Dimitar Zhekov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prefix the WIF* macros with SPAWN_ and add short doc comments
üst
f11a2eb0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
10 deletions
+13
-10
build.c
src/build.c
+1
-1
search.c
src/search.c
+3
-3
spawn.c
src/spawn.c
+2
-2
spawn.h
src/spawn.h
+6
-3
tools.c
src/tools.c
+1
-1
No files found.
src/build.c
Dosyayı görüntüle @
2f237c91
...
...
@@ -1042,7 +1042,7 @@ static void show_build_result_message(gboolean failure)
static
void
build_exit_cb
(
GPid
child_pid
,
gint
status
,
gpointer
user_data
)
{
show_build_result_message
(
!
WIFEXITED
(
status
)
||
WEXITSTATUS
(
status
)
!=
EXIT_SUCCESS
);
show_build_result_message
(
!
SPAWN_WIFEXITED
(
status
)
||
SPAWN_
WEXITSTATUS
(
status
)
!=
EXIT_SUCCESS
);
utils_beep
();
build_info
.
pid
=
0
;
...
...
src/search.c
Dosyayı görüntüle @
2f237c91
...
...
@@ -1849,11 +1849,11 @@ static void search_finished(GPid child_pid, gint status, gpointer user_data)
#ifdef G_OS_UNIX
gint
exit_status
=
1
;
if
(
WIFEXITED
(
status
))
if
(
SPAWN_
WIFEXITED
(
status
))
{
exit_status
=
WEXITSTATUS
(
status
);
exit_status
=
SPAWN_
WEXITSTATUS
(
status
);
}
else
if
(
WIFSIGNALED
(
status
))
else
if
(
SPAWN_
WIFSIGNALED
(
status
))
{
exit_status
=
-
1
;
g_warning
(
"Find in Files: The command failed unexpectedly (signal received)."
);
...
...
src/spawn.c
Dosyayı görüntüle @
2f237c91
...
...
@@ -1164,8 +1164,8 @@ static void print_status(gint status)
{
fputs
(
"finished, "
,
stderr
);
if
(
WIFEXITED
(
status
))
fprintf
(
stderr
,
"exit code %d
\n
"
,
WEXITSTATUS
(
status
));
if
(
SPAWN_
WIFEXITED
(
status
))
fprintf
(
stderr
,
"exit code %d
\n
"
,
SPAWN_
WEXITSTATUS
(
status
));
else
fputs
(
"abnormal termination
\n
"
,
stderr
);
}
...
...
src/spawn.h
Dosyayı görüntüle @
2f237c91
...
...
@@ -25,12 +25,15 @@
#include <glib.h>
#ifdef G_OS_WIN32
# define
WIFEXITED(status) TRUE
# define
WEXITSTATUS(status) (status)
# define
WIFSIGNALED(status) FALSE
# define
SPAWN_WIFEXITED(status) TRUE
/**< non-zero if the child exited normally */
# define
SPAWN_WEXITSTATUS(status) (status)
/**< exit status of a child if exited normally */
# define
SPAWN_WIFSIGNALED(status) FALSE
/**< non-zero if the child exited due to signal */
#else
# include <sys/types.h>
# include <sys/wait.h>
# define SPAWN_WIFEXITED(status) WIFEXITED(status)
# define SPAWN_WEXITSTATUS(status) WEXITSTATUS(status)
# define SPAWN_WIFSIGNALED(status) WIFSIGNALED(status)
#endif
G_BEGIN_DECLS
...
...
src/tools.c
Dosyayı görüntüle @
2f237c91
...
...
@@ -226,7 +226,7 @@ void tools_execute_custom_command(GeanyDocument *doc, const gchar *command)
"Your selection was not changed. Error message: %s"
),
errors
->
str
);
}
else
if
(
!
WIFEXITED
(
status
)
||
WEXITSTATUS
(
status
)
!=
EXIT_SUCCESS
)
else
if
(
!
SPAWN_WIFEXITED
(
status
)
||
SPAWN_
WEXITSTATUS
(
status
)
!=
EXIT_SUCCESS
)
{
/* TODO maybe include the exit code in the error message */
ui_set_statusbar
(
TRUE
,
...
...
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