Skip to content

Commit

Permalink
signal seem ok
Browse files Browse the repository at this point in the history
  • Loading branch information
esromneb committed Sep 27, 2020
1 parent 2aa3b80 commit c95aeaf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions vcd_spans.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,18 @@ int scopeIdentifierSpan(vcd_parser_t* state, const unsigned char* p, const unsig
ASSERT(top, napi_set_element(env, stack, state->stackPointer, obj))
#else
strcopy(p, endp, state->tmpStr); // load the value into temp string 1

// set stack[sp].`tmpStr` to {}
snprintf(state->tmpStr2, 4096, "stack.%d.%s", state->stackPointer, state->tmpStr);
new_object_path(state->tmpStr2);


// snprintf(state->tmpStr2, 4096, "stack.%d", state->stackPointer);
// bump
state->stackPointer += 1;

// set stack[sp+1] to the same object as stack[sp].`tmpStr`
snprintf(state->tmpStr, 4096, "stack.%d", state->stackPointer);


// snprintf(state->tmpStr2, 4096, "stack.%d", state->stackPointer);
// new_object_path(state->tmpStr2);

// snprintf(state->tmpStr, 4096, "stack.%d", state->stackPointer+1); // load the dot-prop into string 2
set_path_to_path(state->tmpStr, state->tmpStr2);

#endif
return 0;
}
Expand Down

0 comments on commit c95aeaf

Please sign in to comment.