projects
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add urpmi support
[util-vserver.git]
/
lib_internal
/
pathinfo.h
diff --git
a/lib_internal/pathinfo.h
b/lib_internal/pathinfo.h
index
9e6c045
..
d1e2c73
100644
(file)
--- a/
lib_internal/pathinfo.h
+++ b/
lib_internal/pathinfo.h
@@
-23,6
+23,7
@@
#define ENSC_PI_DECLARE(VAR,VAL) PathInfo VAR={.d = VAL,.l = sizeof(VAL)-1}
#define ENSC_PI_APPSZ(P1,P2) ((P1).l + sizeof("/") + (P2).l)
+#define ENSC_PI_SETSTR(VAR,VAL) do { VAR.d = VAL; VAR.l = strlen(VAL); } while (0)
typedef String PathInfo;