Code cleanup, don't use 'free' as variable name.
{
struct call_frame *this_frame;
struct thread *thread=arch_os_get_current_thread();
- int free;
+ int free_ici;
if (!cs_valid_pointer_p(info->frame)) {
printf("Bogus callee value (0x%08lx).\n", (unsigned long)info->frame);
if (info->lra == NIL) {
/* We were interrupted. Find the correct signal context. */
- free = SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX,thread)>>2;
- while (free-- > 0) {
+ free_ici = fixnum_value(SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX,thread));
+ while (free_ici-- > 0) {
os_context_t *context =
- thread->interrupt_contexts[free];
+ thread->interrupt_contexts[free_ici];
if ((struct call_frame *)(unsigned long)
(*os_context_register_addr(context, reg_CFP))
== info->frame) {
void bind_variable(lispobj symbol, lispobj value, void *th)
{
- lispobj old_tl_value;
struct binding *binding;
struct thread *thread=(struct thread *)th;
binding = GetBSP();
}
}
#endif
- old_tl_value=SymbolTlValue(symbol,thread);
- binding->value = old_tl_value;
+ binding->value = SymbolTlValue(symbol, thread);
binding->symbol = symbol;
- SetTlSymbolValue(symbol, value,thread);
+ SetTlSymbolValue(symbol, value, thread);
}
void
lispobj *end = start + n_words;
lispobj *object_ptr;
long n_words_scavenged;
- for (object_ptr = start;
+ for (object_ptr = start;
object_ptr < end;
object_ptr += n_words_scavenged) {
static void
print_context_cmd(char **ptr)
{
- int free;
+ int free_ici;
struct thread *thread=arch_os_get_current_thread();
- free = SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX,thread)>>2;
+ free_ici = fixnum_value(SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX,thread));
if (more_p(ptr)) {
int index;
index = parse_number(ptr);
- if ((index >= 0) && (index < free)) {
- printf("There are %d interrupt contexts.\n", free);
+ if ((index >= 0) && (index < free_ici)) {
+ printf("There are %d interrupt contexts.\n", free_ici);
printf("printing context %d\n", index);
print_context(thread->interrupt_contexts[index]);
} else {
printf("There aren't that many/few contexts.\n");
- printf("There are %d interrupt contexts.\n", free);
+ printf("There are %d interrupt contexts.\n", free_ici);
}
} else {
- if (free == 0)
+ if (free_ici == 0)
printf("There are no interrupt contexts!\n");
else {
- printf("There are %d interrupt contexts.\n", free);
- printf("printing context %d\n", free - 1);
- print_context(thread->interrupt_contexts[free - 1]);
+ printf("There are %d interrupt contexts.\n", free_ici);
+ printf("printing context %d\n", free_ici - 1);
+ print_context(thread->interrupt_contexts[free_ici - 1]);
}
}
}
throw_to_monitor();
} else if (token[0] == '$') {
if (isalpha(token[1])) {
- int free;
+ int free_ici;
int regnum;
os_context_t *context;
- free = SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX,thread)>>2;
+ free_ici = fixnum_value(SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX,thread));
- if (free == 0) {
+ if (free_ici == 0) {
printf("Variable ``%s'' is not valid -- there is no current interrupt context.\n", token);
throw_to_monitor();
}
- context = thread->interrupt_contexts[free - 1];
+ context = thread->interrupt_contexts[free_ici - 1];
regnum = parse_regnum(token);
if (regnum < 0) {
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.9.6"
+"0.9.6.1"