• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/apr-util/misc/

Lines Matching defs:this

3  * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
33 * The firstused field in this structure is the address of the first
143 static void move_block(apr_rmm_t *rmm, apr_rmm_off_t this, int free)
145 struct rmm_block_t *blk = (rmm_block_t*)((char*)rmm->base + this);
167 blk->prev = find_block_by_offset(rmm, rmm->base->firstfree, this, 1);
170 rmm->base->firstfree = this;
174 blk->prev = find_block_by_offset(rmm, rmm->base->firstused, this, 1);
177 rmm->base->firstused = this;
184 if (free && (blk->prev + prev->size == this)) {
187 this = blk->prev;
192 prev->next = this;
198 if (free && (this + blk->size == blk->next)) {
204 next->prev = this;
208 next->prev = this;
258 apr_rmm_off_t this = rmm->base->firstused;
260 blk = (rmm_block_t *)((char*)rmm->base + this);
261 this = blk->next;
263 } while (this);
267 apr_rmm_off_t this = rmm->base->firstfree;
269 blk = (rmm_block_t *)((char*)rmm->base + this);
270 this = blk->next;
272 } while (this);
310 apr_rmm_off_t this;
319 this = find_block_of_size(rmm, size);
321 if (this) {
322 move_block(rmm, this, 0);
323 this += RMM_BLOCK_SIZE;
327 return this;
333 apr_rmm_off_t this;
342 this = find_block_of_size(rmm, size);
344 if (this) {
345 move_block(rmm, this, 0);
346 this += RMM_BLOCK_SIZE;
347 memset((char*)rmm->base + this, 0, size - RMM_BLOCK_SIZE);
351 return this;
357 apr_rmm_off_t this;
372 if ((this = apr_rmm_malloc(rmm, size)) == 0) {
379 memcpy(apr_rmm_addr_get(rmm, this),
383 return this;
386 APU_DECLARE(apr_status_t) apr_rmm_free(apr_rmm_t *rmm, apr_rmm_off_t this)
392 * If we really cared, we could make this compile-time
394 if (this < RMM_HDR_BLOCK_SIZE + RMM_BLOCK_SIZE) {
398 this -= RMM_BLOCK_SIZE;
400 blk = (rmm_block_t*)((char*)rmm->base + this);
407 if (prev->next != this) {
413 if (rmm->base->firstused != this) {
421 if (next->prev != this) {
429 move_block(rmm, this, 1);