buildatoms

来自「远程桌面连接工具」· 代码 · 共 44 行

TXT
44
字号
#!/bin/shhfile=../../../include/Xatom.hcfile=initatoms.crm -f $hfile $cfileumask 222awk 'BEGIN {	hfile = "'$hfile'";	cfile = "'$cfile'";	hformat = "#define XA_%s ((Atom) %d)\n";	printf("#ifndef XATOM_H\n") > hfile;	printf("#define XATOM_H 1\n\n") > hfile;	printf("/* THIS IS A GENERATED FILE\n") > hfile;	printf(" *\n") > hfile;	printf(" * Do not change!  Changing this file implies a protocol change!\n") > hfile;	printf(" */\n\n") > hfile;	printf("/* THIS IS A GENERATED FILE\n") > cfile;	printf(" *\n") > cfile;	printf(" * Do not change!  Changing this file implies a protocol change!\n") > cfile;	printf(" */\n\n") > cfile;	printf("#include \"X.h\"\n") > cfile;	printf("#include \"Xatom.h\"\n") > cfile;	printf("#include \"misc.h\"\n") > cfile;	printf("#include \"dix.h\"\n") > cfile;	printf("void MakePredeclaredAtoms()\n") > cfile;	printf("{\n") > cfile;	}NF == 2 && $2 == "@" {	printf(hformat, $1, ++atomno) > hfile ;	printf("    if (MakeAtom(\"%s\", %d, 1) != XA_%s) AtomError();\n", $1, length($1), $1) > cfile ;	}END {	printf("\n") > hfile;	printf(hformat, "LAST_PREDEFINED", atomno) > hfile ;	printf("#endif /* XATOM_H */\n") > hfile;	printf("}\n") > cfile ;	}' BuiltInAtomsexit 0

⌨️ 快捷键说明

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