Namespace fix (making sure a namespace is a prefix only)

This commit is contained in:
Edward R. Gonzalez 2023-11-17 19:24:27 -05:00
parent 6395d022f1
commit 22f74f3dc6

View File

@ -2,8 +2,6 @@
#include "IO.cpp"
#include "Spec.cpp"
void parse_options( int num, char** arguments )
{
zpl_opts opts;
@ -280,7 +278,7 @@ void refactor()
{
Spec::Entry* ignore = Spec::Ignore_Includes;
sw ignores_left = zpl_array_count( Spec::Ignore_Includes);
Snapshot backup = { src, left, col, line };
Snapshot backup = { src, left, col, line };
if ( '#' != src[0] )
break;
@ -386,6 +384,12 @@ void refactor()
continue;
}
if (( zpl_char_is_alphanumeric( src[-1] ) || src[-1] == '_') )
{
ignore++;
continue;
}
zpl_string_clear( current );
u32 sig_length = zpl_string_length( ignore->Sig );
@ -549,6 +553,9 @@ void refactor()
if ( nspace->Sig[0] != src[0] )
continue;
if (( zpl_char_is_alphanumeric( src[-1] ) || src[-1] == '_') )
continue;
zpl_string_clear( current );
u32 sig_length = zpl_string_length( nspace->Sig );