Commit | Line | Data |
---|---|---|
805e021f CE |
1 | /* |
2 | * This file contains functions which can be inlined if the compiler | |
3 | * has an "inline" modifier. Because of this, this file is both a | |
4 | * header file and a compilable module. | |
5 | * | |
6 | * Only inlineable functions should be defined in here. They must all | |
7 | * include the INLINE modifier. | |
8 | * | |
9 | * If the compiler supports inline, this file will be #included as a | |
10 | * header file from os.h to create all the inline function | |
11 | * definitions. INLINE will be defined to whatever is required on | |
12 | * function definitions to make them inline declarations. | |
13 | * | |
14 | * If the compiler does not support inline, this file will be compiled | |
15 | * as a normal C file into libos.a (along with os.c). In this case | |
16 | * INLINE will _not_ be set so we can use this to test if we are | |
17 | * compiling this source file. | |
18 | */ | |
19 | ||
20 | #ifndef INLINE | |
21 | #define INLINE | |
22 | ||
23 | /* Anything required only when compiling */ | |
24 | #include "ap_config.h" | |
25 | ||
26 | #endif | |
27 | ||
28 | INLINE int | |
29 | ap_os_is_path_absolute(const char *file) | |
30 | { | |
31 | return file[0] == '/'; | |
32 | } |