texinfo-commits
[Top][All Lists]
Advanced

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

[5825] add_file_directory_to_path declared static


From: Gavin D. Smith
Subject: [5825] add_file_directory_to_path declared static
Date: Fri, 12 Sep 2014 18:14:24 +0000

Revision: 5825
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5825
Author:   gavin
Date:     2014-09-12 18:14:23 +0000 (Fri, 12 Sep 2014)
Log Message:
-----------
add_file_directory_to_path declared static

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/info.c
    trunk/info/info.h

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-09-12 17:26:27 UTC (rev 5824)
+++ trunk/ChangeLog     2014-09-12 18:14:23 UTC (rev 5825)
@@ -16,6 +16,8 @@
        (scroll_last_node_choices): Moved between files and declared static.
        * info/variables.h: Declare 'mouse_protocol'.
 
+       * info/info.c (add_file_directory_to_path): Declared static.
+
 2014-09-12  Gavin Smith  <address@hidden>
 
        * info/session.c: Move "Garbage Collection" and "Navigation of

Modified: trunk/info/info.c
===================================================================
--- trunk/info/info.c   2014-09-12 17:26:27 UTC (rev 5824)
+++ trunk/info/info.c   2014-09-12 18:14:23 UTC (rev 5825)
@@ -544,6 +544,28 @@
     debug_level = n;
 }
       
+static void
+add_file_directory_to_path (char *filename)
+{
+  char *directory_name = xstrdup (filename);
+  char *temp = filename_non_directory (directory_name);
+
+  if (temp != directory_name)
+    {
+      if (HAVE_DRIVE (directory_name) && temp == directory_name + 2)
+       {
+         /* The directory of "d:foo" is stored as "d:.", to avoid
+            mixing it with "d:/" when a slash is appended.  */
+         *temp = '.';
+         temp += 2;
+       }
+      temp[-1] = 0;
+      infopath_add (directory_name);
+    }
+
+  free (directory_name);
+}
+
 
 /* **************************************************************** */
 /*                                                                  */
@@ -895,28 +917,6 @@
   exit (0);
 }
 
-void
-add_file_directory_to_path (char *filename)
-{
-  char *directory_name = xstrdup (filename);
-  char *temp = filename_non_directory (directory_name);
-
-  if (temp != directory_name)
-    {
-      if (HAVE_DRIVE (directory_name) && temp == directory_name + 2)
-       {
-         /* The directory of "d:foo" is stored as "d:.", to avoid
-            mixing it with "d:/" when a slash is appended.  */
-         *temp = '.';
-         temp += 2;
-       }
-      temp[-1] = 0;
-      infopath_add (directory_name);
-    }
-
-  free (directory_name);
-}
-
 
 /* Produce a scaled down description of the available options to Info. */
 static void

Modified: trunk/info/info.h
===================================================================
--- trunk/info/info.h   2014-09-12 17:26:27 UTC (rev 5824)
+++ trunk/info/info.h   2014-09-12 18:14:23 UTC (rev 5825)
@@ -73,7 +73,6 @@
 #define DECLARE_INFO_COMMAND(name, doc) \
 void name (WINDOW *window, int count, int key)
 
-
 
 /* For handling errors.  If you initialize the window system, you should
    also set info_windows_initialized_p to non-zero.  It is used by the
@@ -86,8 +85,6 @@
 /* Non-zero means don't remove ANSI escape sequences from man pages.  */
 extern int raw_escapes_p;
 
-extern void add_file_directory_to_path (char *filename);
-
 /* Error message defines. */
 extern const char *msg_cant_find_node;
 extern const char *msg_cant_file_node;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]