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