Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7e47afad
Commit
7e47afad
authored
Mar 15, 2011
by
Paul Eggert
Browse files
* character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
parent
5671df8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
src/ChangeLog
src/ChangeLog
+2
-0
src/character.h
src/character.h
+7
-7
No files found.
src/ChangeLog
View file @
7e47afad
2011-03-15 Paul Eggert <eggert@cs.ucla.edu>
* character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
* indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
All uses changed.
(MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
src/character.h
View file @
7e47afad
...
...
@@ -451,8 +451,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define INC_POS(pos_byte) \
do { \
unsigned char *p = BYTE_POS_ADDR (pos_byte); \
pos_byte += BYTES_BY_CHAR_HEAD (*p); \
unsigned char *p
tr
= BYTE_POS_ADDR (pos_byte); \
pos_byte += BYTES_BY_CHAR_HEAD (*p
tr
); \
} while (0)
...
...
@@ -461,16 +461,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define DEC_POS(pos_byte) \
do { \
unsigned char *p; \
unsigned char *p
tr
; \
\
pos_byte--; \
if (pos_byte < GPT_BYTE) \
p = BEG_ADDR + pos_byte - BEG_BYTE; \
p
tr
= BEG_ADDR + pos_byte - BEG_BYTE; \
else \
p = BEG_ADDR + GAP_SIZE + pos_byte - BEG_BYTE;\
while (!CHAR_HEAD_P (*p)) \
p
tr
= BEG_ADDR + GAP_SIZE + pos_byte - BEG_BYTE;
\
while (!CHAR_HEAD_P (*p
tr
)) \
{ \
p--; \
p
tr
--; \
pos_byte--; \
} \
} while (0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment