Changeset 706597e in git
- Timestamp:
- Mar 18, 2014, 7:04:09 PM (10 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 78d77686cc4b5fc9f6f797bc4ca23dc1ca4c751cb4ccb21068b8fec038ce45006522ec978dbf8324
- Parents:
- 789a7e93154cff0756258fc1aea3331cb78f20a8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/feread.cc
r789a7e r706597e 51 51 * start at the top of the list. 52 52 */ 53 #include <Singular/ipid.h> 53 54 extern "C" 54 55 char *command_generator (char *text, int state) 55 56 { 56 57 static int list_index, len; 57 char *name; 58 static idhdl h; 59 const char *name; 58 60 59 61 /* If this is a new word to complete, initialize now. This includes … … 64 66 list_index = 1; 65 67 len = strlen (text); 68 h=basePack->idroot; 66 69 } 67 70 … … 74 77 return (strdup(name)); 75 78 } 76 79 if (len>1) 80 { 81 while (h!=NULL) 82 { 83 name=h->id; 84 h=h->next; 85 if (strncmp (name, text, len) == 0) 86 return (strdup(name)); 87 } 88 } 77 89 /* If no names matched, then return NULL. */ 78 90 return ((char *)NULL);
Note: See TracChangeset
for help on using the changeset viewer.