Subversion Repositories HomeAutomation

Rev

Rev 1679 | Rev 1940 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1679 Rev 1914
Line 333... Line 333...
333
static char** AutoComplete(const char* text, int start, int end)
333
static char** AutoComplete(const char* text, int start, int end)
334
{
334
{
335
    unsigned int count = 0;
335
    unsigned int count = 0;
336
    boost::mutex guard_mutex;
336
    boost::mutex guard_mutex;
337
 
337
 
338
    for (unsigned int n = 0; n < start; n++)
338
    for (unsigned int n = 0; n < (unsigned int)start; n++)
339
    {
339
    {
340
        if (rl_line_buffer[n] == ' ')
340
        if (rl_line_buffer[n] == ' ')
341
        {
341
        {
342
            count++;
342
            count++;
343
        }
343
        }
Line 365... Line 365...
365
    if (!state) // First run
365
    if (!state) // First run
366
    {
366
    {
367
        index = 0;
367
        index = 0;
368
    }
368
    }
369
   
369
   
370
    while (autocomplete_list.size() > index)
370
    while (autocomplete_list.size() > (unsigned int) index)
371
    {
371
    {
372
        name = autocomplete_list[index];
372
        name = autocomplete_list[index];
373
       
373
       
374
        index++;
374
        index++;
375
       
375