Browse Source

Fix style

signals
Gavin Howard 3 years ago
parent
commit
5151c87765
Signed by untrusted user who does not match committer: gavin
GPG Key ID: C08038BDF280D33E
  1. 3
      .gitignore
  2. 2
      include/bc.h
  3. 3
      src/program.c

3
.gitignore vendored

@ -49,3 +49,6 @@ perf.data.old
*.gcov
*.html
*.profraw
cscope*.out
tags

2
include/bc.h

@ -66,7 +66,7 @@ typedef struct BcLexKeyword {
#define BC_LEX_KW_LEN(kw) ((size_t) ((kw)->data & ~(BC_LEX_CHAR_MSB(1))))
#define BC_LEX_KW_ENTRY(a, b, c) \
{ .data = ((b) & ~(BC_LEX_CHAR_MSB(1))) | BC_LEX_CHAR_MSB(c),.name = a }
{ .data = ((b) & ~(BC_LEX_CHAR_MSB(1))) | BC_LEX_CHAR_MSB(c), .name = a }
extern const BcLexKeyword bc_lex_kws[];
extern const size_t bc_lex_kws_len;

3
src/program.c

@ -284,6 +284,7 @@ static BcStatus bc_program_operand(BcProgram *p, BcResult **r,
#endif // BC_PROG_NO_STACK_CHECK
*r = bc_vec_item_rev(&p->results, idx);
#if BC_ENABLED
if (BC_ERR((*r)->t == BC_RESULT_VOID))
return bc_vm_err(BC_ERROR_EXEC_VOID_VAL);
@ -722,7 +723,7 @@ static BcStatus bc_program_copyToVar(BcProgram *p, size_t idx,
BcStatus s = BC_STATUS_SUCCESS;
BcResult *ptr, r;
BcVec *vec;
BcNum *n;
BcNum *n = NULL;
bool var = (t == BC_TYPE_VAR);
#if BC_ENABLED

Loading…
Cancel
Save