Mercurial > MadButterfly
comparison src/shift.c @ 202:75ec0124202a
Commit merged between 200 and 201
author | wycc@wycc-desktop |
---|---|
date | Tue, 09 Dec 2008 23:34:05 +0800 |
parents | 45d9a1e2764d |
children | 586e50f82c1f |
comparison
equal
deleted
inserted
replaced
201:31933f9ee70e | 202:75ec0124202a |
---|---|
78 mb_word_t *word) { | 78 mb_word_t *word) { |
79 mb_shift_t *shift; | 79 mb_shift_t *shift; |
80 | 80 |
81 shift = (mb_shift_t *)malloc(sizeof(mb_shift_t)); | 81 shift = (mb_shift_t *)malloc(sizeof(mb_shift_t)); |
82 if(shift == NULL) | 82 if(shift == NULL) |
83 return (mb_action_t *)shift; | 83 return NULL; |
84 | 84 |
85 shift->x = x; | 85 shift->x = x; |
86 shift->y = y; | 86 shift->y = y; |
87 shift->coord = coord; | 87 shift->coord = coord; |
88 | 88 |