renamed enum and struct
This commit is contained in:
@@ -106,7 +106,7 @@ void print_state()
|
||||
print_context_terms();
|
||||
}
|
||||
|
||||
int stop_errors(program_error err, const char *details, ...)
|
||||
int stop_errors(e_program_error err, const char *details, ...)
|
||||
{
|
||||
// the base error message
|
||||
const char *msg = "error: error type is out of range";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "computorv1.h"
|
||||
|
||||
const char *token_type_to_str(token_type enum_value)
|
||||
const char *token_type_to_str(e_token_type enum_value)
|
||||
{
|
||||
if (enum_value > TOKEN_END || enum_value < TOKEN_VARIABLE)
|
||||
return "invalid enum value";
|
||||
@@ -21,7 +21,7 @@ const char *token_type_to_str(token_type enum_value)
|
||||
return token_type_str[enum_value];
|
||||
}
|
||||
|
||||
const char *token_tag_to_str(token_tag enum_value)
|
||||
const char *token_tag_to_str(e_token_tag enum_value)
|
||||
{
|
||||
if (enum_value > TOKEN_FACTOR || enum_value < TOKEN_NO_TAG)
|
||||
return "invalid enum value";
|
||||
@@ -34,7 +34,7 @@ const char *token_tag_to_str(token_tag enum_value)
|
||||
return token_tag_str[enum_value];
|
||||
}
|
||||
|
||||
const char *term_position_to_str(term_position enum_value)
|
||||
const char *term_position_to_str(e_term_position enum_value)
|
||||
{
|
||||
if (enum_value > TERM_END || enum_value < TERM_LEFT)
|
||||
return "invalid enum value";
|
||||
@@ -46,7 +46,7 @@ const char *term_position_to_str(term_position enum_value)
|
||||
return term_position_str[enum_value];
|
||||
}
|
||||
|
||||
const char *term_sign_to_str(term_sign enum_value)
|
||||
const char *term_sign_to_str(e_term_sign enum_value)
|
||||
{
|
||||
if (enum_value > TERM_NULL || enum_value < TERM_PLUS)
|
||||
return "invalid enum value";
|
||||
|
||||
Reference in New Issue
Block a user