returns true if environment variable FIREBIRD_BOOT_BUILD is set
| 1198 | |
| 1199 | // returns true if environment variable FIREBIRD_BOOT_BUILD is set |
| 1200 | bool bootBuild() |
| 1201 | { |
| 1202 | static enum {FB_BOOT_UNKNOWN, FB_BOOT_NORMAL, FB_BOOT_SET} state = FB_BOOT_UNKNOWN; |
| 1203 | |
| 1204 | if (state == FB_BOOT_UNKNOWN) |
| 1205 | { |
| 1206 | // not care much about protecting state with mutex - each thread will assign it same value |
| 1207 | Firebird::string dummy; |
| 1208 | state = readenv("FIREBIRD_BOOT_BUILD", dummy) ? FB_BOOT_SET : FB_BOOT_NORMAL; |
| 1209 | } |
| 1210 | |
| 1211 | return state == FB_BOOT_SET; |
| 1212 | } |
| 1213 | |
| 1214 | // Build full file name in specified directory |
| 1215 | Firebird::PathName getPrefix(unsigned int prefType, const char* name) |
no test coverage detected