2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 1999-2009 Oracle. All rights reserved.
15 * Initialize the BREW port of Berkeley DB.
23 * The BREW ARM compiler can't handle statics or globals, so we have
24 * store them off the AEEApplet and initialize them in in-line code.
26 p = ((BDBApp *)GETAPPINSTANCE())->db_global_values;
28 if ((p = malloc(sizeof(DB_GLOBALS))) == NULL)
30 memset(p, 0, sizeof(DB_GLOBALS));
32 ((BDBApp *)GETAPPINSTANCE())->db_global_values = p;
34 TAILQ_INIT(&DB_GLOBAL(envq));
36 "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=";
43 * Close down the BREW port of Berkeley DB.
50 p = ((BDBApp *)GETAPPINSTANCE())->db_global_values;