~ubuntu-branches/ubuntu/trusty/mcpp/trusty-proposed

« back to all changes in this revision

Viewing changes to src/support.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-18 12:01:34 UTC
  • Revision ID: james.westby@ubuntu.com-20070918120134-3h0phm901chc4lzp
Tags: 2.6.4-1ubuntu2
Fix truncation of symbols in -@old mode (Kiyoshi Matsui). LP: #139910.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1678
1678
                    , NULL, (long) c, NULL);
1679
1679
        case '\t':                          /* Horizontal space     */
1680
1680
        case ' ':
1681
 
            if (mcpp_mode == OLD_PREP) {
1682
 
                if ((*(tp - 1) != ' ' && *(tp - 1) != COM_SEP))
1683
 
                    *(tp - 1) = ' ';        /* Squeeze COM_SEP with spaces  */
 
1681
            if (mcpp_mode == OLD_PREP && (*(tp - 1) == COM_SEP)) {
 
1682
                *(tp - 1) = ' ';            /* Squeeze COM_SEP with spaces  */
1684
1683
            } else {
1685
1684
                if (*(tp - 1) != ' ')
1686
1685
                    *tp++ = ' ';            /* Squeeze white spaces */