comparison src/message.c @ 330:f76b0d38b6bd

updated for version 7.0086
author vimboss
date Thu, 16 Jun 2005 21:51:00 +0000
parents 0ad8528b8c05
children 64221fecdfa1
comparison
equal deleted inserted replaced
329:2a66ac008759 330:f76b0d38b6bd
655 char_u *s, *a1; 655 char_u *s, *a1;
656 { 656 {
657 return emsg3(s, a1, NULL); 657 return emsg3(s, a1, NULL);
658 } 658 }
659 659
660 /* 660 /* emsg3() and emsgn() are in misc2.c to avoid warnings for the prototypes. */
661 * Print an error message with one or two "%s" and one or two string arguments.
662 */
663 int
664 emsg3(s, a1, a2)
665 char_u *s, *a1, *a2;
666 {
667 if ((emsg_off > 0 && vim_strchr(p_debug, 'm') == NULL)
668 #ifdef FEAT_EVAL
669 || emsg_skip > 0
670 #endif
671 )
672 return TRUE; /* no error messages at the moment */
673 vim_snprintf((char *)IObuff, IOSIZE, (char *)s, (char *)a1, (char *)a2);
674 return emsg(IObuff);
675 }
676
677 /*
678 * Print an error message with one "%ld" and one long int argument.
679 */
680 int
681 emsgn(s, n)
682 char_u *s;
683 long n;
684 {
685 if ((emsg_off > 0 && vim_strchr(p_debug, 'm') == NULL)
686 #ifdef FEAT_EVAL
687 || emsg_skip > 0
688 #endif
689 )
690 return TRUE; /* no error messages at the moment */
691 vim_snprintf((char *)IObuff, IOSIZE, (char *)s, n);
692 return emsg(IObuff);
693 }
694 661
695 void 662 void
696 emsg_invreg(name) 663 emsg_invreg(name)
697 int name; 664 int name;
698 { 665 {
3963 } 3930 }
3964 } 3931 }
3965 3932
3966 /* zero padding as requested by the precision or by the minimal 3933 /* zero padding as requested by the precision or by the minimal
3967 * field width for numeric conversions required? */ 3934 * field width for numeric conversions required? */
3968 if (number_of_zeros_to_pad <= 0) 3935 if (number_of_zeros_to_pad == 0)
3969 { 3936 {
3970 /* will not copy first part of numeric right now, * 3937 /* will not copy first part of numeric right now, *
3971 * force it to be copied later in its entirety */ 3938 * force it to be copied later in its entirety */
3972 zero_padding_insertion_ind = 0; 3939 zero_padding_insertion_ind = 0;
3973 } 3940 }