摘要: 1、本地回退 git reset --hard commit_id 2、下载branch code git clone -b branch_name URL 3、查看已经暂存起来的变化 git diff --cached 4、stash当前修改 git stash 5、重新应用缓存的stash gi 阅读全文
posted @ 2019-02-20 14:08 Malphite 阅读(138) 评论(0) 推荐(0) 编辑
摘要: static void console_log(const char *format, ...) { static FILE *fpConsole; if (fpConsole == NULL) { fpConsole = fopen("/dev/console", "w"); } if (fpConsole != NULL) { char aMsg[3584... 阅读全文
posted @ 2019-02-20 11:31 Malphite 阅读(873) 评论(0) 推荐(0) 编辑
摘要: getLine(char *line, const char *cmd) { FILE *pf = popen(cmd, "r"); if (pf == NULL) { return -1; } fgets(line, 25, pf); if (strlen(line) > 0) { if (line[strlen(line) - 1] == '\n') ... 阅读全文
posted @ 2019-02-20 11:26 Malphite 阅读(486) 评论(0) 推荐(0) 编辑
摘要: -rpath和-rpath-link 假设有3个文件,在同一目录下,有这样的依赖关系 test->liba.so->libd.so 如果编译test的时候这样写 gcc test.c –la warning:libd.so, needed by liba.so not found 解决办法有3个 方 阅读全文
posted @ 2019-02-20 11:21 Malphite 阅读(6453) 评论(0) 推荐(0) 编辑