aboutsummaryrefslogtreecommitdiffhomepage
path: root/highlight.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-20 10:50:10 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-20 10:50:10 +1000
commit568803568043345e7971403f03769a485a73939c (patch)
tree56b3b435e6bd0448ccd90cf90b3e01470ab89ff6 /highlight.c
parent43b6b703ff56ed4a4194d26811823a6c4e545a87 (diff)
Large number of sourcecode comment edits, and some minor code polish
darcs-hash:20060620005010-ac50b-eaeae9a6242a37c1e34831e1a0b2ee2b4e7a012e.gz
Diffstat (limited to 'highlight.c')
-rw-r--r--highlight.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/highlight.c b/highlight.c
index f18c191d..25d58bea 100644
--- a/highlight.c
+++ b/highlight.c
@@ -33,6 +33,9 @@
#include "halloc.h"
#include "halloc_util.h"
+/**
+ Number of elements in the highlight_var array
+*/
#define VAR_COUNT ( sizeof(highlight_var)/sizeof(wchar_t *) )
static void highlight_universal_internal( wchar_t * buff,
@@ -62,6 +65,11 @@ static wchar_t *highlight_var[] =
}
;
+/**
+ Tests if the specified string is the prefix of any valid path in the system.
+
+ \return zero it this is not a valid prefix, non-zero otherwise
+*/
static int is_potential_path( const wchar_t *path )
{
wchar_t *tilde, *unescaped;