摘要: typedef (1)定义函数别名 typedef int (*myfun)(int, int); 使用方法: myfun test_fun; //相当于 int test_fun(int, int); //可以用来声明函数,最常用是在结构体里 (2)给变量类型重新定义 typedef struct 阅读全文
posted @ 2024-05-15 14:10 Jabari12 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ## 配置AOSP docker编译环境 ### 1.安装docker ``` curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh ``` 参考:[github](https://github.com/docker/ 阅读全文
posted @ 2023-06-09 00:33 Jabari12 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 1.网上解决方案 https://askubuntu.com/questions/1043337/is-there-to-make-the-login-screen-appear-on-the-external-display-in-18-04 问题:在nvidia独显电脑上不生效 2.实际解决方法 阅读全文
posted @ 2022-09-22 11:44 Jabari12 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 按:Shift + E 阅读全文
posted @ 2022-04-16 01:28 Jabari12 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 在Android.mk中预编译launcher,主要添加LOCAL_OVERRIDES_PACKAGES LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := test_launcher LOCAL_MODULE_TAG 阅读全文
posted @ 2021-04-20 15:08 Jabari12 阅读(677) 评论(0) 推荐(0) 编辑
摘要: xdg-open以默认应用打开文件或者文件夹 打开当前文件夹 xdg-open ./ 打开图片 xdg-open dir/test.png 打开PDF xdg-open dir/test.pdf 阅读全文
posted @ 2021-04-19 11:44 Jabari12 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 只显示一行 git log --online 显示哪些文件增删改了多少行 git log --stat 阅读全文
posted @ 2021-04-16 15:05 Jabari12 阅读(29) 评论(0) 推荐(0) 编辑
摘要: sudo apt install vim-nox 阅读全文
posted @ 2021-04-16 00:58 Jabari12 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Linux 常用kcode 阅读全文
posted @ 2020-07-08 23:44 Jabari12 阅读(114) 评论(0) 推荐(0) 编辑