Changeset 9637


Ignore:
Timestamp:
Feb 15, 2017 12:27:23 PM (3 years ago)
Author:
Christian Andersson
Message:

Minor rename of functions. Related to ticket:4815

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/RuntimeLibrary/src/jmi/jmi_delay.c

    r9565 r9637  
    382382
    383383/** \brief (Re)initialize the buffer as empty, without changing the current allocation */
    384 static void clear(jmi_delaybuffer_t *buffer, jmi_real_t max_delay) {
     384static void clear_delay_buffer(jmi_delaybuffer_t *buffer, jmi_real_t max_delay) {
    385385    buffer->size = buffer->head_index = 0;
    386386    buffer->max_delay = max_delay;
     
    652652    if (buffer->event_buf == NULL) jmi_internal_error(jmi, "Unable to allocate space for delay buffer");
    653653
    654     clear(buffer, 0); /* sets max_delay to zero; will be set to correct value in jmi_delaybuffer_init */
     654    clear_delay_buffer(buffer, 0); /* sets max_delay to zero; will be set to correct value in jmi_delaybuffer_init */
    655655    return 0;
    656656}
     
    665665
    666666static int jmi_delaybuffer_init(jmi_delaybuffer_t *buffer, jmi_real_t max_delay) {
    667     clear(buffer, max_delay);
     667    clear_delay_buffer(buffer, max_delay);
    668668    return 0;
    669669}
Note: See TracChangeset for help on using the changeset viewer.