Author: laijx Date: 2011-01-12 02:51:45 -0500 (Wed, 12 Jan 2011) New Revision: 3457
Modified: trunk/osprey/ipa/common/ipc_compile.cxx trunk/osprey/ipa/common/ipc_pic.cxx Log: Fix bug 716. Replace characters other than 'A-Za-z0-9' by '_' for object name which will be used in identifier. Approved by Sun. Modified: trunk/osprey/ipa/common/ipc_compile.cxx =================================================================== --- trunk/osprey/ipa/common/ipc_compile.cxx 2011-01-12 07:45:28 UTC (rev 3456) +++ trunk/osprey/ipa/common/ipc_compile.cxx 2011-01-12 07:51:45 UTC (rev 3457) @@ -208,7 +208,7 @@ */ static char* proper_name(char *name){ for(char *i = name; *i; i++) { - if ( *i == '-' ) *i = '_'; + if ( !isalnum(*i) ) *i = '_'; } return name; } Modified: trunk/osprey/ipa/common/ipc_pic.cxx =================================================================== --- trunk/osprey/ipa/common/ipc_pic.cxx 2011-01-12 07:45:28 UTC (rev 3456) +++ trunk/osprey/ipa/common/ipc_pic.cxx 2011-01-12 07:51:45 UTC (rev 3457) @@ -63,7 +63,7 @@ int i; for(i=0; bname[i] != '\0'; i++) { - if ( bname[i] == '-' ) IPA_Object_Name[i] = '_'; + if ( !isalnum(bname[i]) ) IPA_Object_Name[i] = '_'; else IPA_Object_Name[i] = bname[i]; } IPA_Object_Name[i] = '\0'; ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel