comparison src/buffer.h @ 2333:ba4677f54a05

[xemacs-hg @ 2004-10-14 17:26:18 by james] More unused parameter fixes.
author james
date Thu, 14 Oct 2004 17:26:25 +0000
parents a8d8f419b459
children ecf1ebac70d8
comparison
equal deleted inserted replaced
2332:29a88fa7050c 2333:ba4677f54a05
509 VALIDATE_BYTEBPOS_BACKWARD (buf, x); \ 509 VALIDATE_BYTEBPOS_BACKWARD (buf, x); \
510 } while (0) 510 } while (0)
511 511
512 DECLARE_INLINE_HEADER ( 512 DECLARE_INLINE_HEADER (
513 Bytebpos 513 Bytebpos
514 prev_bytebpos (struct buffer *buf, Bytebpos x) 514 prev_bytebpos (struct buffer *USED_IF_MULE_OR_CHECK_TEXT (buf), Bytebpos x)
515 ) 515 )
516 { 516 {
517 DEC_BYTEBPOS (buf, x); 517 DEC_BYTEBPOS (buf, x);
518 return x; 518 return x;
519 } 519 }
520 520
521 DECLARE_INLINE_HEADER ( 521 DECLARE_INLINE_HEADER (
522 Bytebpos 522 Bytebpos
523 next_bytebpos (struct buffer *buf, Bytebpos x) 523 next_bytebpos (struct buffer *USED_IF_MULE_OR_CHECK_TEXT (buf), Bytebpos x)
524 ) 524 )
525 { 525 {
526 INC_BYTEBPOS (buf, x); 526 INC_BYTEBPOS (buf, x);
527 return x; 527 return x;
528 } 528 }
608 608
609 /* Given a Charbpos, return the equivalent Bytebpos. */ 609 /* Given a Charbpos, return the equivalent Bytebpos. */
610 610
611 DECLARE_INLINE_HEADER ( 611 DECLARE_INLINE_HEADER (
612 Bytebpos 612 Bytebpos
613 charbpos_to_bytebpos (struct buffer *buf, Charbpos x) 613 charbpos_to_bytebpos (struct buffer *USED_IF_MULE_OR_CHECK_TEXT (buf),
614 Charbpos x)
614 ) 615 )
615 { 616 {
616 Bytebpos retval; 617 Bytebpos retval;
617 ASSERT_VALID_CHARBPOS_UNSAFE (buf, x); 618 ASSERT_VALID_CHARBPOS_UNSAFE (buf, x);
618 #ifdef MULE 619 #ifdef MULE
638 639
639 /* Given a Bytebpos, return the equivalent Charbpos. */ 640 /* Given a Bytebpos, return the equivalent Charbpos. */
640 641
641 DECLARE_INLINE_HEADER ( 642 DECLARE_INLINE_HEADER (
642 Charbpos 643 Charbpos
643 bytebpos_to_charbpos (struct buffer *buf, Bytebpos x) 644 bytebpos_to_charbpos (struct buffer *USED_IF_MULE_OR_CHECK_TEXT (buf),
645 Bytebpos x)
644 ) 646 )
645 { 647 {
646 Charbpos retval; 648 Charbpos retval;
647 ASSERT_VALID_BYTEBPOS_UNSAFE (buf, x); 649 ASSERT_VALID_BYTEBPOS_UNSAFE (buf, x);
648 #ifdef MULE 650 #ifdef MULE