1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Changed default array sizes.

This commit is contained in:
John Camelon 2004-11-26 18:42:35 +00:00
parent 62dc3744cb
commit cf54709a6b
7 changed files with 18 additions and 6 deletions

View file

@ -3431,5 +3431,17 @@ public class Scanner2 implements IScanner, IScannerData {
public int getCurrentOffset() {
return bufferPos[ bufferStackPos ];
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
public String toString() {
StringBuffer buffer = new StringBuffer( "Scanner @ file:"); //$NON-NLS-1$
buffer.append( getCurrentFilename() );
buffer.append( " line: "); //$NON-NLS-1$
buffer.append( getLineNumber( getCurrentOffset()));
return buffer.toString();
}
}

View file

@ -27,7 +27,7 @@ public class CASTDeclarator extends CASTNode implements IASTDeclarator {
private IASTName name;
private IASTDeclarator nestedDeclarator;
private IASTPointerOperator [] pointerOps = null;
private static final int DEFAULT_PTROPS_LIST_SIZE = 4;
private static final int DEFAULT_PTROPS_LIST_SIZE = 2;
private int currentIndex;
private void removeNullPointers() {

View file

@ -19,7 +19,7 @@ public class CASTFunctionDeclarator extends CASTDeclarator implements
IASTFunctionDeclarator {
private IASTParameterDeclaration [] parameters = null;
private static final int DEFAULT_PARAMETERS_LIST_SIZE = 4;
private static final int DEFAULT_PARAMETERS_LIST_SIZE = 2;
private int currentIndex = 0;
private boolean varArgs;

View file

@ -70,7 +70,7 @@ public class CASTSimpleDeclaration extends CASTNode implements
private int currentIndex = 0;
private IASTDeclarator [] declarators = null;
private static final int DEFAULT_DECLARATORS_LIST_SIZE = 4;
private static final int DEFAULT_DECLARATORS_LIST_SIZE = 2;
private IASTDeclSpecifier declSpecifier;
/**

View file

@ -27,7 +27,7 @@ public class CPPASTDeclarator extends CPPASTNode implements IASTDeclarator {
private IASTName name;
private IASTDeclarator nestedDeclarator;
private IASTPointerOperator [] pointerOps = null;
private static final int DEFAULT_PTROPS_LIST_SIZE = 4;
private static final int DEFAULT_PTROPS_LIST_SIZE = 2;
private int currentIndex;
private void removeNullPointers() {

View file

@ -26,7 +26,7 @@ public class CPPASTFunctionDeclarator extends CPPASTDeclarator implements
ICPPASTFunctionDeclarator {
private IASTParameterDeclaration [] parameters = null;
private static final int DEFAULT_PARAMETERS_LIST_SIZE = 4;
private static final int DEFAULT_PARAMETERS_LIST_SIZE = 2;
private int currentIndex = 0;
private boolean varArgs;

View file

@ -71,7 +71,7 @@ public class CPPASTSimpleDeclaration extends CPPASTNode implements
private int currentIndex = 0;
private IASTDeclarator [] declarators = null;
private static final int DEFAULT_DECLARATORS_LIST_SIZE = 4;
private static final int DEFAULT_DECLARATORS_LIST_SIZE = 2;
private IASTDeclSpecifier declSpecifier;
/**