Reply to Re: SEMICOLONS ARE THE SPAWN OF BEELZEBUB
If you don't have an account, just leave the password field blank.
Dinkvar.h
bool get_parms(char proc_name[20], int script, char *h, int p[10])
{
{
[Mm - snip]
line 5442 in notepadd++ reads,
if (h[0] == ';')
{
// Msg("Found ending ;");
h = &h[1];
} else
{
//Msg("Missing ; in %s, offset %d.", rinfo[script]->name, rinfo[script]->current);
// h = &h[1];
return(true);
}
return(true);
}
//got a parm, but there is more to get, lets make sure there is a comma there
strip_beginning_spaces(h);
Though in some cases, returning True "might" allow the absence of the ";" to "seemingly" go unnoticed, this is not assured. In this case, the ";" is not simply discarded but intended to be found. I would suspect if Seth wanted to simply discard it as unneeded, he would have coded it as;
replace(";", "",ev[1]);
in the same manner as he dealt with CR LF in
bool locate_goto(char proc[50], int script)
{
[mm - snip]
while(read_next_line(script, line))
{
strip_beginning_spaces(line);
get_word(line, 1, ev[1]);
replace("\n", "",ev[1]);
Further in the same file,
int process_line (int script, char *s, bool doelse)
{
the pass: label is at line 8740.
bool get_parms(char proc_name[20], int script, char *h, int p[10])
{
{
[Mm - snip]
line 5442 in notepadd++ reads,
if (h[0] == ';')
{
// Msg("Found ending ;");
h = &h[1];
} else
{
//Msg("Missing ; in %s, offset %d.", rinfo[script]->name, rinfo[script]->current);
// h = &h[1];
return(true);
}
return(true);
}
//got a parm, but there is more to get, lets make sure there is a comma there
strip_beginning_spaces(h);
Though in some cases, returning True "might" allow the absence of the ";" to "seemingly" go unnoticed, this is not assured. In this case, the ";" is not simply discarded but intended to be found. I would suspect if Seth wanted to simply discard it as unneeded, he would have coded it as;
replace(";", "",ev[1]);
in the same manner as he dealt with CR LF in
bool locate_goto(char proc[50], int script)
{
[mm - snip]
while(read_next_line(script, line))
{
strip_beginning_spaces(line);
get_word(line, 1, ev[1]);
replace("\n", "",ev[1]);
Further in the same file,
int process_line (int script, char *s, bool doelse)
{
the pass: label is at line 8740.