Changeset c1522ec


Ignore:
Timestamp:
Jan 12, 2008, 1:18:20 AM (13 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
f92080c
Parents:
62fdd29
Message:
Eliminating a warning by un-internalizing a new fmtext function.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    r16c6cca rc1522ec  
    3636}
    3737
    38 int _owl_fmtext_is_format_char(gunichar c) /*noproto*/
     38int owl_fmtext_is_format_char(gunichar c)
    3939{
    4040  if ((c & ~OWL_FMTEXT_UC_ATTR_MASK) == OWL_FMTEXT_UC_ATTR) return 1;
     
    295295  p = strchr(s, OWL_FMTEXT_UC_STARTBYTE_UTF8);
    296296  while(p) {
    297     if (_owl_fmtext_is_format_char(g_utf8_get_char(p))) {
     297    if (owl_fmtext_is_format_char(g_utf8_get_char(p))) {
    298298      /* Deal with all text from last insert to here. */
    299299      char tmp;
     
    337337      fg = f->default_fgcolor;
    338338      bg = f->default_bgcolor;
    339       while (p && _owl_fmtext_is_format_char(g_utf8_get_char(p))) {
     339      while (p && owl_fmtext_is_format_char(g_utf8_get_char(p))) {
    340340        _owl_fmtext_update_attributes(g_utf8_get_char(p), &attr, &fg, &bg);
    341341        p = g_utf8_next_char(p);
     
    439439    while(ptr_c < ptr_e) {
    440440      gunichar c = g_utf8_get_char(ptr_c);
    441       if (!_owl_fmtext_is_format_char(c)) {
     441      if (!owl_fmtext_is_format_char(c)) {
    442442        chwidth = mk_wcwidth(c);
    443443        if (col + chwidth > bcol) break;
  • util.c

    r7b1d048 rc1522ec  
    775775      /* If it's a format character, copy up to it, and skip all
    776776         immediately following format characters. */
    777       if (_owl_fmtext_is_format_char(g_utf8_get_char(p))) {
     777      if (owl_fmtext_is_format_char(g_utf8_get_char(p))) {
    778778        strncat(r, s, p-s);
    779779        p = g_utf8_next_char(p);
    780         while (p && _owl_fmtext_is_format_char(g_utf8_get_char(p))) {
     780        while (p && owl_fmtext_is_format_char(g_utf8_get_char(p))) {
    781781          p = g_utf8_next_char(p);
    782782        }
Note: See TracChangeset for help on using the changeset viewer.