~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/intern/property.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/*  property.c   june 2000
3
3
 * 
4
4
 *  ton roosendaal
5
 
 * $Id: property.c,v 1.3 2002/11/25 12:01:52 mein Exp $
 
5
 * $Id: property.c,v 1.5 2005/04/02 15:36:56 zuster Exp $
6
6
 *
7
7
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
8
8
 *
41
41
#include <config.h>
42
42
#endif
43
43
 
44
 
#ifdef WIN32
45
 
#include "BLI_winstuff.h"
46
 
#endif
47
 
 
48
44
#include "MEM_guardedalloc.h"
49
45
 
50
46
#include "DNA_property_types.h"
168
164
        
169
165
        switch(prop->type) {
170
166
        case PROP_BOOL:
171
 
                if(strcasecmp(str, "true")==0) {
 
167
                if(BLI_strcasecmp(str, "true")==0) {
172
168
                        if(prop->data==1) return 0;
173
169
                        else return 1;
174
170
                }
175
 
                else if(strcasecmp(str, "false")==0) {
 
171
                else if(BLI_strcasecmp(str, "false")==0) {
176
172
                        if(prop->data==0) return 0;
177
173
                        else return 1;
178
174
                }
204
200
 
205
201
        switch(prop->type) {
206
202
        case PROP_BOOL:
207
 
                if(strcasecmp(str, "true")==0) prop->data= 1;
208
 
                else if(strcasecmp(str, "false")==0) prop->data= 0;
 
203
                if(BLI_strcasecmp(str, "true")==0) prop->data= 1;
 
204
                else if(BLI_strcasecmp(str, "false")==0) prop->data= 0;
209
205
                else prop->data= (atoi(str)!=0);
210
206
                break;
211
207
        case PROP_INT: