diff options
| author | Ken Raeburn | 2002-07-15 00:01:34 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-15 00:01:34 +0000 |
| commit | d5db40779d7505244d37476b4f046641f07eea2b (patch) | |
| tree | 5c8bf4dad41639287e722cb7cbdc0709e47a9e53 /src/bytecode.c | |
| parent | 491c2516d32fa8b9ba9422ec142c8925dd82af00 (diff) | |
| download | emacs-d5db40779d7505244d37476b4f046641f07eea2b.tar.gz emacs-d5db40779d7505244d37476b4f046641f07eea2b.zip | |
Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
Diffstat (limited to 'src/bytecode.c')
| -rw-r--r-- | src/bytecode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bytecode.c b/src/bytecode.c index 7f58b4d17ab..bcb80596944 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -327,10 +327,10 @@ unmark_byte_stack () | |||
| 327 | XUNMARK (stack->byte_string); | 327 | XUNMARK (stack->byte_string); |
| 328 | XUNMARK (stack->constants); | 328 | XUNMARK (stack->constants); |
| 329 | 329 | ||
| 330 | if (stack->byte_string_start != XSTRING (stack->byte_string)->data) | 330 | if (stack->byte_string_start != SDATA (stack->byte_string)) |
| 331 | { | 331 | { |
| 332 | int offset = stack->pc - stack->byte_string_start; | 332 | int offset = stack->pc - stack->byte_string_start; |
| 333 | stack->byte_string_start = XSTRING (stack->byte_string)->data; | 333 | stack->byte_string_start = SDATA (stack->byte_string); |
| 334 | stack->pc = stack->byte_string_start + offset; | 334 | stack->pc = stack->byte_string_start + offset; |
| 335 | } | 335 | } |
| 336 | } | 336 | } |
| @@ -460,11 +460,11 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 460 | convert them back to the originally intended unibyte form. */ | 460 | convert them back to the originally intended unibyte form. */ |
| 461 | bytestr = Fstring_as_unibyte (bytestr); | 461 | bytestr = Fstring_as_unibyte (bytestr); |
| 462 | 462 | ||
| 463 | bytestr_length = STRING_BYTES (XSTRING (bytestr)); | 463 | bytestr_length = SBYTES (bytestr); |
| 464 | vectorp = XVECTOR (vector)->contents; | 464 | vectorp = XVECTOR (vector)->contents; |
| 465 | 465 | ||
| 466 | stack.byte_string = bytestr; | 466 | stack.byte_string = bytestr; |
| 467 | stack.pc = stack.byte_string_start = XSTRING (bytestr)->data; | 467 | stack.pc = stack.byte_string_start = SDATA (bytestr); |
| 468 | stack.constants = vector; | 468 | stack.constants = vector; |
| 469 | stack.bottom = (Lisp_Object *) alloca (XFASTINT (maxdepth) | 469 | stack.bottom = (Lisp_Object *) alloca (XFASTINT (maxdepth) |
| 470 | * sizeof (Lisp_Object)); | 470 | * sizeof (Lisp_Object)); |
| @@ -896,7 +896,7 @@ If the third argument is incorrect, Emacs may crash. */) | |||
| 896 | case Btemp_output_buffer_setup: | 896 | case Btemp_output_buffer_setup: |
| 897 | BEFORE_POTENTIAL_GC (); | 897 | BEFORE_POTENTIAL_GC (); |
| 898 | CHECK_STRING (TOP); | 898 | CHECK_STRING (TOP); |
| 899 | temp_output_buffer_setup (XSTRING (TOP)->data); | 899 | temp_output_buffer_setup (SDATA (TOP)); |
| 900 | AFTER_POTENTIAL_GC (); | 900 | AFTER_POTENTIAL_GC (); |
| 901 | TOP = Vstandard_output; | 901 | TOP = Vstandard_output; |
| 902 | break; | 902 | break; |