Skip to content

Commit

Permalink
Merge pull request #467 from ampli/stringflags
Browse files Browse the repository at this point in the history
Fix a bug in the previous change: "!" has count=0
  • Loading branch information
linas authored Dec 12, 2016
2 parents 4bb2c15 + fa69f87 commit 3a11762
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions link-parser/command-line.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,22 +288,22 @@ static int x_issue_special_command(char * line, Command_Options *copts, Dictiona
printf(" !<var>=<val> Assign that value to that variable.\n");
return 0;
}
}

if (s[0] == '!')
{
dict_display_word_info(dict, s+1, opts);
dict_display_word_expr(dict, s+1, opts);
return 0;
}
if (s[0] == '!')
{
dict_display_word_info(dict, s+1, opts);
dict_display_word_expr(dict, s+1, opts);
return 0;
}
#ifdef USE_REGEX_TOKENIZER
if (s[0] == '/')
{
int rc = regex_tokenizer_test(dict, s+1);
if (0 != rc) printf("regex_tokenizer_test: rc %d\n", rc);
return 0;
}
#endif
if (s[0] == '/')
{
int rc = regex_tokenizer_test(dict, s+1);
if (0 != rc) printf("regex_tokenizer_test: rc %d\n", rc);
return 0;
}
#endif

/* Test here for an equation i.e. does the command line hold an equals sign? */
for (x=s; (*x != '=') && (*x != '\0') ; x++)
Expand Down

0 comments on commit 3a11762

Please sign in to comment.