Changeset 96828e4 for perlglue.xs


Ignore:
Timestamp:
Feb 11, 2011, 4:31:33 PM (11 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
35b6eb9
Parents:
9518a85
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:51:45)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:33)
Message:
Replace owl_malloc with g_new and g_new0.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perlglue.xs

    r40382e0 r96828e4  
    4343                        rv = owl_function_command(cmd);
    4444                } else {
    45                         argv = owl_malloc((items + 1) * sizeof *argv);
     45                        argv = g_new(const char *, items + 1);
    4646                        argv[0] = cmd;
    4747                        for(i = 1; i < items; i++) {
     
    287287     CODE:
    288288        {
    289                 s = owl_malloc(sizeof(owl_style));
     289                s = g_new(owl_style, 1);
    290290                owl_style_create_perl(s, name, newSVsv(object));
    291291                owl_global_add_style(&g, s);
Note: See TracChangeset for help on using the changeset viewer.