⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 symgen

📁 一个用在mips体系结构中的操作系统
💻
字号:
#!/powderkeg/local/bin/perl5 -w## Copyright (C) 1996-1998 by the Board of Trustees#    of Leland Stanford Junior University.# # This file is part of the SimOS distribution. # See LICENSE file for terms of the license. ####### symgen sym.files###### Source file annotations:###    /*!annote <name> */###$deffile = ($ARGV[1]) ? $ARGV[1] : "sym.files";open(DEF, "$deffile") || die "Could not find def file, exiting.";$srcfile = 0;while (<DEF>) {    if (/^(\S+)/) {        $srcfile = $1;        open(SRCFILE, "$srcfile") || die "ERROR: Bad file $srcfile\n";        my(@t) = split("/", $srcfile);        $filename = pop(@t);         print "looking at $filename\n";                while (<SRCFILE>) {            if (m%/\*!annote\s+(\w+)\s*\*/%) {                $name = $1;                print "lappend $name kernel:$filename:$.\n";                            } elsif (m%/\*(annote) ([^*]*)\*/%) {                print STDERR "WARNING: $srcfile:$., possible typo, ignored\n$_";            }        }                close(SRCFILE);            } elsif (/\S/) {        print STDERR "WARNING: possible typo in def file line $., ignored\n";    }}close(DEF);exit;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -