Changeset d222c44 for text.c


Ignore:
Timestamp:
Jan 2, 2011, 3:35:15 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
719119de
Parents:
2bc6ad35
git-author:
David Benjamin <davidben@mit.edu> (12/14/10 23:53:38)
git-committer:
David Benjamin <davidben@mit.edu> (01/02/11 15:35:15)
Message:
Kill owl_getquoting and fix quoting bugs

That function is nonsense. Fix a number of quoting bugs relating to its
use (and lack thereof).

Also quote regex characters in CC narrows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • text.c

    r72ec874 rd222c44  
    262262  }
    263263  return(1);
    264 }
    265 
    266 const char *owl_getquoting(const char *line)
    267 {
    268   if (line[0]=='\0') return("'");
    269   if (strchr(line, '\'')) return("\"");
    270   if (strchr(line, '"')) return("'");
    271   if (strcspn(line, "\n\t ") != strlen(line)) return("'");
    272   return("");
    273264}
    274265
Note: See TracChangeset for help on using the changeset viewer.