mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-01 12:43:26 +02:00
Changed default array sizes.
This commit is contained in:
parent
62dc3744cb
commit
cf54709a6b
7 changed files with 18 additions and 6 deletions
|
@ -3431,5 +3431,17 @@ public class Scanner2 implements IScanner, IScannerData {
|
||||||
public int getCurrentOffset() {
|
public int getCurrentOffset() {
|
||||||
return bufferPos[ bufferStackPos ];
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class CASTDeclarator extends CASTNode implements IASTDeclarator {
|
||||||
private IASTName name;
|
private IASTName name;
|
||||||
private IASTDeclarator nestedDeclarator;
|
private IASTDeclarator nestedDeclarator;
|
||||||
private IASTPointerOperator [] pointerOps = null;
|
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 int currentIndex;
|
||||||
|
|
||||||
private void removeNullPointers() {
|
private void removeNullPointers() {
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class CASTFunctionDeclarator extends CASTDeclarator implements
|
||||||
IASTFunctionDeclarator {
|
IASTFunctionDeclarator {
|
||||||
|
|
||||||
private IASTParameterDeclaration [] parameters = null;
|
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 int currentIndex = 0;
|
||||||
private boolean varArgs;
|
private boolean varArgs;
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class CASTSimpleDeclaration extends CASTNode implements
|
||||||
|
|
||||||
private int currentIndex = 0;
|
private int currentIndex = 0;
|
||||||
private IASTDeclarator [] declarators = null;
|
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;
|
private IASTDeclSpecifier declSpecifier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class CPPASTDeclarator extends CPPASTNode implements IASTDeclarator {
|
||||||
private IASTName name;
|
private IASTName name;
|
||||||
private IASTDeclarator nestedDeclarator;
|
private IASTDeclarator nestedDeclarator;
|
||||||
private IASTPointerOperator [] pointerOps = null;
|
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 int currentIndex;
|
||||||
|
|
||||||
private void removeNullPointers() {
|
private void removeNullPointers() {
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class CPPASTFunctionDeclarator extends CPPASTDeclarator implements
|
||||||
ICPPASTFunctionDeclarator {
|
ICPPASTFunctionDeclarator {
|
||||||
|
|
||||||
private IASTParameterDeclaration [] parameters = null;
|
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 int currentIndex = 0;
|
||||||
private boolean varArgs;
|
private boolean varArgs;
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class CPPASTSimpleDeclaration extends CPPASTNode implements
|
||||||
|
|
||||||
private int currentIndex = 0;
|
private int currentIndex = 0;
|
||||||
private IASTDeclarator [] declarators = null;
|
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;
|
private IASTDeclSpecifier declSpecifier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue