| 1 |
typedef __SIZE_TYPE__ size_t; |
| 2 |
/* Kludge */ |
| 3 |
#define unsigned |
| 4 |
typedef __SIZE_TYPE__ __ssize_t; |
| 5 |
#undef unsigned |
| 6 |
typedef struct |
| 7 |
{ |
| 8 |
} __mbstate_t; |
| 9 |
typedef struct |
| 10 |
{ |
| 11 |
} _G_fpos64_t; |
| 12 |
enum |
| 13 |
{ |
| 14 |
__GCONV_INTERNAL_ERROR |
| 15 |
}; |
| 16 |
typedef int (*__gconv_trans_fct) (struct __gconv_step *, |
| 17 |
size_t *); |
| 18 |
typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *, |
| 19 |
unsigned char *, unsigned char *); |
| 20 |
struct __gconv_trans_data |
| 21 |
{ |
| 22 |
}; |
| 23 |
struct _IO_marker { |
| 24 |
}; |
| 25 |
typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, |
| 26 |
size_t __n); |
| 27 |
typedef struct blockbox { |
| 28 |
} *BBOXPTR, BBOX ; |
| 29 |
typedef struct netbox { |
| 30 |
} *NBOXPTR, NBOX ; |
| 31 |
typedef struct termbox { |
| 32 |
struct termbox *nextterm ; |
| 33 |
} *TEBOXPTR, TEBOX ; |
| 34 |
typedef struct tilebox { |
| 35 |
TEBOXPTR termsptr ; |
| 36 |
} |
| 37 |
*TIBOXPTR , |
| 38 |
TIBOX ; |
| 39 |
typedef struct cellbox { |
| 40 |
TIBOXPTR tileptr ; |
| 41 |
} |
| 42 |
*CBOXPTR , |
| 43 |
CBOX ; |
| 44 |
typedef struct dimbox { |
| 45 |
} |
| 46 |
DBOX ; |
| 47 |
typedef struct rowbox { |
| 48 |
} ROWBOX ; |
| 49 |
typedef struct binbox { |
| 50 |
} |
| 51 |
CHANGRDBOX ; |
| 52 |
extern int numcells ; |
| 53 |
extern int numterms ; |
| 54 |
void |
| 55 |
sortpin(void) |
| 56 |
{ |
| 57 |
int j , n , cell ; |
| 58 |
CBOXPTR ptr ; |
| 59 |
TIBOXPTR tile ; |
| 60 |
TEBOXPTR term , *xpptr ; |
| 61 |
for( cell = 1 ; cell <= numcells + numterms ; cell++ ) { |
| 62 |
if( ( tile = ptr->tileptr ) == (TIBOXPTR) ((void *)0) ) { |
| 63 |
} |
| 64 |
n = 0 ; |
| 65 |
for( term = tile->termsptr ; term != (TEBOXPTR) ((void *)0) ; |
| 66 |
term = term->nextterm ) { |
| 67 |
xpptr[ ++n ] = term ; |
| 68 |
} |
| 69 |
xpptr[ n + 1 ] = (TEBOXPTR) ((void *)0) ; |
| 70 |
ptr->tileptr->termsptr = xpptr[ 1 ] ; |
| 71 |
for( j = 1 ; j <= n ; j++ ) { |
| 72 |
} |
| 73 |
} |
| 74 |
} |
| 75 |
|