Changeset 1137802


Ignore:
Timestamp:
Feb 23, 2011, 5:07:49 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
eb8d9c1
Parents:
60d7935
git-author:
David Benjamin <davidben@mit.edu> (02/20/11 17:05:36)
git-committer:
David Benjamin <davidben@mit.edu> (02/23/11 17:07:49)
Message:
Kill owl_fmtext_set_char

This function is a little disturbing and, thankfully, no longer used by
anyone.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    rddbbcffa r1137802  
    584584}
    585585
    586 /* set the charater at 'index' to be 'char'.  If index is out of
    587  * bounds don't do anything. If c or char at index is not ASCII, don't
    588  * do anything because it's not UTF-8 safe. */
    589 void owl_fmtext_set_char(owl_fmtext *f, int index, char ch)
    590 {
    591   if ((index < 0) || (index > f->buff->len - 1)) return;
    592   /* NOT ASCII*/
    593   if (f->buff->str[index] & 0x80 || ch & 0x80) return;
    594   f->buff->str[index] = ch;
    595 }
    596 
    597586/* Make a copy of the fmtext 'src' into 'dst' */
    598587void owl_fmtext_copy(owl_fmtext *dst, const owl_fmtext *src)
Note: See TracChangeset for help on using the changeset viewer.