Ensure operator does not try to take ownership of string.

This commit is contained in:
2018-08-22 17:45:45 -07:00
parent 899ac31210
commit c4a7117704
3 changed files with 11 additions and 5 deletions

View File

@@ -135,8 +135,9 @@ void libab_behavior_free(libab_behavior* behavior);
* @param associativity the associativity (left = -1, right = 1) of the
* operator.
* @param function the function this operator represents.
* @result the result of the initialization.
*/
void libab_operator_init(libab_operator* op, libab_operator_variant variant,
libab_result libab_operator_init(libab_operator* op, libab_operator_variant variant,
int precedence, int associativity, const char* function);
/**
* Frees the given operator.