diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-03 20:31:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-03 20:31:46 +0400 |
commit | a2c182e9233333fc3b8ff40d352113ec95e7e30c (patch) | |
tree | 37a9e08f4e6c4bf794aa0c8c15af875299db4a1b /source/blender/editors/space_file | |
parent | 86cec98f9e1523ed41b67ef998174289dbae9b83 (diff) |
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 10 | ||||
-rw-r--r-- | source/blender/editors/space_file/filesel.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_file/fsmenu.c | 8 | ||||
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 548a51d9ee2..05de70b99ab 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -735,7 +735,7 @@ int file_exec(bContext *C, wmOperator *exec_op) wmOperator *op= sfile->op; /* when used as a macro, for doubleclick, - to prevent closing when doubleclicking on .. item */ + * to prevent closing when doubleclicking on .. item */ if (RNA_boolean_get(exec_op->ptr, "need_active")) { int i, active=0; @@ -996,8 +996,8 @@ void FILE_OT_smoothscroll(wmOperatorType *ot) /* create a new, non-existing folder name, returns 1 if successful, 0 if name couldn't be created. - The actual name is returned in 'name', 'folder' contains the complete path, including the new folder name. -*/ + * The actual name is returned in 'name', 'folder' contains the complete path, including the new folder name. + */ static int new_folder_path(const char* parent, char *folder, char *name) { int i = 1; @@ -1006,8 +1006,8 @@ static int new_folder_path(const char* parent, char *folder, char *name) BLI_strncpy(name, "New Folder", FILE_MAXFILE); BLI_join_dirfile(folder, FILE_MAX, parent, name); /* XXX, not real length */ /* check whether folder with the name already exists, in this case - add number to the name. Check length of generated name to avoid - crazy case of huge number of folders each named 'New Folder (x)' */ + * add number to the name. Check length of generated name to avoid + * crazy case of huge number of folders each named 'New Folder (x)' */ while (BLI_exists(folder) && (len<FILE_MAXFILE)) { len = BLI_snprintf(name, FILE_MAXFILE, "New Folder(%d)", i); BLI_join_dirfile(folder, FILE_MAX, parent, name); /* XXX, not real length */ diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index 44eadc9dee8..fa2874f4842 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -363,8 +363,8 @@ void ED_fileselect_layout_tilepos(FileLayout* layout, int tile, int *x, int *y) } /* Shorten a string to a given width w. - If front is set, shorten from the front, - otherwise shorten from the end. */ + * If front is set, shorten from the front, + * otherwise shorten from the end. */ float file_shorten_string(char* string, float w, int front) { char temp[FILE_MAX]; diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c index ea894750605..4f4ad52e4a4 100644 --- a/source/blender/editors/space_file/fsmenu.c +++ b/source/blender/editors/space_file/fsmenu.c @@ -210,8 +210,8 @@ void fsmenu_remove_entry(struct FSMenu* fsmenu, FSMenuCategory category, int idx if (fsme) { /* you should only be able to remove entries that were - not added by default, like windows drives. - also separators (where path == NULL) shouldn't be removed */ + * not added by default, like windows drives. + * also separators (where path == NULL) shouldn't be removed */ if (fsme->save && fsme->path) { /* remove fsme from list */ @@ -341,8 +341,8 @@ void fsmenu_read_system(struct FSMenu* fsmenu) } /* As 10.4 doesn't provide proper API to retrieve the favorite places, - assume they are the standard ones - TODO : replace hardcoded paths with proper BLI_get_folder calls */ + * assume they are the standard ones + * TODO : replace hardcoded paths with proper BLI_get_folder calls */ home = getenv("HOME"); if(home) { BLI_snprintf(line, 256, "%s/", home); diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index 02c9728348e..7821547aaf3 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -221,7 +221,7 @@ static void file_refresh(const bContext *C, ScrArea *UNUSED(sa)) } } else { /* stop any running thumbnail jobs if we're not - displaying them - speedup for NFS */ + * displaying them - speedup for NFS */ thumbnails_stop(sfile->files, C); } filelist_filter(sfile->files); |