diff options
author | Dan Bornstein <danfuzz@android.com> | 2010-09-15 13:13:33 -0700 |
---|---|---|
committer | Dan Bornstein <danfuzz@android.com> | 2010-09-15 13:13:33 -0700 |
commit | bbf9d73a5677de73eaa3b4e1f6de94a24697aad1 (patch) | |
tree | 0d8a331b9941fd10dc618eace19a8b6207d648dc /vm/Misc.h | |
parent | 5170ba5e38ff9e1410fcbb65dc67ea6a6d5b4b17 (diff) | |
parent | a5d998926bdc642ceef18959372fa08791a22c08 (diff) | |
download | android_dalvik-bbf9d73a5677de73eaa3b4e1f6de94a24697aad1.tar.gz android_dalvik-bbf9d73a5677de73eaa3b4e1f6de94a24697aad1.tar.bz2 android_dalvik-bbf9d73a5677de73eaa3b4e1f6de94a24697aad1.zip |
resolved conflicts for merge of a5d99892 to dalvik-dev
Change-Id: I3c030a6b19416a2ac3ca709cdbcbc6b41e6379d3
Diffstat (limited to 'vm/Misc.h')
-rw-r--r-- | vm/Misc.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -316,4 +316,23 @@ typedef struct { } ProcStatData; bool dvmGetThreadStats(ProcStatData* pData, pid_t tid); +/* + * Returns the pointer to the "absolute path" part of the given path + * string, treating first (if any) instance of "/./" as a sentinel + * indicating the start of the absolute path. If the path isn't absolute + * in the usual way (i.e., starts with "/") and doesn't have the sentinel, + * then this returns NULL. + * + * For example: + * "/foo/bar/baz" returns "/foo/bar/baz" + * "foo/./bar/baz" returns "/bar/baz" + * "foo/bar/baz" returns NULL + * + * The sentinel is used specifically to aid in cross-optimization, where + * a host is processing dex files in a build tree, and where we don't want + * the build tree's directory structure to be baked into the output (such + * as, for example, in the dependency paths of optimized dex files). + */ +const char* dvmPathToAbsolutePortion(const char* path); + #endif /*_DALVIK_MISC*/ |