Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
13b3f4d2
提交
13b3f4d2
8月 31, 2010
创建
作者:
Austin Clements
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make it possible to express half-page preferences
上级
fd462b6a
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
4 行删除
+5
-4
runoff
runoff
+5
-4
没有找到文件。
runoff
浏览文件 @
13b3f4d2
...
@@ -82,9 +82,10 @@ perl -e '
...
@@ -82,9 +82,10 @@ perl -e '
next;
next;
}
}
if(/(left|right): (.*)/){
if(/(left|right)
(\+?)
: (.*)/){
$what = $1;
$what = $1;
$file = $2;
$tens = ($2 eq "+" ? "5" : "0");
$file = $3;
if(!defined($toc{$file})){
if(!defined($toc{$file})){
print STDERR "Have no toc for $file\n";
print STDERR "Have no toc for $file\n";
next;
next;
...
@@ -95,11 +96,11 @@ perl -e '
...
@@ -95,11 +96,11 @@ perl -e '
if(!$leftwarn++) {
if(!$leftwarn++) {
print STDERR "assuming that sheet 1 is a right page. double-check!\n";
print STDERR "assuming that sheet 1 is a right page. double-check!\n";
}
}
if($what eq "left" && !($toc{$file} =~ /^\d[02468]
0
/)){
if($what eq "left" && !($toc{$file} =~ /^\d[02468]
$tens
/)){
print STDERR "$file does not start on a fresh left page [$toc{$file}]\n";
print STDERR "$file does not start on a fresh left page [$toc{$file}]\n";
}
}
# why does this not work if I inline $x in the if?
# why does this not work if I inline $x in the if?
$x = ($toc{$file} =~ /^\d[13579]
0
/);
$x = ($toc{$file} =~ /^\d[13579]
$tens
/);
if($what eq "right" && !$x){
if($what eq "right" && !$x){
print STDERR "$file does not start on a fresh right page [$toc{$file}] [$x]\n";
print STDERR "$file does not start on a fresh right page [$toc{$file}] [$x]\n";
}
}
...
...
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论