Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-03-29 10:25:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-29 10:25:22 +0400
commit1777a69818610d4ed8a93f661a45219d97e7f6c5 (patch)
treebbfb0b35629e94ffd727f4a8b98fbf6cbebdaa36 /source/blender/makesrna/intern/rna_test.c
parentab41583bc2be591c0af921b243158e43a94505d7 (diff)
misc minor edits.
- pass string size to BLI_timestr() to avoid possible buffer overrun. - quiet warning for mingw. - include guards for windows utf conversion funcs. - fix for mistage in edge-angle-selection check. - some style cleanup.
Diffstat (limited to 'source/blender/makesrna/intern/rna_test.c')
-rw-r--r--source/blender/makesrna/intern/rna_test.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/rna_test.c b/source/blender/makesrna/intern/rna_test.c
index 1f5a4ff7f92..22b6f323647 100644
--- a/source/blender/makesrna/intern/rna_test.c
+++ b/source/blender/makesrna/intern/rna_test.c
@@ -57,12 +57,12 @@
(void)0
#define DEF_GET_SET(type, arr) \
- void rna_Test_ ## arr ## _get(PointerRNA * ptr, type * values) \
+ void rna_Test_ ## arr ## _get(PointerRNA *ptr, type * values) \
{ \
memcpy(values, arr, sizeof(arr)); \
} \
- \
- void rna_Test_ ## arr ## _set(PointerRNA * ptr, const type * values) \
+ \
+ void rna_Test_ ## arr ## _set(PointerRNA *ptr, const type * values) \
{ \
memcpy(arr, values, sizeof(arr)); \
} \
@@ -73,14 +73,14 @@
{ \
return arr ## _len; \
} \
- \
- static int rna_Test_ ## arr ## _set_length(PointerRNA * ptr, int length) \
+ \
+ static int rna_Test_ ## arr ## _set_length(PointerRNA *ptr, int length) \
{ \
if (length > max) \
return 0; \
- \
+ \
arr ## _len = length; \
- \
+ \
return 1; \
} \
(void)0