mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-29 15:19:44 +02:00
Reapply 5aa70545d56d4b53fa740afcf066725101d746b5
Author: Paul Licameli <paul.licameli@audacityteam.org> Date: Mon Feb 26 11:18:22 2018 -0500 Use casts with function pointers to quiet compilation warnings in Nyquist
This commit is contained in:
parent
cb810e8652
commit
d8b878f163
@ -274,12 +274,19 @@ typedef struct {
|
||||
/* forward declaration for circular type dependencies */
|
||||
typedef struct snd_list_struct *snd_list_type;
|
||||
|
||||
struct snd_susp_struct;
|
||||
|
||||
typedef void (*snd_fetch_fn)(struct snd_susp_struct *, snd_list_type snd_list);
|
||||
typedef void (*snd_free_fn)(struct snd_susp_struct *);
|
||||
typedef void (*snd_mark_fn)(struct snd_susp_struct *); /* marks LVAL nodes for GC */
|
||||
typedef void (*snd_print_tree_fn)(struct snd_susp_struct *, int);
|
||||
|
||||
typedef struct snd_susp_struct {
|
||||
void (*fetch)(struct snd_susp_struct *, snd_list_type snd_list);
|
||||
snd_fetch_fn fetch;
|
||||
void (*keep_fetch)(struct snd_susp_struct *, snd_list_type snd_list);
|
||||
void (*free)(struct snd_susp_struct *);
|
||||
void (*mark)(struct snd_susp_struct *); /* marks LVAL nodes for GC */
|
||||
void (*print_tree)(struct snd_susp_struct *, int); /* debugging */
|
||||
snd_free_fn free;
|
||||
snd_mark_fn mark;
|
||||
snd_print_tree_fn print_tree; /* debugging */
|
||||
char *name; /* string name for debugging */
|
||||
int64_t toss_cnt; /* return this many zeros, then compute */
|
||||
int64_t current; /* current sample number */
|
||||
|
Loading…
x
Reference in New Issue
Block a user