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
4d2f1389
Commit
4d2f1389
authored
Sep 17, 1994
by
Richard M. Stallman
Browse files
(reset_buffer_local_variables, Fbuffer_local_variables)
(init_buffer_once): Use EMACS_INT.
parent
42607681
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/buffer.c
src/buffer.c
+6
-6
No files found.
src/buffer.c
View file @
4d2f1389
...
...
@@ -351,9 +351,9 @@ reset_buffer_local_variables (b)
for
(
offset
=
(
char
*
)
&
buffer_local_flags
.
name
-
(
char
*
)
&
buffer_local_flags
;
offset
<
sizeof
(
struct
buffer
);
offset
+=
sizeof
(
Lisp_Object
))
/* sizeof
int
== sizeof Lisp_Object */
if
(
*
(
int
*
)(
offset
+
(
char
*
)
&
buffer_local_flags
)
>
0
||
*
(
int
*
)(
offset
+
(
char
*
)
&
buffer_local_flags
)
==
-
2
)
offset
+=
sizeof
(
Lisp_Object
))
/* sizeof
EMACS_INT
== sizeof Lisp_Object */
if
(
*
(
EMACS_INT
*
)(
offset
+
(
char
*
)
&
buffer_local_flags
)
>
0
||
*
(
EMACS_INT
*
)(
offset
+
(
char
*
)
&
buffer_local_flags
)
==
-
2
)
*
(
Lisp_Object
*
)(
offset
+
(
char
*
)
b
)
=
*
(
Lisp_Object
*
)(
offset
+
(
char
*
)
&
buffer_defaults
);
}
...
...
@@ -479,9 +479,9 @@ No argument or nil as argument means use current buffer as BUFFER.")
for
(
offset
=
(
char
*
)
&
buffer_local_symbols
.
name
-
(
char
*
)
&
buffer_local_symbols
;
offset
<
sizeof
(
struct
buffer
);
offset
+=
(
sizeof
(
int
)))
/* sizeof
int
== sizeof Lisp_Object */
offset
+=
(
sizeof
(
EMACS_INT
)))
/* sizeof
EMACS_INT
== sizeof Lisp_Object */
{
mask
=
*
(
int
*
)(
offset
+
(
char
*
)
&
buffer_local_flags
);
mask
=
*
(
EMACS_INT
*
)(
offset
+
(
char
*
)
&
buffer_local_flags
);
if
(
mask
==
-
1
||
(
buf
->
local_var_flags
&
mask
))
if
(
XTYPE
(
*
(
Lisp_Object
*
)(
offset
+
(
char
*
)
&
buffer_local_symbols
))
==
Lisp_Symbol
)
...
...
@@ -2372,7 +2372,7 @@ init_buffer_once ()
The local flag bits are in the local_var_flags slot of the buffer. */
/* Nothing can work if this isn't true */
if
(
sizeof
(
int
)
!=
sizeof
(
Lisp_Object
))
abort
();
if
(
sizeof
(
EMACS_INT
)
!=
sizeof
(
Lisp_Object
))
abort
();
/* 0 means not a lisp var, -1 means always local, else mask */
bzero
(
&
buffer_local_flags
,
sizeof
buffer_local_flags
);
...
...
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