mirror of
https://github.com/janet-lang/janet
synced 2024-11-24 17:27:18 +00:00
fixed formatting in src/core/os.c
This commit is contained in:
parent
b4b1c7d80b
commit
4dfc869b8a
@ -650,7 +650,7 @@ static const struct keyword_signal signal_keywords[] = {
|
||||
#endif
|
||||
#ifdef SIGPIPE
|
||||
{"pipe", SIGPIPE},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef SIGQUIT
|
||||
{"quit", SIGQUIT},
|
||||
#endif
|
||||
@ -731,17 +731,17 @@ JANET_CORE_FN(os_proc_kill,
|
||||
CloseHandle(proc->tHandle);
|
||||
#else
|
||||
int signal = -1;
|
||||
if(argc == 3){
|
||||
if (argc == 3) {
|
||||
JanetKeyword signal_kw = janet_getkeyword(argv, 2);
|
||||
const struct keyword_signal *ptr = signal_keywords;
|
||||
while (ptr->keyword){
|
||||
if(!janet_cstrcmp(signal_kw, ptr->keyword)){
|
||||
while (ptr->keyword) {
|
||||
if (!janet_cstrcmp(signal_kw, ptr->keyword)) {
|
||||
signal = ptr->signal;
|
||||
break;
|
||||
}
|
||||
ptr++;
|
||||
}
|
||||
if(signal == -1){
|
||||
if (signal == -1) {
|
||||
janet_panic("undefined signal");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user