代码搜索:alloc
找到约 10,000 项符合「alloc」的源代码
代码结果 10,000
www.eeworm.com/read/209211/4982642
c alloc.c
#include
#include
#include
#include
Memimage*
allocmemimage(Rectangle r, ulong chan)
{
return _allocmemimage(r, chan);
}
void
freememimage(Memimage *i)
{
_freem
www.eeworm.com/read/209211/4982813
c alloc.c
#include
#include
#include
#include
#include "xmem.h"
/* perfect approximation to NTSC = .299r+.587g+.114b when 0 ≤ r,g,b < 256 */
#define RGB2K(r,g,b) ((156763*(r
www.eeworm.com/read/209211/4982828
c alloc.c
#include
#include
#include
Image*
allocimage(Display *d, Rectangle r, ulong chan, int repl, ulong val)
{
return _allocimage(nil, d, r, chan, repl, val, 0, 0);
}
Image*
_allo
www.eeworm.com/read/209211/4983011
c alloc.c
#include
#include
#include
#include
#define poolalloc(a, b) malloc(b)
#define poolfree(a, b) free(b)
void
memimagemove(void *from, void *to)
{
Memdata *md;
md
www.eeworm.com/read/209211/4984544
c alloc.c
/*
* area-based allocation built on malloc/free
*/
#include "sh.h"
# if DEBUG_ALLOC
void acheck ARGS((Area *ap));
# define ACHECK(ap) acheck(ap)
# else /* DEBUG_ALLOC */
# define ACHECK(ap)
#
www.eeworm.com/read/209211/4985730
c alloc.c
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "error.h"
#include
static void poolprint(Pool*, char*, ...);
static void ppanic(Pool*, cha
www.eeworm.com/read/209211/4986095
c alloc.c
#include
#include
#include
Image*
allocimage(Display *d, Rectangle r, ulong chan, int repl, ulong val)
{
Image* i;
i = _allocimage(nil, d, r, chan, repl, val, 0, 0);
if (
www.eeworm.com/read/209211/4986613
c alloc.c
#include
#include
#include
#include
/*
* memory allocators:
* h routines call canalloc; they should be used by everything else
* note this memory is wiped out at t
www.eeworm.com/read/209211/4986669
c alloc.c
#include
#include
#include
#include
#include
void
memimagemove(void *from, void *to)
{
Memdata *md;
md = *(Memdata**)to;
if(md->base != from){
print
www.eeworm.com/read/209093/4987388
c alloc.c
/*
* File: alloc.c
* Purpose: generic malloc() and free() engine
*
* Notes: 99% of this code stolen/borrowed from the K&R C
* examples.
*
*/
#include "common.h"
#include "stdli