コード例 #1
0
ファイル: resources.c プロジェクト: Legend5/level-1-1st
int resources_exhausted(Resources r) {
    if (resources_timer_expired(r)) {
	r->timer_expired = TRUE;
    }
    if (resources_memory_exhausted(r)) {
	r->memory_exhausted = TRUE;
    }
    return (r->timer_expired || r->memory_exhausted);
}
コード例 #2
0
ファイル: api.c プロジェクト: TatianaBatura/link-grammar
bool parse_options_memory_exhausted(Parse_Options opts) {
	return resources_memory_exhausted(opts->resources);
}
コード例 #3
0
ファイル: api.c プロジェクト: mclumd/Alfred
int parse_options_resources_exhausted(Parse_Options opts) {
    return (resources_timer_expired(opts->resources) || resources_memory_exhausted(opts->resources));
}