pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:219:    ref_push_array(&empty_array);    arguments = arguments2 = &empty_array;       if ((!d->args) ||    ((d->flags & CPP_MACRO_VARARGS) && (d->args == 1))) {    /* NB: In the varargs case arguments2 will get    * further adjustment below.    */    } else {    if (context_obj) { -  push_text("Expected %d arguments to macro %s, got none."); +  push_text("Expected %d arguments to macro %s(), got none.");    push_int(d->args);    ref_push_string(d->name);    apply(context_obj, "cpp_error", 3);    } else { -  my_yyerror("Expected %d argumnets to macro %S, got none.", +  my_yyerror("Expected %d arguments to macro %S(), got none.",    d->args, d->name);    }    push_int(0);    return;    }    }       if (d->args != arguments2->size) {    if (!(d->flags & CPP_MACRO_VARARGS) ||    (d->args > arguments2->size+1)) {    /* Allow varargs to be left out. */    if (context_obj) { -  push_text("Bad number of arguments to macro %s, expected %d" +  push_text("Bad number of arguments to macro %s(), expected %d"    ", got %d.");    ref_push_string(d->name);    push_int(d->args);    push_int(arguments2->size);    apply(context_obj, "cpp_error", 4);    } else { -  my_yyerror("Bad number of arguments to macro %S, expected %d" +  my_yyerror("Bad number of arguments to macro %S(), expected %d"    ", got %d.",    d->name, d->args, arguments2->size);    }    push_int(0);    return;    }    if (d->args > arguments2->size) {    /* Grow arguments2 to at least d->args elements. */    ref_push_array(arguments2);    ref_push_string(empty_pike_string);