• Patch: Elm ME+ 2.5 PLalpha62 -> Elm ME+ 2.5 PLalpha63 [3/7] (5/5)

    From Kari Hurtta@21:1/5 to All on Wed Jan 3 13:51:40 2024
    [continued from previous message]

    (*ptr)->buffer_type = NULL;
    --- 114,125 ----
    (*ptr)->refcount--;

    if ((*ptr)->refcount > 0) { /* Do not free */
    !
    (*ptr) = NULL; /* Refefence count for this pointer is */
    return; /* decrement, so this must have be reset */

    }
    !
    (*ptr)->buffer_type->sb_free_it(*ptr);

    (*ptr)->buffer_type = NULL;
    ***************
    *** 133,140 ****
    panic("STRINGBUFFER PANIC",__FILE__,__LINE__,
    "inc_stringbuffer_refcount",
    "Bad magic number (buffer type)",0);
    !
    buffer->refcount++;
    }

    void add_line_to_stringbuffer(buffer,string,pg_flags,range,eoln)
    --- 135,143 ----
    panic("STRINGBUFFER PANIC",__FILE__,__LINE__,
    "inc_stringbuffer_refcount",
    "Bad magic number (buffer type)",0);
    !
    buffer->refcount++;
    +
    }

    void add_line_to_stringbuffer(buffer,string,pg_flags,range,eoln) ***************
    *** 252,257 ****
    --- 255,310 ----
    return ret;
    }

    + struct pager_param_value * get_pager_param_from_strin