~ubuntu-branches/ubuntu/maverick/vim/maverick

« back to all changes in this revision

Viewing changes to src/macros.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-05-04 11:13:42 UTC
  • mfrom: (1.1.8 upstream) (0.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090504111342-60miqybsixdpc345
Tags: 2:7.2.148-2ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/runtime/vimrc: "syntax on" is a sane default for non-tiny vim.
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Disable autoindent, line-wrapping, and backup files by default.
* Dropped changes, merged in Debian:
  - Add jaunty, karmic to the list of valid suites.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - Create a .pot file for translations.
* Drop gutsy from the list of valid distro series, it's been EOLed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
#ifdef FEAT_LANGMAP
128
128
/*
129
129
 * Adjust chars in a language according to 'langmap' option.
130
 
 * NOTE that there is NO overhead if 'langmap' is not set; but even
131
 
 * when set we only have to do 2 ifs and an array lookup.
 
130
 * NOTE that there is no noticeable overhead if 'langmap' is not set.
 
131
 * When set the overhead for characters < 256 is small.
132
132
 * Don't apply 'langmap' if the character comes from the Stuff buffer.
133
133
 * The do-while is just to ignore a ';' after the macro.
134
134
 */
135
 
# define LANGMAP_ADJUST(c, condition) do { \
136
 
        if (*p_langmap && (condition) && !KeyStuffed && (c) >= 0 && (c) < 256) \
137
 
            c = langmap_mapchar[c]; \
138
 
    } while (0)
 
135
# ifdef FEAT_MBYTE
 
136
#  define LANGMAP_ADJUST(c, condition) \
 
137
    do { \
 
138
        if (*p_langmap && (condition) && !KeyStuffed && (c) >= 0) \
 
139
        { \
 
140
            if ((c) < 256) \
 
141
                c = langmap_mapchar[c]; \
 
142
            else \
 
143
                c = langmap_adjust_mb(c); \
 
144
        } \
 
145
    } while (0)
 
146
# else
 
147
#  define LANGMAP_ADJUST(c, condition) \
 
148
    do { \
 
149
        if (*p_langmap && (condition) && !KeyStuffed && (c) >= 0 && (c) < 256) \
 
150
            c = langmap_mapchar[c]; \
 
151
    } while (0)
 
152
# endif
 
153
#else
 
154
# define LANGMAP_ADJUST(c, condition) /* nop */
139
155
#endif
140
156
 
141
157
/*