1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

2005-07-06 Alain Magloire

Fix PR 99130: no leading underscore in the guard header name
	* src/org/eclipse/cdt/internal/ui/wizards/filewizard/NewSourceFIleGenerator.java
This commit is contained in:
Alain Magloire 2005-07-06 17:42:22 +00:00
parent 910c275de7
commit 957665c172
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-07-06 Alain Magloire
Fix PR 99130: no leading underscore in the guard header name
* src/org/eclipse/cdt/internal/ui/wizards/filewizard/NewSourceFIleGenerator.java
2005-07-06 Alain Magloire
PR 102789: Add Include dialog typo
* src/org/eclipse/cdt/internal/ui/editor/AddIncludeOnSelectionAction.java

View file

@ -80,7 +80,8 @@ public class NewSourceFileGenerator {
//convert to upper case and remove invalid characters
//eg convert foo.h --> _FOO_H_
StringBuffer buf = new StringBuffer();
buf.append('_');
// Do not do this, leading underscores are discourage by the std.
//buf.append('_');
for (int i = 0; i < name.length(); ++i) {
char ch = name.charAt(i);
if (Character.isLetterOrDigit(ch)) {