comparison src/animate.c @ 119:257a1d314bcd

Bug of insert sort
author Thinker K.F. Li <thinker@branda.to>
date Sun, 14 Sep 2008 21:08:25 +0800
parents e4e47d2cdbcd
children 5df7403b6fbc
comparison
equal deleted inserted replaced
118:c9c6810a96c1 119:257a1d314bcd
101 int n_words; 101 int n_words;
102 int max_words; 102 int max_words;
103 mb_word_t words[1]; 103 mb_word_t words[1];
104 }; 104 };
105 105
106 /*! \brief Create a program object.
107 *
108 * \param max_words is maximum number of words the program can hold.
109 * \param rdman is a rdman that show graphics manipulated by it.
110 */
106 mb_progm_t *mb_progm_new(int max_words, redraw_man_t *rdman) { 111 mb_progm_t *mb_progm_new(int max_words, redraw_man_t *rdman) {
107 mb_progm_t *progm; 112 mb_progm_t *progm;
108 int i; 113 int i;
109 114
110 progm = (mb_progm_t *)malloc(sizeof(mb_progm_t) + 115 progm = (mb_progm_t *)malloc(sizeof(mb_progm_t) +