Remove uses of 'short' and 'long'
This commit is contained in:
parent
632a88c8ef
commit
39cb420df2
3 changed files with 4 additions and 4 deletions
|
|
@ -51,7 +51,7 @@ namespace tree_sitter {
|
|||
std::set<rules::CharacterSet> expected_inputs() const;
|
||||
};
|
||||
|
||||
typedef long int LexStateId;
|
||||
typedef int64_t LexStateId;
|
||||
|
||||
class LexTable {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -57,13 +57,13 @@ namespace tree_sitter {
|
|||
LexStateId lex_state_id;
|
||||
};
|
||||
|
||||
typedef unsigned long int ParseStateId;
|
||||
typedef uint64_t ParseStateId;
|
||||
|
||||
std::ostream& operator<<(std::ostream &stream, const ParseState &state);
|
||||
|
||||
class ParseTable {
|
||||
public:
|
||||
size_t add_state();
|
||||
uint64_t add_state();
|
||||
void add_action(ParseStateId state_id, rules::Symbol symbol, ParseAction action);
|
||||
|
||||
std::vector<ParseState> states;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ namespace tree_sitter {
|
|||
}
|
||||
|
||||
size_t Symbol::hash_code() const {
|
||||
return hash<string>()(name) ^ hash<short int>()(type);
|
||||
return hash<string>()(name) ^ hash<int16_t>()(type);
|
||||
}
|
||||
|
||||
rule_ptr Symbol::copy() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue