Closed amaanq closed 1 year ago
I think scan
needs to be static
also and I don't think inline
is needed
also is_bracket_argument
basically any functions that were in the anonymous namespace will have to be static
The reason advance needs to be static is because (I believe) it conflicts with the lexer->advance function, so it is attempting to call itself, resulting in the segfault. I could be completely wrong of course. But the others dont need to be...but I can make them static anyways
Just to make them have the same semantic with the C++ file, in the C++ version, having them in the anonymous namespace make them have internal linkage, which makes sure they are not conflict with any other same name functions. Hence when switching to C, making them all static
to have the same linkage. Also inline
doesn't do anything here so plesae remove them.
ok, done
you need to update the binding.gyp and build.rs
done
try
ts t
orts p <file>
and it should be fine now