1 Star 0 Fork 0

SR达人/msteveb_jimtcl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jim-nosignal.c 509 Bytes
一键复制 编辑 原始数据 按行查看 历史
#include <stdio.h>
#include <signal.h>
#include <jim-signal.h>
#include <jim.h>
/* Implement trivial Jim_SignalId() just good enough for JimMakeErrorCode() in [exec] */
/* This works for mingw, but is not really portable */
#ifndef SIGPIPE
#define SIGPIPE 13
#endif
#ifndef SIGINT
#define SIGINT 2
#endif
const char *Jim_SignalId(int sig)
{
static char buf[10];
switch (sig) {
case SIGINT: return "SIGINT";
case SIGPIPE: return "SIGPIPE";
}
snprintf(buf, sizeof(buf), "%d", sig);
return buf;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sr-master/msteveb_jimtcl.git
git@gitee.com:sr-master/msteveb_jimtcl.git
sr-master
msteveb_jimtcl
msteveb_jimtcl
master

搜索帮助