gendef.pl

来自「SDL库 在进行视频显示程序spcaview安装时必须的库文件」· PL 代码 · 共 44 行

PL
44
字号
#!/usr/bin/perl## Program to take a set of header files and generate DLL export definitions# Special exports to ignore for this platformwhile ( ($file = shift(@ARGV)) ) {	if ( ! defined(open(FILE, $file)) ) {		warn "Couldn't open $file: $!\n";		next;	}	$printed_header = 0;	$file =~ s,.*/,,;	while (<FILE>) {		if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) {			if ( not $exclude{$1} ) {				print "\t$1\n";			}		}	}	close(FILE);}# Special exports to include for this platformprint "\tSDL_putenv\n";print "\tSDL_getenv\n";print "\tSDL_qsort\n";print "\tSDL_revcpy\n";print "\tSDL_strlcpy\n";print "\tSDL_strlcat\n";print "\tSDL_strdup\n";print "\tSDL_strrev\n";print "\tSDL_strupr\n";print "\tSDL_strlwr\n";print "\tSDL_ltoa\n";print "\tSDL_ultoa\n";print "\tSDL_strcasecmp\n";print "\tSDL_strncasecmp\n";print "\tSDL_snprintf\n";print "\tSDL_vsnprintf\n";print "\tSDL_iconv\n";print "\tSDL_iconv_string\n";print "\tSDL_InitQuickDraw\n";

⌨️ 快捷键说明

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