00001 #ifndef __OBFUSCATE_H__ 00002 #define __OBFUSCATE_H__ 00003 00004 /* 00005 Copyright (c) 2006-2009 Trevor Williams 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by the Free Software 00009 Foundation; either version 2 of the License, or (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00012 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 See the GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License along with this program; 00016 if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00030 #define obf_sig(x) (obf_mode ? obfuscate_name(x,'s') : x) 00031 00036 #define obf_funit(x) (obf_mode ? obfuscate_name(x,'f') : x) 00037 00041 #define obf_file(x) (obf_mode ? obfuscate_name(x,'v') : x) 00042 00046 #define obf_inst(x) (obf_mode ? obfuscate_name(x,'i') : x) 00047 00048 00049 extern bool obf_mode; 00050 00051 00053 void obfuscate_set_mode( bool value ); 00054 00056 /*@shared@*/ char* obfuscate_name( const char* real_name, char prefix ); 00057 00059 void obfuscate_dealloc(); 00060 00061 #endif 00062
1.3.4