Typo fixes

This commit is contained in:
William S Fulton 2022-02-20 13:54:39 +00:00
commit 1b0a9ccfc5
2 changed files with 2 additions and 2 deletions

View file

@ -1863,7 +1863,7 @@ extend_directive : EXTEND options classkeyopt idcolon LBRACE {
} else { } else {
/* Previous typedef class definition. Use its symbol table. /* Previous typedef class definition. Use its symbol table.
Deprecated, just the real name should be used. Deprecated, just the real name should be used.
Note that %extend before the class typedef never worked, only %extend after the class typdef. */ Note that %extend before the class typedef never worked, only %extend after the class typedef. */
prev_symtab = Swig_symbol_setscope(Getattr(cls, "symtab")); prev_symtab = Swig_symbol_setscope(Getattr(cls, "symtab"));
current_class = cls; current_class = cls;
SWIG_WARN_NODE_BEGIN(cls); SWIG_WARN_NODE_BEGIN(cls);

View file

@ -1143,7 +1143,7 @@ int JSEmitter::emitConstant(Node *n) {
String *rawval = Getattr(n, "rawval"); String *rawval = Getattr(n, "rawval");
String *value = rawval ? rawval : Getattr(n, "value"); String *value = rawval ? rawval : Getattr(n, "value");
// HACK: forcing usage of cppvalue for v8 (which turned out to fix typdef_struct.i, et. al) // HACK: forcing usage of cppvalue for v8 (which turned out to fix typedef_struct.i, et. al)
if (State::IsSet(state.globals(FORCE_CPP)) && Getattr(n, "cppvalue") != NULL) { if (State::IsSet(state.globals(FORCE_CPP)) && Getattr(n, "cppvalue") != NULL) {
value = Getattr(n, "cppvalue"); value = Getattr(n, "cppvalue");
} }