Changeset 789a7e in git
- Timestamp:
- Mar 18, 2014, 10:47:28 AM (10 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 706597eca3628b2f2f0d581d93c41b9e6ac6f466863b034c410acb811c24ee04be54bc876e5af90f
- Parents:
- 412d157f1cb2da32046fa9199662ceeb12ea8dcc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/feread.cc
r412d157 r789a7e 181 181 #define x_rl_filename_completion_function rl_filename_completion_function 182 182 #endif 183 if ( x_rl_line_buffer[start-1]=='"')183 if ((start>0) && (x_rl_line_buffer[start-1]=='"')) 184 184 return x_rl_completion_matches (text, (RL_PROC)x_rl_filename_completion_function); 185 185 char **m=x_rl_completion_matches (text, (RL_PROC)command_generator); … … 208 208 line = readline (pr); 209 209 210 int i;211 for (i=strlen(line)-1;i>=0;i--) line[i]=line[i]&127;212 213 210 if (line==NULL) 214 211 return NULL; 215 212 213 int l=strlen(line); 214 for (int i=l-1;i>=0;i--) line[i]=line[i]&127; 215 216 216 if (*line!='\0') 217 217 { 218 218 add_history (line); 219 219 } 220 int l=strlen(line);221 220 if (l>=size-1) 222 221 { … … 273 272 return NULL; 274 273 275 int i;276 for (i =strlen(line)-1;i>=0;i--) line[i]=line[i]&127;274 int l=strlen(line); 275 for (int i=l-1;i>=0;i--) line[i]=line[i]&127; 277 276 278 277 if (*line!='\0') … … 280 279 (*fe_add_history) (line); 281 280 } 282 int l=strlen(line);283 281 if (l>=size-1) 284 282 { … … 308 306 mflush(); 309 307 char *line=fgets(s,size,stdin); 310 i nt i;311 for (i=strlen(line)-1;i>=0;i--) line[i]=line[i]&127;308 if (line!=NULL) 309 for (int i=strlen(line)-1;i>=0;i--) line[i]=line[i]&127; 312 310 return line; 313 311 }
Note: See TracChangeset
for help on using the changeset viewer.