Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.h @ 24608:1c533e23ce95
util.h: define an enum for normcase specs
These will be used in upcoming patches to efficiently create a dirstate
foldmap.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Thu, 02 Apr 2015 19:17:32 -0700 |
parents | 539b3c7eea44 |
children | 3550ccbafca2 |
line wrap: on
line diff
--- a/mercurial/util.h Thu Apr 02 19:13:50 2015 -0700 +++ b/mercurial/util.h Thu Apr 02 19:17:32 2015 -0700 @@ -209,6 +209,13 @@ return ret; } +/* This should be kept in sync with normcasespecs in encoding.py. */ +enum normcase_spec { + NORMCASE_LOWER = -1, + NORMCASE_UPPER = 1, + NORMCASE_OTHER = 0 +}; + #define MIN(a, b) (((a)<(b))?(a):(b)) /* VC9 doesn't include bool and lacks stdbool.h based on my searching */ #ifdef _MSC_VER