[apps/code] Search aphabetically if var is already in var box

This commit is contained in:
Léa Saviot
2020-03-26 11:58:24 +01:00
committed by Émilie Feral
parent 75ea4ce74e
commit 6f2dedf8ee
2 changed files with 42 additions and 13 deletions

View File

@@ -48,7 +48,9 @@ private:
};
void addNode(NodeType type, NodeOrigin origin, const char * name, int nameLength, int scriptIndex = 0);
static int MaxNodesCountForOrigin(NodeOrigin origin);
int * nodesCountForOrigin(NodeOrigin origin);
int * nodesCountPointerForOrigin(NodeOrigin origin);
int nodesCountForOrigin(NodeOrigin origin) const;
ScriptNode * nodesForOrigin(NodeOrigin origin);
/* Return a negative int if the node name is before name in alphabetical
* order, 0 if they are equal, a positive int if it is after in alphabetical