Tous les codes sourcespage 63
Markup
7 June, 2014 à 11:35
#218
send(to, from, count)
register short *to, *from;
register count;
{
register n = (count + 7) / 8;
switch(count % 8) {
case 0: do { *to = *from++;
case 7: *to = *from++;
case 6: *to = *from++;
case 5: *to = *from++;
case 4: *to = *from++;
case 3: *to = *from++;
case 2: *to = *from++;
case 1: *to = *from++;
} while(--n > 0);
}
}
C++
7 June, 2014 à 02:30
#162
if ((o = memwrap_realloc(o, sizeof (*o) + (max - 1) * sizeof (*o->item))) == NULL)
return; /* COVERAGE EXCLUSION: We don't test memwrap_realloc() failures */
if ((len = snprintf(buf, bufsz, "%s%u", i ? "," : "", list->item[i])) >= bufsz)
break; /* COVERAGE EXCLUSION: We don't test overflows */