Branch: Tag:

2018-08-05

2018-08-05 10:33:29 by Martin Nilsson <nilsson@fastmail.com>

Simplify error messages and avoid sending function name to get_all_args

2170:    if(!args)    type=0;    else -  get_all_args("lock",args,"%i",&type); +  get_all_args(NULL, args, "%i", &type);       switch(type)    {
2273:    if(!args)    type=0;    else -  get_all_args("trylock",args,"%i",&type); +  get_all_args(NULL, args, "%i", &type);       switch(type)    {
2608:       if (args <= 2) {    FLOAT_TYPE fsecs = 0.0; -  get_all_args("wait", args, "%o.%F", &key, &fsecs); +  get_all_args(NULL, args, "%o.%F", &key, &fsecs);    seconds = (INT_TYPE) fsecs;    nanos = (INT_TYPE)((fsecs - seconds)*1000000000);    } else {    /* FIXME: Support bignum nanos. */ -  get_all_args("wait", args, "%o%i%i", &key, &seconds, &nanos); +  get_all_args(NULL, args, "%o%i%i", &key, &seconds, &nanos);    }       if ((key->prog != mutex_key) ||