[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[augeas-devel] augeas: master - Rename AUG_NO_DEFAULT_LOAD to AUG_NO_MODL_AUTOLOAD



Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=d26170841cc7f5c894c401b2b2e99c2c44e09310
Commit:        d26170841cc7f5c894c401b2b2e99c2c44e09310
Parent:        36790ba70becfa55f5bec1e203b865358ac94dc0
Author:        David Lutterkort <lutter redhat com>
AuthorDate:    Tue Mar 17 16:34:18 2009 -0700
Committer:     David Lutterkort <lutter redhat com>
CommitterDate: Thu Mar 19 10:41:40 2009 -0700

Rename AUG_NO_DEFAULT_LOAD to AUG_NO_MODL_AUTOLOAD

---
 src/augparse.c |    2 +-
 src/internal.h |    5 ++---
 src/syntax.c   |    2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/augparse.c b/src/augparse.c
index c195411..fd7c25b 100644
--- a/src/augparse.c
+++ b/src/augparse.c
@@ -56,7 +56,7 @@ int main(int argc, char **argv) {
         { 0, 0, 0, 0}
     };
     int idx;
-    unsigned int flags = AUG_TYPE_CHECK|AUG_NO_DEFAULT_LOAD;
+    unsigned int flags = AUG_TYPE_CHECK|AUG_NO_MODL_AUTOLOAD;
     progname = argv[0];
 
     while ((opt = getopt_long(argc, argv, "hI:", options, &idx)) != -1) {
diff --git a/src/internal.h b/src/internal.h
index 0b49f95..b689677 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -259,10 +259,9 @@ char* read_file(const char *path);
  */
 const char *xstrerror(int errnum, char *buf, size_t len);
 
-/* Define: AUG_NO_DEFAULT_LOAD
- * A hidden flag used by augparse to suppress loading of all the modules
+/* A hidden flag used by augparse to suppress loading of all the modules
  * on the path */
-#define AUG_NO_DEFAULT_LOAD (1 << 15)
+#define AUG_NO_MODL_AUTOLOAD (1 << 15)
 
 /* Struct: augeas
  * The data structure representing a connection to Augeas. */
diff --git a/src/syntax.c b/src/syntax.c
index 04a1a87..b450473 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1897,7 +1897,7 @@ int interpreter_init(struct augeas *aug) {
 
     aug->modules = builtin_init();
 
-    if (aug->flags & AUG_NO_DEFAULT_LOAD)
+    if (aug->flags & AUG_NO_MODL_AUTOLOAD)
         return 0;
 
     // For now, we just load every file on the search path



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]