Branch: Tag:

2014-04-27

2014-04-27 20:37:42 by Martin Nilsson <nilsson@opera.com>

mallocs nowdays return void*, so no need to case.

261:    if (exp == (char *)NULL)    FAIL("NULL argument");    -  exp2=(short*)xalloc( (strlen(exp)+1) * sizeof(short) ); +  exp2=xalloc( (strlen(exp)+1) * sizeof(short) );    for ( scan=exp,dest=exp2;( c= UCHARAT(scan++)); ) {    switch (c) {    case '(':
316:    FAIL("regexp too big");       /* Allocate space. */ -  r = (regexp *) xalloc(sizeof(regexp) + (unsigned) regsize); +  r = xalloc(sizeof(regexp) + (unsigned) regsize);       /* Second pass: emit code. */    regparse = exp2;