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

📄 nplist.c

📁 cfront是最开始c++语言到C语言的转换工具
💻 C
字号:
/*ident	"@(#)cls4:tools/demangler/osrc/nplist.c	1.1" *//******************************************************************************* C++ source for the C++ Language System, Release 3.0.  This productis a new release of the original cfront developed in the computerscience research center of AT&T Bell Laboratories.Copyright (c) 1991 AT&T and UNIX System Laboratories, Inc.Copyright (c) 1984, 1989, 1990 AT&T.  All Rights Reserved.THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE of AT&T and UNIX SystemLaboratories, Inc.  The copyright notice above does not evidenceany actual or intended publication of such source code.*******************************************************************************//* * C++ Demangler Source Code * @(#)master	1.5 * 7/27/88 13:54:37 */#include "elf_dem.h"struct name_pair {	char *s1,*s2;};static struct name_pair nplist[100] = {	{"lt","<"},    {"ls","<<"},      {"dv","/"}, 	{"gt",">"},    {"rs",">>"},      {"md","%"}, 	{"le","<="},   {"ml","*"},       {"pl","+"}, 	{"ge",">="},   {"ad","&"},       {"mi","-"}, 	{"ne","!="},   {"or","|"},       {"er","^"}, 	{"aa","&&"},   {"oo","||"},      {"as","="}, 	{"apl","+="},  {"ami","-="},     {"amu","*="}, 	{"adv","/="},  {"amd","%="},     {"aad","&="}, 	{"aor","|="},  {"aer","^="},     {"als","<<="},	{"ars",">>="}, {"pp","++"},      {"mm","--"},	{"vc","[]"},   {"cl","()"},      {"rf","->"},	{"eq","=="},   {"co","~"},       {"nt","!"},	{"nw"," new"}, {"dl"," delete"}, {"cm",","},	 {0,0} };/* This routine demangles an overloaded operator function */char *findop(c,oplen)char *c;int *oplen;{	register int i,opl;	for(opl=0; c[opl] && c[opl] != '_'; opl++)		;	*oplen = opl;	for(i=0; nplist[i].s1; i++) {		if(memcmp(nplist[i].s1,c,opl) == 0)			return nplist[i].s2;	}	return 0;}

⌨️ 快捷键说明

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