Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
updated: [master] [ff22fa9] src/filemanager/command.c: add DOXYGEN doc little little code cleanup.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andrew Borodin  
View profile  
 More options Nov 9 2012, 1:12 am
From: "Andrew Borodin" <aboro...@vmail.ru>
Date: Fri, 9 Nov 2012 07:12:01 +0100 (CET)
Local: Fri, Nov 9 2012 1:12 am
Subject: updated: [master] [ff22fa9] src/filemanager/command.c: add DOXYGEN doc little little code cleanup.
The following commit has been merged in the master branch:
commit ff22fa9ca09a957f2d00ee41d76670dde73716cb
Author: Ilia Maslakov <il.sm...@gmail.com>
Date:   Fri Nov 2 23:33:01 2012 +0400

    src/filemanager/command.c: add DOXYGEN doc little little code cleanup.

    Signed-off-by: Ilia Maslakov <il.sm...@gmail.com>

diff --git a/src/filemanager/command.c b/src/filemanager/command.c
index d98b772..4deefdd 100644
--- a/src/filemanager/command.c
+++ b/src/filemanager/command.c
@@ -80,6 +80,9 @@ WInput *cmdline;
  * substituted.  Wildcards are not supported either.
  * Advanced users should be encouraged to use "\cd" instead of "cd" if
  * they want the behavior they are used to in the shell.
+ *
+ * @param _path string to examine
+ * @return newly allocated string
  */

 static char *
@@ -227,7 +230,12 @@ handle_cdpath (const char *path)
 }

 /* --------------------------------------------------------------------------- ------------------ */
-/** Handle Enter on the command line */
+
+/** Handle Enter on the command line
+ *
+ * @param lc_cmdline string for handling
+ * @return MSG_HANDLED on sucsess else MSG_NOT_HANDLED
+ */

 static cb_ret_t
 enter (WInput * lc_cmdline)
@@ -316,6 +324,16 @@ enter (WInput * lc_cmdline)

 /* --------------------------------------------------------------------------- ------------------ */

+/**
+ * Default command line callback
+ *
+ * @param w Widget object
+ * @param msg message for handling
+ * @param parm extra parameter such as key code
+ *
+ * @return MSG_NOT_HANDLED on fail else MSG_HANDLED
+ */
+
 static cb_ret_t
 command_callback (Widget * w, widget_msg_t msg, int parm)
 {
@@ -330,9 +348,7 @@ command_callback (Widget * w, widget_msg_t msg, int parm)
     case WIDGET_KEY:
         /* Special case: we handle the enter key */
         if (parm == '\n')
-        {
             return enter (cmd);
-        }
         /* fall through */

     default:
@@ -344,8 +360,11 @@ command_callback (Widget * w, widget_msg_t msg, int parm)
 /*** public functions *************************************************************************** */
 /* --------------------------------------------------------------------------- ------------------ */

-/* --------------------------------------------------------------------------- ------------------ */
-/** Execute the cd command on the command line */
+/** Execute the cd command on the command line
+ *
+ * @param orig_cmd command for execution
+ */
+
 void
 do_cd_command (char *orig_cmd)
 {
@@ -472,6 +491,10 @@ command_new (int y, int x, int cols)
 /**
  * Insert quoted text in input line.  The function is meant for the
  * command line, so the percent sign is quoted as well.
+ *
+ * @param in WInput object
+ * @param text string for insertion
+ * @param insert_extra_space add extra space
  */

 void

--
Midnight Commander Development


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »