摘要: cmake_minimum_required(VERSION 2.8) project(app) #指定生成的版本 set(CMAKE_BUILD_TYPE DEBUG) # 例程:cmake .. -DCURRENT_COMPILER=ARM if(CURRENT_COMPILER MATCHES 阅读全文
posted @ 2021-04-30 12:21 joyce3800 阅读(43) 评论(0) 推荐(0) 编辑
摘要: int os_sock_ipv4_is_valied(const char *addr) { uint32_t seg[4] = {0}; const char *start, *end; int cnt = 0; if (!addr || (!*addr)) { error("not invali 阅读全文
posted @ 2021-04-26 13:49 joyce3800 阅读(466) 评论(0) 推荐(0) 编辑
摘要: os_vimp.h /* * @Description:数据类型简秿 * @Author: wlyu * @Date: 2021-03-09 17:32:03 * @LastEditTime: 2021-04-13 15:46:07 * @LastEditors: wlyu * @Reference 阅读全文
posted @ 2021-04-13 18:29 joyce3800 阅读(37) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #define BITSPERWORD 32 #define SHIFT 5 #define MASK 0x1F #define N 1024 int a[1 + N/BITSPER 阅读全文
posted @ 2021-02-20 15:32 joyce3800 阅读(44) 评论(0) 推荐(0) 编辑
摘要: // dl_list.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <stdio.h> #include <string.h> #define OS_OK (1) #define OS_FAIL (0) #define OS_ERROR ( 阅读全文
posted @ 2021-02-20 10:56 joyce3800 阅读(108) 评论(0) 推荐(0) 编辑
摘要: git help 想了解 Git 的各式工具该怎么用,可以阅读它们的使用帮助,方法有三: $ git help [命令]$ git [命令] --help$ man git 比如,要学习 config 命令可以怎么用,运行: $ git help config 阅读全文
posted @ 2021-02-03 15:18 joyce3800 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 1. 删除掉本地不存在的远程分支 多人合作开发时,如果远程的分支被其他开发删除掉,在本地执行 git branch --all 依然会显示该远程分支,可使用下列的命令进行删除: # 使用 pull 命令,添加 -p 参数 $ git pull -p # 等同于下面的命令 $ git fetch -p 阅读全文
posted @ 2021-02-03 15:15 joyce3800 阅读(77) 评论(0) 推荐(0) 编辑
摘要: git rm 删除文件或者文件夹。 # 移除跟踪指定的文件,并从本地仓库的文件夹中删除 $ git rm <文件路径> # 移除跟踪指定的文件夹,并从本地仓库的文件夹中删除 $ git rm -r <文件夹路径> # 移除跟踪指定的文件,在本地仓库的文件夹中保留该文件 $ git rm --cach 阅读全文
posted @ 2021-02-03 15:11 joyce3800 阅读(85) 评论(0) 推荐(0) 编辑
摘要: git mv 重命名文件或者文件夹。 # 重命名指定的文件或者文件夹 $ git mv <源文件/文件夹> <目标文件/文件夹> 阅读全文
posted @ 2021-02-03 15:10 joyce3800 阅读(56) 评论(0) 推荐(0) 编辑
摘要: git tag 操作标签的命令。 # 打印所有的标签 $ git tag # 添加轻量标签,指向提交对象的引用,可以指定之前的提交记录 $ git tag <标签名称> [<commit ID>] # 添加带有描述信息的附注标签,可以指定之前的提交记录 $ git tag -a <标签名称> -m 阅读全文
posted @ 2021-02-03 15:09 joyce3800 阅读(60) 评论(0) 推荐(0) 编辑