Skip to content

Commit

Permalink
api change
Browse files Browse the repository at this point in the history
  • Loading branch information
ynkdir committed Mar 5, 2011
1 parent 5175be8 commit 46cefe3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static int
echoeval(const char *expr, char **result)
{
printf("%s\n", expr);
*result = vimremote_alloc(strlen(expr) + 1);
*result = vimremote_malloc(strlen(expr) + 1);
strcpy(*result, expr);
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def feval(expr, result):
except Exception as e:
res = str(e)
err = -1
result[0] = vimremote.vimremote_alloc(len(res) + 1)
result[0] = vimremote.vimremote_malloc(len(res) + 1)
memmove(result[0], c_char_p(res), len(res) + 1)
return err

Expand Down
2 changes: 1 addition & 1 deletion src/vimremote.def
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
LIBRARY VIMREMOTE.DLL
EXPORTS
vimremote_alloc
vimremote_malloc
vimremote_free
vimremote_init
vimremote_uninit
Expand Down
2 changes: 1 addition & 1 deletion src/vimremote.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

typedef int (*vimremote_eval_f) (const char *expr, char **result);

void *vimremote_alloc(size_t len);
void *vimremote_malloc(size_t len);
void vimremote_free(void *p);
int vimremote_init();
int vimremote_uninit();
Expand Down
2 changes: 1 addition & 1 deletion src/vimremote_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void serverProcessPendingMessages(void);
static char_u * serverConvert(char_u *client_enc, char_u *data, char_u **tofree);

void *
vimremote_alloc(size_t len)
vimremote_malloc(size_t len)
{
return malloc(len);
}
Expand Down
2 changes: 1 addition & 1 deletion src/vimremote_x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static vimremote_eval_f usereval = NULL;
static char_u *serverName = NULL;

void *
vimremote_alloc(size_t len)
vimremote_malloc(size_t len)
{
return malloc(len);
}
Expand Down

0 comments on commit 46cefe3

Please sign in to comment.