логический тип в инт
This commit is contained in:
@@ -14,7 +14,7 @@ public class FuncCall extends FileObjectWithMessages{
|
||||
@Expose
|
||||
public String funcName = ""; //не нужны дополнительные поля.имя функции это уже ключ.
|
||||
@Expose
|
||||
public boolean canBeInlined = false;
|
||||
public int canBeInlined = 0;
|
||||
@Expose
|
||||
public int parent_offset = 0;
|
||||
//---
|
||||
@@ -31,7 +31,7 @@ public class FuncCall extends FileObjectWithMessages{
|
||||
}
|
||||
@Override
|
||||
public boolean isSelectionEnabled() {
|
||||
return canBeInlined;
|
||||
return canBeInlined!=0;
|
||||
}
|
||||
@Override
|
||||
public String getSelectionText() {
|
||||
|
||||
@@ -24,7 +24,7 @@ public class FuncCallH extends FuncCall {
|
||||
file = funcInfo.file;
|
||||
line = funcInfo.line;
|
||||
funcName = funcInfo.funcName;
|
||||
canBeInlined = true;
|
||||
canBeInlined = 1;
|
||||
parent_offset = 0;
|
||||
}
|
||||
@Override
|
||||
|
||||
@@ -18,11 +18,11 @@ public class FuncInfo extends FileObjectWithMessages {
|
||||
@Expose
|
||||
public FunctionType type;
|
||||
@Expose
|
||||
public boolean doNotInline;
|
||||
public int doNotInline;
|
||||
@Expose
|
||||
public boolean doNotAnalyze;
|
||||
public int doNotAnalyze;
|
||||
@Expose
|
||||
public boolean needToInline;
|
||||
public int needToInline;
|
||||
@Expose
|
||||
public FuncParam parameters;
|
||||
//вызовы функций в теле этой функции
|
||||
@@ -38,9 +38,9 @@ public class FuncInfo extends FileObjectWithMessages {
|
||||
funcName = f_name;
|
||||
lineEnd = Integer.parseInt(splited[1]);
|
||||
calls_number.Set(Integer.parseInt(splited[2]));
|
||||
needToInline = (Integer.parseInt(splited[3])) != 0;
|
||||
doNotInline = (Integer.parseInt(splited[4])) != 0;
|
||||
doNotAnalyze = (Integer.parseInt(splited[5])) != 0;
|
||||
needToInline = Integer.parseInt(splited[3]);
|
||||
doNotInline = Integer.parseInt(splited[4]);
|
||||
doNotAnalyze = Integer.parseInt(splited[5]);
|
||||
//в си это поле isMain
|
||||
type = ((Integer.parseInt(splited[6])) != 0) ? FunctionType.Main : FunctionType.Default;
|
||||
parameters = new FuncParam();
|
||||
@@ -55,7 +55,7 @@ public class FuncInfo extends FileObjectWithMessages {
|
||||
public FuncInfo(String f_name, FunctionType type_in) {
|
||||
funcName = f_name;
|
||||
type = type_in;
|
||||
doNotInline = true;
|
||||
doNotInline = 1;
|
||||
}
|
||||
//--
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user