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:
parent
910c275de7
commit
957665c172
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue