4 |
/* */ |
/* */ |
5 |
/* The FreeType internal cache interface (body). */ |
/* The FreeType internal cache interface (body). */ |
6 |
/* */ |
/* */ |
7 |
/* Copyright 2000-2001, 2002, 2003, 2004 by */ |
/* Copyright 2000-2001, 2002, 2003, 2004, 2005 by */ |
8 |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 |
/* */ |
/* */ |
10 |
/* This file is part of the FreeType project, and may only be used, */ |
/* This file is part of the FreeType project, and may only be used, */ |
424 |
FT_Error error; |
FT_Error error; |
425 |
FTC_Node node; |
FTC_Node node; |
426 |
|
|
427 |
/* we use the FTC_CACHE_TRYLOOP macros in order to |
|
428 |
* support out-of-memory error (OOM) correctly, i.e. |
/* |
429 |
* by flushing the cache progressively in order to |
* We use the FTC_CACHE_TRYLOOP macros to support out-of-memory |
430 |
* make more room |
* errors (OOM) correctly, i.e., by flushing the cache progressively |
431 |
*/ |
* in order to make more room. |
432 |
FTC_CACHE_TRYLOOP(cache) |
*/ |
433 |
|
|
434 |
|
FTC_CACHE_TRYLOOP( cache ) |
435 |
{ |
{ |
436 |
error = cache->clazz.node_new( &node, query, cache ); |
error = cache->clazz.node_new( &node, query, cache ); |
437 |
} |
} |