source:
patches/readline-7.0-branch_update-1.patch@
ca39770
Last change on this file since ca39770 was b252915, checked in by , 8 years ago | |
---|---|
|
|
File size: 3.0 KB |
-
readline-7.0
Submitted By: William Harrington (kb0iic at cross-lfs dot org) Date: 05-04-2017 Initial Package Version: 7.0 Origin: Upstream Upstream Status: Applied Description: Contains all upstream patches up to 7.0-003 diff -Naur readline-7.0.orig/history.c readline-7.0/history.c
old new 57 57 /* How big to make the_history when we first allocate it. */ 58 58 #define DEFAULT_HISTORY_INITIAL_SIZE 502 59 59 60 #define MAX_HISTORY_INITIAL_SIZE 8192 61 60 62 /* The number of slots to increase the_history by. */ 61 63 #define DEFAULT_HISTORY_GROW_SIZE 50 62 64 … … 277 279 const char *string; 278 280 { 279 281 HIST_ENTRY *temp; 282 int new_length; 280 283 281 284 if (history_stifled && (history_length == history_max_entries)) 282 285 { … … 293 296 294 297 /* Copy the rest of the entries, moving down one slot. Copy includes 295 298 trailing NULL. */ 296 #if 0297 for (i = 0; i < history_length; i++)298 the_history[i] = the_history[i + 1];299 #else300 299 memmove (the_history, the_history + 1, history_length * sizeof (HIST_ENTRY *)); 301 #endif302 300 301 new_length = history_length; 303 302 history_base++; 304 303 } 305 304 else … … 307 306 if (history_size == 0) 308 307 { 309 308 if (history_stifled && history_max_entries > 0) 310 history_size = history_max_entries + 2; 309 history_size = (history_max_entries > MAX_HISTORY_INITIAL_SIZE) 310 ? MAX_HISTORY_INITIAL_SIZE 311 : history_max_entries + 2; 311 312 else 312 313 history_size = DEFAULT_HISTORY_INITIAL_SIZE; 313 314 the_history = (HIST_ENTRY **)xmalloc (history_size * sizeof (HIST_ENTRY *)); 314 history_length = 1;315 new_length = 1; 315 316 } 316 317 else 317 318 { … … 321 322 the_history = (HIST_ENTRY **) 322 323 xrealloc (the_history, history_size * sizeof (HIST_ENTRY *)); 323 324 } 324 history_length++;325 new_length = history_length + 1; 325 326 } 326 327 } 327 328 328 329 temp = alloc_history_entry ((char *)string, hist_inittime ()); 329 330 330 the_history[history_length] = (HIST_ENTRY *)NULL; 331 the_history[history_length - 1] = temp; 331 the_history[new_length] = (HIST_ENTRY *)NULL; 332 the_history[new_length - 1] = temp; 333 history_length = new_length; 332 334 } 333 335 334 336 /* Change the time stamp of the most recent history entry to STRING. */ -
readline-7.0
diff -Naur readline-7.0.orig/input.c readline-7.0/input.c
old new 513 513 result = 0; 514 514 #if defined (HAVE_PSELECT) 515 515 sigemptyset (&empty_set); 516 sigprocmask (SIG_BLOCK, (sigset_t *)NULL, &empty_set); 516 517 FD_ZERO (&readfds); 517 518 FD_SET (fileno (stream), &readfds); 518 519 result = pselect (fileno (stream) + 1, &readfds, NULL, NULL, NULL, &empty_set); -
readline-7.0
diff -Naur readline-7.0.orig/patchlevel readline-7.0/patchlevel
old new 1 1 # Do not edit -- exists only for use by patch 2 2 3 0 3 3
Note:
See TracBrowser
for help on using the repository browser.