comparison liboctave/oct-alloc.cc @ 5760:8d7162924bd3

[project @ 2006-04-14 04:01:37 by jwe]
author jwe
date Fri, 14 Apr 2006 04:01:40 +0000
parents 4c8a2e4e0717
children ace8d8d26933
comparison
equal deleted inserted replaced
5759:ce79d238f142 5760:8d7162924bd3
77 77
78 char *p = start; 78 char *p = start;
79 while (p < last) 79 while (p < last)
80 { 80 {
81 char *next = p + item_size; 81 char *next = p + item_size;
82 (X_CAST (link *, p)) -> next = X_CAST (link *, next); 82 (reinterpret_cast<link *> (p)) -> next
83 = reinterpret_cast<link *> (next);
83 p = next; 84 p = next;
84 } 85 }
85 86
86 (X_CAST (link *, last)) -> next = 0; 87 (reinterpret_cast<link *> (last)) -> next = 0;
87 88
88 head = X_CAST (link *, start); 89 head = reinterpret_cast<link *> (start);
89 } 90 }
90 else 91 else
91 { 92 {
92 typedef void (*error_handler_function) (void); 93 typedef void (*error_handler_function) (void);
93 94