[geany/geany] d8b178: Whitespace changes

Jiří Techet git-noreply at xxxxx
Sat Nov 8 18:57:59 UTC 2014


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Wed, 22 Oct 2014 13:59:36 UTC
Commit:      d8b178e4cbf4c0569a4b5c67e8c48f566d58a5b1
             https://github.com/geany/geany/commit/d8b178e4cbf4c0569a4b5c67e8c48f566d58a5b1

Log Message:
-----------
Whitespace changes


Modified Paths:
--------------
    tagmanager/src/tm_source_file.c
    tagmanager/src/tm_workspace.c
    tagmanager/src/tm_workspace.h

Modified: tagmanager/src/tm_source_file.c
48 lines changed, 24 insertions(+), 24 deletions(-)
===================================================================
@@ -58,24 +58,24 @@ static int get_path_max(const char *path)
  * with special chars within the filename */
 static char *realpath (const char *pathname, char *resolved_path)
 {
-  int size;
-
-  if (resolved_path != NULL)
-  {
-    int path_max = get_path_max(pathname);
-	size = GetFullPathNameA (pathname, path_max, resolved_path, NULL);
-    if (size > path_max)
-      return NULL;
-    else
-      return resolved_path;
-  }
-  else
-  {
-    size = GetFullPathNameA (pathname, 0, NULL, NULL);
-    resolved_path = g_new0 (char, size);
-    GetFullPathNameA (pathname, size, resolved_path, NULL);
-    return resolved_path;
-  }
+	int size;
+
+	if (resolved_path != NULL)
+	{
+		int path_max = get_path_max(pathname);
+		size = GetFullPathNameA (pathname, path_max, resolved_path, NULL);
+		if (size > path_max)
+			return NULL;
+		else
+			return resolved_path;
+	}
+	else
+	{
+		size = GetFullPathNameA (pathname, 0, NULL, NULL);
+		resolved_path = g_new0 (char, size);
+		GetFullPathNameA (pathname, size, resolved_path, NULL);
+		return resolved_path;
+	}
 }
 #endif
 
@@ -142,8 +142,8 @@ static void tm_source_file_set_tag_arglist(const char *tag_name, const char *arg
 }
 
 /* Initializes a TMSourceFile structure from a file name. */
-static gboolean tm_source_file_init(TMSourceFile *source_file, const char *file_name
-  , gboolean update, const char* name)
+static gboolean tm_source_file_init(TMSourceFile *source_file, const char *file_name, 
+	gboolean update, const char* name)
 {
 	struct stat s;
 	int status;
@@ -412,8 +412,8 @@ void tm_source_file_update(TMSourceFile *source_file, gboolean update_workspace)
 	}
 #ifdef TM_DEBUG
 	else
-		g_message("Skipping workspace update because update_workspace is %s"
-		  , update_workspace?"TRUE":"FALSE");
+		g_message("Skipping workspace update because update_workspace is %s",
+			update_workspace?"TRUE":"FALSE");
 
 #endif
 }
@@ -459,8 +459,8 @@ void tm_source_file_buffer_update(TMSourceFile *source_file, guchar* text_buf,
 	}
 #ifdef TM_DEBUG
 	else
-		g_message("Skipping workspace update because update_workspace is %s"
-		  , update_workspace?"TRUE":"FALSE");
+		g_message("Skipping workspace update because update_workspace is %s",
+			update_workspace?"TRUE":"FALSE");
 
 #endif
 }


Modified: tagmanager/src/tm_workspace.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -584,8 +584,8 @@ void tm_workspace_update(void)
              -1 for all
  @return Array of matching tags. Do not free() it since it is a static member.
 */
-const GPtrArray *tm_workspace_find(const char *name, int type, TMTagAttrType *attrs
- , gboolean partial, langType lang)
+const GPtrArray *tm_workspace_find(const char *name, int type, TMTagAttrType *attrs,
+	gboolean partial, langType lang)
 {
 	static GPtrArray *tags = NULL;
 	TMTag **matches[2];


Modified: tagmanager/src/tm_workspace.h
12 lines changed, 6 insertions(+), 6 deletions(-)
===================================================================
@@ -28,8 +28,8 @@ extern "C"
 */
 typedef struct
 {
-    GPtrArray *global_tags; /**< Global tags loaded at startup */
-    GPtrArray *source_files; /**< An array of TMSourceFile pointers */
+	GPtrArray *global_tags; /**< Global tags loaded at startup */
+	GPtrArray *source_files; /**< An array of TMSourceFile pointers */
 	GPtrArray *tags_array; /**< Sorted tags from all source files 
 		(just pointers to source file tags, the tag objects are owned by the source files) */
 } TMWorkspace;
@@ -48,14 +48,14 @@ const TMWorkspace *tm_get_workspace(void);
 gboolean tm_workspace_load_global_tags(const char *tags_file, gint mode);
 
 gboolean tm_workspace_create_global_tags(const char *pre_process, const char **includes,
-    int includes_count, const char *tags_file, int lang);
+	int includes_count, const char *tags_file, int lang);
 
-const GPtrArray *tm_workspace_find(const char *name, int type, TMTagAttrType *attrs
- , gboolean partial, langType lang);
+const GPtrArray *tm_workspace_find(const char *name, int type, TMTagAttrType *attrs, 
+	gboolean partial, langType lang);
 
 const GPtrArray *
 tm_workspace_find_scoped (const char *name, const char *scope, gint type,
-    TMTagAttrType *attrs, gboolean partial, langType lang, gboolean global_search);
+	TMTagAttrType *attrs, gboolean partial, langType lang, gboolean global_search);
 
 const GPtrArray *tm_workspace_find_scope_members(const GPtrArray *file_tags,
                                                  const char *scope_name,



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list