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:
authorKent Mein <mein@cs.umn.edu>2002-12-20 05:08:46 +0300
committerKent Mein <mein@cs.umn.edu>2002-12-20 05:08:46 +0300
commite49aeb84688180b3f9ef2c831ac509d8475ab3fe (patch)
tree9d408a2c2569bb88420ce8b3ebcdfa80d21ea7e8 /source/blender/blenkernel/bad_level_call_stubs
parentcf13c60fa4b8cbeadd557eba6cf2d687768ba537 (diff)
In stubs.c I added a dummy return to functions that were non void types.
in readfile.c I renamed some localvars that were named main to mainl in a couple of functions. in action.c I initalized a var to 0. This is probably not needed but its a little safer incase someone adds more modes... I've included a diff of this last one below. Kent Index: action.c =================================================================== RCS file: /cvs01/blender/source/blender/blenkernel/intern/action.c,v retrieving revision 1.6 diff -u -r1.6 action.c --- action.c 2002/11/25 12:01:52 1.6 +++ action.c 2002/12/20 02:06:27 @@ -153,7 +153,7 @@ ){ bConstraint *dcon; const bConstraint *scon; - float dstweight; + float dstweight = 0; switch (mode){ case POSE_BLEND:
Diffstat (limited to 'source/blender/blenkernel/bad_level_call_stubs')
-rw-r--r--source/blender/blenkernel/bad_level_call_stubs/stubs.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/blenkernel/bad_level_call_stubs/stubs.c b/source/blender/blenkernel/bad_level_call_stubs/stubs.c
index 1c6d539e8a2..01e2acfb6c7 100644
--- a/source/blender/blenkernel/bad_level_call_stubs/stubs.c
+++ b/source/blender/blenkernel/bad_level_call_stubs/stubs.c
@@ -87,7 +87,7 @@ ListBase editNurb;
#include "DNA_world_types.h" /* for render_types */
#include "render_types.h"
struct RE_Render R;
-float RE_Spec(float inp, int hard){}
+float RE_Spec(float inp, int hard){return 0;}
void waitcursor(int val){}
void allqueue(unsigned short event, short val){}
#define REDRAWVIEW3D 0x4010
@@ -102,7 +102,7 @@ void load_editMesh(void){}
void make_editMesh(void){}
void free_editMesh(void){}
void docentre_new(void){}
-int saveover(char *str){}
+int saveover(char *str){ return 0;}
/* image.c */
#include "DNA_image_types.h"
@@ -122,11 +122,11 @@ ListBase editelems;
/* object.c */
void BPY_free_scriptlink(ScriptLink *slink){}
void BPY_copy_scriptlink(ScriptLink *scriptlink){}
-float *give_cursor(void){} // become a callback or argument
+float *give_cursor(void){ return 0;} // become a callback or argument
/* packedFile.c */
-short pupmenu(char *instr){} // will be general callback
+short pupmenu(char *instr){ return 0;} // will be general callback
/* sca.c */
#define LEFTMOUSE 0x001 // because of mouse sensor
@@ -179,9 +179,13 @@ int BPY_call_importloader(char *name)
/* struct EnvMap; */
/* struct Tex; */
void RE_free_envmap(struct EnvMap *env){}
-struct EnvMap *RE_copy_envmap(struct EnvMap *env){}
+struct EnvMap *RE_copy_envmap(struct EnvMap *env){ return env;}
void RE_free_envmapdata(struct EnvMap *env){}
-int RE_envmaptex(struct Tex *tex, float *texvec, float *dxt, float *dyt){}
+
+int RE_envmaptex(struct Tex *tex, float *texvec, float *dxt, float *dyt){
+ return 0;
+}
+
void RE_calc_R_ref(void){}
char texstr[15][8]; /* buttons.c */
Osa O;