Lines Matching refs:new
451 char *new = realloc(ab->b,ab->len+len);
453 if (new == NULL) return;
454 memcpy(new+ab->len,s,len);
455 ab->b = new;
666 /* Show the new entry */
1007 /* This is the API call to add a new entry in the linenoise history.
1010 * entry and make room for the new one, so it is not exactly suitable for huge
1045 * just the latest 'len' elements if the new history length value is smaller
1048 char **new;
1054 new = malloc(sizeof(char*)*len);
1055 if (new == NULL) return 0;
1064 memset(new,0,sizeof(char*)*len);
1065 memcpy(new,history+(history_len-tocopy), sizeof(char*)*tocopy);
1067 history = new;