Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
itdan3344
stb
提交
c1ad6b09
S
stb
项目概览
itdan3344
/
stb
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
stb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c1ad6b09
编写于
4月 14, 2015
作者:
S
Sean Barrett
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make table more readable by shrinking some columns horizontally
上级
3c209056
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
6 deletion
+16
-6
README.md
README.md
+2
-2
tools/README.list
tools/README.list
+2
-2
tools/make_readme.c
tools/make_readme.c
+12
-2
未找到文件。
README.md
浏览文件 @
c1ad6b09
...
...
@@ -17,8 +17,8 @@ library | lastest version | category | Lines Of Code | description
**stb_dxt.h**
| 1.04 | 3D
graphics | 624 | Fabian "ryg" Giesen's real-time DXT compressor
**stb_perlin.h**
| 0.2 | 3D
graphics | 175 | revised Perlin noise (3D input, 1D output)
**stb_easy_font.h**
| 0.5 | 3D
graphics | 220 | quick-and-dirty easy-to-deploy bitmap font for printing frame rate, etc
**stb_tilemap_editor.h**
| 0.30 | game
dev
elopment
| 4097 | embeddable tilemap editor
**stb_herringbone_wa
ng_tile.h**
| 0.6 | game
development
| 1217 | herringbone Wang tile map generator
**stb_tilemap_editor.h**
| 0.30 | game
dev | 4097 | embeddable tilemap editor
**stb_herringbone_wa
...**
| 0.6 | game
dev
| 1217 | herringbone Wang tile map generator
**stb_c_lexer.h**
| 0.06 | parsing | 809 | simplify writing parsers for C-like languages
**stb_divide.h**
| 0.91 | math | 373 | more useful 32-bit modulus e.g. "euclidean divide"
**stb.h**
| 2.24 | misc | 14086 | helper functions for C, mostly redundant in C++; basically author's personal stuff
...
...
tools/README.list
浏览文件 @
c1ad6b09
...
...
@@ -10,8 +10,8 @@ stb_voxel_render.h | 3D graphics | Minecraft-esque voxel rendering
stb_dxt.h | 3D graphics | Fabian "ryg" Giesen's real-time DXT compressor
stb_perlin.h | 3D graphics | revised Perlin noise (3D input, 1D output)
stb_easy_font.h | 3D graphics | quick-and-dirty easy-to-deploy bitmap font for printing frame rate, etc
stb_tilemap_editor.h | game dev
elopment
| embeddable tilemap editor
stb_herringbone_wang_tile.h | game dev
elopment
| herringbone Wang tile map generator
stb_tilemap_editor.h | game dev
| embeddable tilemap editor
stb_herringbone_wang_tile.h | game dev
| herringbone Wang tile map generator
stb_c_lexer.h | parsing | simplify writing parsers for C-like languages
stb_divide.h | math | more useful 32-bit modulus e.g. "euclidean divide"
stb.h | misc | helper functions for C, mostly redundant in C++; basically author's personal stuff
...
...
tools/make_readme.c
浏览文件 @
c1ad6b09
...
...
@@ -17,7 +17,7 @@ int main(int argc, char **argv)
char
**
tokens
=
stb_tokens_stripwhite
(
list
[
i
],
"|"
,
&
num
);
// stb_tokens -- tokenize string into malloced array of strings
int
num_lines
;
char
**
lines
=
stb_stringfile
(
stb_sprintf
(
"../%s"
,
tokens
[
0
]),
&
num_lines
);
char
*
s1
,
*
s2
;
char
*
s1
,
*
s2
,
*
s3
;
s1
=
strchr
(
lines
[
0
],
'-'
);
if
(
!
s1
)
stb_fatal
(
"Couldn't find '-' before version number in %s"
,
tokens
[
0
]);
// stb_fatal -- print error message & exit
s2
=
strchr
(
s1
+
2
,
'-'
);
...
...
@@ -26,7 +26,17 @@ int main(int argc, char **argv)
s1
+=
1
;
s1
=
stb_trimwhite
(
s1
);
// stb_trimwhite -- advance pointer to after whitespace & delete trailing whitespace
if
(
*
s1
==
'v'
)
++
s1
;
fprintf
(
f
,
"**%s** | %s"
,
tokens
[
0
],
s1
);
s3
=
tokens
[
0
];
stb_trimwhite
(
s3
);
if
(
strlen
(
s3
)
<
21
)
{
fprintf
(
f
,
"**%s** | %s"
,
tokens
[
0
],
s1
);
}
else
{
char
buffer
[
256
];
strncpy
(
buffer
,
s3
,
18
);
buffer
[
18
]
=
0
;
strcat
(
buffer
,
"..."
);
fprintf
(
f
,
"**%s** | %s"
,
buffer
,
s1
);
}
s1
=
stb_trimwhite
(
tokens
[
1
]);
// stb_trimwhite -- advance pointer to after whitespace & delete trailing whitespace
s2
=
stb_dupreplace
(
s1
,
" "
,
" "
);
// stb_dupreplace -- search & replace string and malloc result
fprintf
(
f
,
" | %s"
,
s2
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录