X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fhelper%2Fcommand.c;h=fd5e5f94822a88b0c061b2b5e7a1914ad32b7fda;hb=690e054a3d8c8847432c31224743b0f9dbd0f1bf;hp=af1d66f217a6b93f220936faaa930cb3ea92eb6e;hpb=4747af362de04b508c91df4004d2aed5579c8a1c;p=openocd diff --git a/src/helper/command.c b/src/helper/command.c index af1d66f2..fd5e5f94 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -144,11 +144,6 @@ void script_debug(Jim_Interp *interp, const char *name, { int len; const char *w = Jim_GetString(argv[i], &len); - - /* end of line comment? */ - if (*w == '#') - break; - char * t = alloc_printf("%s %s", dbg, w); free (dbg); dbg = t; @@ -175,10 +170,6 @@ static const char **script_command_args_alloc( { int len; const char *w = Jim_GetString(argv[i], &len); - /* a comment may end the line early */ - if (*w == '#') - break; - words[i] = strdup(w); if (words[i] == NULL) {