Fortunately, gcc-4 no longer warns on these. However, gcc-3.3 is still supported
for compiling paraslash, so rename "index" to "idx" and "conf" to "config" to get
rid of warnings of the form
wmadec_filter.c:1013: warning: declaration of `index' shadows a global declaration
Add documentation of ->free_config() while we're at it.
}
next:
for (ch = 0; ch < pwd->ahi.channels; ch++) {
- int n4, index;
+ int n4, idx;
n = pwd->block_len;
n4 = pwd->block_len / 2;
memset(pwd->output, 0, sizeof(pwd->output));
/* multiply by the window and add in the frame */
- index = (pwd->frame_len / 2) + pwd->block_pos - n4;
- wma_window(pwd, &pwd->frame_out[ch][index]);
+ idx = (pwd->frame_len / 2) + pwd->block_pos - n4;
+ wma_window(pwd, &pwd->frame_out[ch][idx]);
}
/* update block number */
* It should check whether the command line options given by \a options are
* valid. On success, it should return a pointer to the writer-specific
* configuration data determined by \a options. Note that this might be called
- * more than once with different values of \a options.
+ * more than once with different values of \a options. \sa \ref free_config().
*/
void *(*parse_config)(const char *options);
- void (*free_config)(void *conf);
+ /**
+ * Dellocate all configuration resources.
+ *
+ * This should free whatever was allocated by \ref parse_config().
+ */
+ void (*free_config)(void *config);
/**
* Open one instance of this writer.
*