~ubuntu-branches/ubuntu/trusty/scilab/trusty

« back to all changes in this revision

Viewing changes to modules/graphics/src/c/getHandleProperty/set_triangles_property.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-02 11:02:49 UTC
  • mfrom: (1.4.6)
  • Revision ID: package-import@ubuntu.com-20120802110249-0v5953emkp25geuz
Tags: 5.4.0-beta-2-1~exp1
* New upstream release
* Remove libscilab-java (remove upstream). Use libscilab2-java instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include "graphicObjectProperties.h"
35
35
 
36
36
/*------------------------------------------------------------------------*/
37
 
int set_triangles_property(char* pobjUID, size_t stackPointer, int valueType, int nbRow, int nbCol )
 
37
int set_triangles_property(void* _pvCtx, char* pobjUID, size_t stackPointer, int valueType, int nbRow, int nbCol )
38
38
{
39
39
    char* type = NULL;
40
40
    BOOL result = FALSE;
46
46
        return SET_PROPERTY_ERROR;
47
47
    }
48
48
 
49
 
#if 0
50
 
    if (sciGetEntityType (pobj) != SCI_FEC )
51
 
    {
52
 
        Scierror(999, _("'%s' property does not exist for this handle.\n"),"triangles");
53
 
        return SET_PROPERTY_ERROR;
54
 
    }
55
 
#endif
56
 
 
57
49
    /*
58
50
     * Discriminating between a failed allocation and the non-existing property case
59
51
     * is not done for now.
60
52
     * To be implemented/corrected.
61
53
     */
62
 
    getGraphicObjectProperty(pobjUID, __GO_TYPE__, jni_string, &type);
 
54
    getGraphicObjectProperty(pobjUID, __GO_TYPE__, jni_string, (void **)&type);
63
55
 
64
56
    if (strcmp(type, __GO_FEC__) != 0)
65
57
    {