mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-04 11:46:35 +02:00
Phasing-out Cyc_st_add2
This commit is contained in:
parent
ead5bcb100
commit
ddf54ec5c7
3 changed files with 4 additions and 4 deletions
|
@ -189,7 +189,7 @@ object memqp(void *,object,list);
|
|||
void Cyc_start_thread(gc_thread_data *thd);
|
||||
void GC(void *,closure,object*,int);
|
||||
|
||||
void Cyc_st_add(char *frame);
|
||||
void Cyc_st_add(void *data, char *frame);
|
||||
void Cyc_st_add2(void *data, char *frame);
|
||||
void Cyc_st_print(void *data, FILE *out);
|
||||
|
||||
|
|
|
@ -190,8 +190,8 @@ const object quote_void = &Cyc_void_symbol;
|
|||
/* Stack Traces */
|
||||
static const int MAX_STACK_TRACES = 10;
|
||||
|
||||
void Cyc_st_add(char *frame) { } // TODO: a temporary function, merge with below
|
||||
void Cyc_st_add2(void *data, char *frame) {
|
||||
void Cyc_st_add2(void *data, char *frame) { } // TODO: a temporary function, merge with below
|
||||
void Cyc_st_add(void *data, char *frame) {
|
||||
gc_thread_data *thd = (gc_thread_data *)data;
|
||||
// Do not allow recursion to remove older frames
|
||||
if (frame != thd->stack_prev_frame) {
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
(null? (cdr trace)))
|
||||
""
|
||||
(string-append
|
||||
"Cyc_st_add2(data, \""
|
||||
"Cyc_st_add(data, \""
|
||||
(car trace)
|
||||
":"
|
||||
;; TODO: escape backslashes
|
||||
|
|
Loading…
Add table
Reference in a new issue