add missing break statement

This commit is contained in:
Yuichi Nishiwaki 2014-01-17 13:16:55 +09:00
parent dfd5f96e7e
commit ecaf96ea14
1 changed files with 215 additions and 228 deletions

View File

@ -58,8 +58,7 @@ pic_get_args(pic_state *pic, const char *format, ...)
case '|': case '|':
opt = true; opt = true;
break; break;
case 'o': case 'o': {
{
pic_value *p; pic_value *p;
p = va_arg(ap, pic_value*); p = va_arg(ap, pic_value*);
@ -67,10 +66,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
*p = GET_OPERAND(pic,i); *p = GET_OPERAND(pic,i);
i++; i++;
} }
}
break; break;
case 'f': }
{ case 'f': {
double *f; double *f;
f = va_arg(ap, double *); f = va_arg(ap, double *);
@ -90,10 +88,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
} }
i++; i++;
} }
}
break; break;
case 'F': }
{ case 'F': {
double *f; double *f;
bool *e; bool *e;
@ -117,10 +114,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
} }
i++; i++;
} }
}
break; break;
case 'I': }
{ case 'I': {
int *k; int *k;
bool *e; bool *e;
@ -144,10 +140,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
} }
i++; i++;
} }
}
break; break;
case 'i': }
{ case 'i': {
int *k; int *k;
k = va_arg(ap, int *); k = va_arg(ap, int *);
@ -167,10 +162,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
} }
i++; i++;
} }
}
break; break;
case 's': }
{ case 's': {
pic_value str; pic_value str;
char **cstr; char **cstr;
size_t *len; size_t *len;
@ -186,10 +180,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
*len = pic_str_ptr(str)->len; *len = pic_str_ptr(str)->len;
i++; i++;
} }
}
break; break;
case 'm': }
{ case 'm': {
pic_sym *m; pic_sym *m;
pic_value v; pic_value v;
@ -204,9 +197,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
} }
i++; i++;
} }
break;
} }
case 'v': case 'v': {
{
struct pic_vector **vec; struct pic_vector **vec;
pic_value v; pic_value v;
@ -221,10 +214,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
} }
i++; i++;
} }
}
break; break;
case 'b': }
{ case 'b': {
struct pic_blob **b; struct pic_blob **b;
pic_value v; pic_value v;
@ -239,10 +231,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
} }
i++; i++;
} }
}
break; break;
case 'c': }
{ case 'c': {
char *c; char *c;
pic_value v; pic_value v;
@ -257,10 +248,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
} }
i++; i++;
} }
}
break; break;
case 'l': }
{ case 'l': {
struct pic_proc **l; struct pic_proc **l;
pic_value v; pic_value v;
@ -277,8 +267,7 @@ pic_get_args(pic_state *pic, const char *format, ...)
} }
break; break;
} }
case 'p': case 'p': {
{
struct pic_port **p; struct pic_port **p;
pic_value v; pic_value v;
@ -296,11 +285,9 @@ pic_get_args(pic_state *pic, const char *format, ...)
break; break;
} }
default: default:
{
pic_error(pic, "pic_get_args: invalid argument specifier given"); pic_error(pic, "pic_get_args: invalid argument specifier given");
} }
} }
}
if ('*' == c) { if ('*' == c) {
size_t *n; size_t *n;
pic_value **argv; pic_value **argv;