home-etc: configure.ac, src/Makefile.am, src/home_etc.c, src/home_...
siefca
siefca at pld-linux.org
Wed May 17 18:14:06 CEST 2006
Author: siefca Date: Wed May 17 16:14:06 2006 GMT
Module: home-etc Tag: HEAD
---- Log message:
- preparing to provide the external tool - realpath
---- Files affected:
home-etc:
configure.ac (1.9 -> 1.10)
home-etc/src:
Makefile.am (1.5 -> 1.6) , home_etc.c (1.15 -> 1.16) , home_etc.h (1.14 -> 1.15)
---- Diffs:
================================================================
Index: home-etc/configure.ac
diff -u home-etc/configure.ac:1.9 home-etc/configure.ac:1.10
--- home-etc/configure.ac:1.9 Wed May 17 03:50:04 2006
+++ home-etc/configure.ac Wed May 17 18:14:01 2006
@@ -30,7 +30,7 @@
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([stdlib.h string.h strings.h memory.h pwd.h sys/param.h sys/types.h unistd.h])
+AC_CHECK_HEADERS([stdio.h stdlib.h string.h strings.h memory.h pwd.h sys/param.h sys/types.h unistd.h])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
================================================================
Index: home-etc/src/Makefile.am
diff -u home-etc/src/Makefile.am:1.5 home-etc/src/Makefile.am:1.6
--- home-etc/src/Makefile.am:1.5 Wed May 17 03:50:04 2006
+++ home-etc/src/Makefile.am Wed May 17 18:14:01 2006
@@ -10,9 +10,14 @@
home_etc.c
include_HEADERS = home_etc.h
+realpath_SOURCES = realpath.c
+
noinst_PROGRAMS = test example example2 example3
+bin_PROGRAMS = realpath
+
test_LDADD = libhome_etc.la
+realpath_LDADD = libhome_etc.la
example_LDADD = libhome_etc.la
example2_LDADD = libhome_etc.la
example3_LDADD = libhome_etc.la
================================================================
Index: home-etc/src/home_etc.c
diff -u home-etc/src/home_etc.c:1.15 home-etc/src/home_etc.c:1.16
--- home-etc/src/home_etc.c:1.15 Wed May 17 16:28:45 2006
+++ home-etc/src/home_etc.c Wed May 17 18:14:01 2006
@@ -240,6 +240,14 @@
return;
}
+/****************************************************************/
+/* canonize pathname as it is possible */
+
+const char *path_canonize(const char *path, char use_env)
+{
+ return canonize_path(path, use_env, h_etc_expand_tilde);
+}
+
/*
Local Variables:
mode: c
================================================================
Index: home-etc/src/home_etc.h
diff -u home-etc/src/home_etc.h:1.14 home-etc/src/home_etc.h:1.15
--- home-etc/src/home_etc.h:1.14 Wed May 17 03:50:04 2006
+++ home-etc/src/home_etc.h Wed May 17 18:14:01 2006
@@ -27,6 +27,9 @@
/* expand-tilde enable or disable */
void home_etc_expand_tilde(const char);
+/* other helpful functions for you to use */
+const char *path_canonize(const char *path, char use_env);
+
/* a sweet wrappers */
const char *_HE(const char *pathname);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/home-etc/configure.ac?r1=1.9&r2=1.10&f=u
http://cvs.pld-linux.org/home-etc/src/Makefile.am?r1=1.5&r2=1.6&f=u
http://cvs.pld-linux.org/home-etc/src/home_etc.c?r1=1.15&r2=1.16&f=u
http://cvs.pld-linux.org/home-etc/src/home_etc.h?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list