version 1.12, 2009/10/27 23:59:38 |
version 1.13, 2015/08/20 22:32:41 |
|
|
/* |
/* |
* Sort the symbol table in by time |
* Sort the symbol table in by time |
*/ |
*/ |
sortednlp = (nltype **) calloc( nname , sizeof(nltype *) ); |
sortednlp = calloc( nname , sizeof(nltype *) ); |
if ( sortednlp == (nltype **) 0 ) |
if ( sortednlp == (nltype **) 0 ) |
warnx("[printprof] ran out of memory for time sorting"); |
warnx("[printprof] ran out of memory for time sorting"); |
for ( index = 0 ; index < nname ; index += 1 ) { |
for ( index = 0 ; index < nname ; index += 1 ) { |
|
|
* Now, sort regular function name alphbetically |
* Now, sort regular function name alphbetically |
* to create an index. |
* to create an index. |
*/ |
*/ |
namesortnlp = (nltype **) calloc( nname + ncycle , sizeof(nltype *) ); |
namesortnlp = calloc( nname + ncycle , sizeof(nltype *) ); |
if ( namesortnlp == (nltype **) 0 ) |
if ( namesortnlp == (nltype **) 0 ) |
warnx("ran out of memory for sorting"); |
warnx("ran out of memory for sorting"); |
for ( index = 0 , nnames = 0 ; index < nname ; index++ ) { |
for ( index = 0 , nnames = 0 ; index < nname ; index++ ) { |