comparison src/dired.c @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 697ef44129c6
children
comparison
equal deleted inserted replaced
423:28d9c139be4c 424:11054d720c21
556 { 556 {
557 return user_name_completion (user, 1, NULL); 557 return user_name_completion (user, 1, NULL);
558 } 558 }
559 559
560 struct user_cache { 560 struct user_cache {
561 char **data; 561 Bufbyte **data;
562 int length; 562 int length;
563 int size; 563 int size;
564 EMACS_TIME last_rebuild_time; 564 EMACS_TIME last_rebuild_time;
565 }; 565 };
566 static struct user_cache user_cache; 566 static struct user_cache user_cache;
632 while ((pwd = getpwent ())) 632 while ((pwd = getpwent ()))
633 { 633 {
634 Bufbyte *pwuser; 634 Bufbyte *pwuser;
635 QUIT; 635 QUIT;
636 DO_REALLOC (user_cache.data, user_cache.size, 636 DO_REALLOC (user_cache.data, user_cache.size,
637 user_cache.length + 1, char *); 637 user_cache.length + 1, Bufbyte *);
638 GET_C_CHARPTR_INT_DATA_ALLOCA (pwd->pw_name, FORMAT_OS, pwuser); 638 GET_C_CHARPTR_INT_DATA_ALLOCA (pwd->pw_name, FORMAT_OS, pwuser);
639 user_cache.data[user_cache.length++] = xstrdup (pwuser); 639 user_cache.data[user_cache.length++] =
640 (Bufbyte *) xstrdup ((char *) pwuser);
640 } 641 }
641 endpwent (); 642 endpwent ();
642 speed_up_interrupts (); 643 speed_up_interrupts ();
643 XCAR (locative) = Qnil; 644 XCAR (locative) = Qnil;
644 unbind_to (speccount, Qnil); /* free locative cons */ 645 unbind_to (speccount, Qnil); /* free locative cons */