Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
790f39e7
Commit
790f39e7
authored
Jun 25, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(BUF_PTR_CHAR_POS): New macro.
parent
dcdc526c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/buffer.h
src/buffer.h
+7
-0
No files found.
src/buffer.h
View file @
790f39e7
...
...
@@ -130,6 +130,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
((ptr) - (current_buffer)->text.beg \
- (ptr - (current_buffer)->text.beg < (unsigned) GPT ? 0 : GAP_SIZE) \
+ 1)
/* Convert the address of a char in the buffer into a character position. */
#define BUF_PTR_CHAR_POS(buf, ptr) \
((ptr) - (buf)->text.beg \
- (ptr - (buf)->text.beg < (unsigned) BUF_GPT ((buf)) \
? 0 : BUF_GAP_SIZE ((buf))) \
+ 1)
struct
buffer_text
{
...
...
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