Changeset 121

Show
Ignore:
Timestamp:
06/03/07 20:22:49 (2 years ago)
Author:
dsmith
Message:

python plugin changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dev/wminput/conf.c

    r118 r121  
    1616 * 
    1717 *  ChangeLog: 
     18 *  2007-06-03 L. Donnie Smith <cwiid@abstrakraft.org> 
     19 *  * fixed plugin->data malloc bug 
     20 * 
    1821 *  2007-06-01 L. Donnie Smith <cwiid@abstrakraft.org> 
    1922 *  * added python plugin support 
     
    680683                                        break; 
    681684                                } 
     685                                else { 
     686                                        /* TODO: print only syntax errors, not "module not found errors" */ 
     687                                        PyErr_Print(); 
     688                                } 
    682689                                /* TODO: restore directory */ 
    683690                        } 
     
    793800                                return NULL; 
    794801                        } 
    795                         if (!(plugin->data = malloc(sizeof &plugin->data))) { 
     802                        if (!(plugin->data = malloc(sizeof *plugin->data))) { 
    796803                                wminput_err("malloc error"); 
    797804                                Py_DECREF((PyObject *)info); 
  • branches/dev/wminput/pyplugin.c

    r118 r121  
    1616 * 
    1717 *  ChangeLog: 
     18 *  2007-06-03 L. Donnie Smith <cwiid@abstrakraft.org> 
     19 *  * added WMPLUGIN_ABS and WMPLUGIN_REL constants 
     20 * 
    1821 *  2007-06-01 L. Donnie Smith <cwiid@abstrakraft.org> 
    1922 *  * Initial ChangeLog 
     
    5760        int value; 
    5861} wmplugin_constants[] = { 
     62        WMPLUGIN_CONST_MACRO(ABS), 
     63        WMPLUGIN_CONST_MACRO(REL), 
    5964        WMPLUGIN_CONST_MACRO(PARAM_INT), 
    6065        WMPLUGIN_CONST_MACRO(PARAM_FLOAT),