Imported from ../bash-3.0.tar.gz.
This commit is contained in:
parent
7117c2d221
commit
b80f6443b6
400 changed files with 69247 additions and 13346 deletions
|
|
@ -32,6 +32,8 @@
|
|||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "bashintl.h"
|
||||
|
||||
#include "shell.h"
|
||||
#include "pcomplete.h"
|
||||
|
||||
|
|
@ -174,18 +176,19 @@ progcomp_insert (cmd, cs)
|
|||
register BUCKET_CONTENTS *item;
|
||||
|
||||
if (cs == NULL)
|
||||
programming_error ("progcomp_insert: %s: NULL COMPSPEC", cmd);
|
||||
programming_error (_("progcomp_insert: %s: NULL COMPSPEC"), cmd);
|
||||
|
||||
if (prog_completes == 0)
|
||||
progcomp_create ();
|
||||
|
||||
cs->refcount++;
|
||||
item = hash_insert (cmd, prog_completes, 0);
|
||||
if (item->data)
|
||||
free_progcomp (item->data);
|
||||
else
|
||||
item->key = savestring (cmd);
|
||||
item->data = cs;
|
||||
cs->refcount++;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue