···515515 else
516516 {
517517 splash(HZ/1, "Attempting a 64k allocation");
518518- int handle = core_alloc("test", 64<<10);
518518+ int handle = core_alloc(64<<10);
519519 splash(HZ/2, (handle > 0) ? "Success":"Fail");
520520 /* for some reason simplelist doesn't allow adding items here if
521521 * info.get_name is given, so use normal list api */
+1-1
apps/filetypes.c
···409409410410 /* estimate bufsize with the filesize, will not be larger */
411411 strdup_bufsize = (size_t)filesz;
412412- strdup_handle = core_alloc_ex("filetypes", strdup_bufsize, &ops);
412412+ strdup_handle = core_alloc_ex(strdup_bufsize, &ops);
413413 if(strdup_handle <= 0)
414414 goto out;
415415
···14081408 send_event(RECORDING_EVENT_START, NULL);
14091409 /* FIXME: This buffer should play nicer and be shrinkable/movable */
14101410 talk_buffer_set_policy(TALK_BUFFER_LOOSE);
14111411- pcmrec_handle = core_alloc_maximum("pcmrec", &rec_buffer_size, &buflib_ops_locked);
14111411+ pcmrec_handle = core_alloc_maximum(&rec_buffer_size, &buflib_ops_locked);
14121412 if (pcmrec_handle <= 0)
14131413 /* someone is abusing core_alloc_maximum(). Fix this evil guy instead of
14141414 * trying to handle OOM without hope */
···525525 font_id = open_slot;
526526527527 /* allocate mem */
528528- int handle = core_alloc_ex( NULL,
528528+ int handle = core_alloc_ex(
529529 bufsize + sizeof( struct buflib_alloc_data ),
530530 &buflibops );
531531 if ( handle <= 0 )
+4-19
firmware/include/buflib.h
···6262 * to the actually requested number of bytes.
6363 *
6464 * The total number of bytes consumed by an allocation is
6565- * BUFLIB_ALLOC_OVERHEAD + requested bytes + strlen(<name passed to
6666- * buflib_alloc_ex()) + pad to pointer size
6565+ * BUFLIB_ALLOC_OVERHEAD + requested bytes + pad to pointer size
6766 */
6867#define BUFLIB_ALLOC_OVERHEAD (5*sizeof(union buflib_data))
6968···215214 * Allocates memory from the buflib's memory pool with additional callbacks
216215 * and flags
217216 *
218218- * name: A string identifier giving this allocation a name
219217 * size: How many bytes to allocate
220218 * ops: a struct with pointers to callback functions (see above).
221219 * if "ops" is NULL: Buffer is movable.
···223221 * Returns: A positive integer handle identifying this allocation, or
224222 * a negative value on error (0 is also not a valid handle)
225223 */
226226-int buflib_alloc_ex(struct buflib_context *ctx, size_t size, const char *name,
224224+int buflib_alloc_ex(struct buflib_context *ctx, size_t size,
227225 struct buflib_callbacks *ops);
228226229227···241239 * and even shrinks other allocations. However, do not depend on this behavior,
242240 * it may change.
243241 *
244244- * name: A string identifier giving this allocation a name
245242 * size: The actual size will be returned into size
246243 * ops: a struct with pointers to callback functions
247244 *
248245 * Returns: A positive integer handle identifying this allocation, or
249246 * a negative value on error (0 is also not a valid handle)
250247 */
251251-int buflib_alloc_maximum(struct buflib_context* ctx, const char* name,
252252- size_t *size, struct buflib_callbacks *ops);
248248+int buflib_alloc_maximum(struct buflib_context* ctx,
249249+ size_t *size, struct buflib_callbacks *ops);
253250254251/**
255252 * Queries the data pointer for the given handle. It's actually a cheap
···347344void buflib_buffer_in(struct buflib_context *ctx, int size);
348345349346/* debugging */
350350-351351-/**
352352- * Returns the name, as given to buflib_alloc() and buflib_allloc_ex(), of the
353353- * allocation associated with the given handle. As naming allocations
354354- * is optional, there might be no name associated.
355355- *
356356- * handle: The handle indicating the allocation
357357- *
358358- * Returns: A pointer to the string identifier of the allocation, or NULL
359359- * if none was specified with buflib_alloc_ex().
360360- */
361361-const char* buflib_get_name(struct buflib_context *ctx, int handle);
362347363348/**
364349 * Gets the number of blocks in the entire buffer, allocated or unallocated
···239239240240 /* get the system buffer. release only in case of error, otherwise
241241 * we don't return anyway */
242242- rolo_handle = core_alloc_maximum("rolo", &filebuf_size, &buflib_ops_locked);
242242+ rolo_handle = core_alloc_maximum(&filebuf_size, &buflib_ops_locked);
243243 if (rolo_handle < 0)
244244 {
245245 rolo_error("OOM");
+1-1
firmware/target/arm/ata-nand-telechips.c
···915915#ifndef BOOTLOADER
916916 /* Use chip info to allocate the correct size LPT buffer */
917917 lptbuf_size = sizeof(struct lpt_entry) * segments_per_bank * total_banks;
918918- lpt_handle = core_alloc("lpt lookup", lptbuf_size);
918918+ lpt_handle = core_alloc(lptbuf_size);
919919 struct lpt_entry* lpt_lookup = core_get_data(lpt_handle);
920920#else
921921 /* Use a static array in the bootloader */