summaryrefslogtreecommitdiff
path: root/src/hardcopy.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-05-16 15:31:32 +0000
committerBram Moolenaar <Bram@vim.org>2009-05-16 15:31:32 +0000
commitaf0167fa3917bcaf4e066a08977068b1964ac78d (patch)
tree8d99a0dc0e3b95b8a9404728841943f843142573 /src/hardcopy.c
parent8f0b2d46c7020c2ae097c748940f74b3af1383f7 (diff)
downloadvim-git-af0167fa3917bcaf4e066a08977068b1964ac78d.tar.gz
updated for version 7.2-177v7.2.177
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r--src/hardcopy.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c
index 7cc256ff3..0e7ee4ddd 100644
--- a/src/hardcopy.c
+++ b/src/hardcopy.c
@@ -442,12 +442,11 @@ prt_get_unit(idx)
/*
* Print the page header.
*/
-/*ARGSUSED*/
static void
prt_header(psettings, pagenum, lnum)
prt_settings_T *psettings;
int pagenum;
- linenr_T lnum;
+ linenr_T lnum UNUSED;
{
int width = psettings->chars_per_line;
int page_line;
@@ -1881,7 +1880,7 @@ prt_next_dsc(p_dsc_line)
return FALSE;
/* Find type of DSC comment */
- for (comment = 0; comment < NUM_ELEMENTS(prt_dsc_table); comment++)
+ for (comment = 0; comment < (int)NUM_ELEMENTS(prt_dsc_table); comment++)
if (prt_resfile_strncmp(0, prt_dsc_table[comment].string,
prt_dsc_table[comment].len) == 0)
break;
@@ -2454,12 +2453,11 @@ prt_match_charset(p_charset, p_cmap, pp_mbchar)
}
#endif
-/*ARGSUSED*/
int
mch_print_init(psettings, jobname, forceit)
prt_settings_T *psettings;
char_u *jobname;
- int forceit;
+ int forceit UNUSED;
{
int i;
char *paper_name;
@@ -2514,7 +2512,7 @@ mch_print_init(psettings, jobname, forceit)
if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE)))
{
p_mbenc_first = NULL;
- for (cmap = 0; cmap < NUM_ELEMENTS(prt_ps_mbfonts); cmap++)
+ for (cmap = 0; cmap < (int)NUM_ELEMENTS(prt_ps_mbfonts); cmap++)
if (prt_match_encoding((char *)p_encoding, &prt_ps_mbfonts[cmap],
&p_mbenc))
{
@@ -2642,7 +2640,7 @@ mch_print_init(psettings, jobname, forceit)
paper_name = "A4";
paper_strlen = 2;
}
- for (i = 0; i < PRT_MEDIASIZE_LEN; ++i)
+ for (i = 0; i < (int)PRT_MEDIASIZE_LEN; ++i)
if (STRLEN(prt_mediasize[i].name) == (unsigned)paper_strlen
&& STRNICMP(prt_mediasize[i].name, paper_name,
paper_strlen) == 0)
@@ -3308,10 +3306,9 @@ mch_print_end_page()
return !prt_file_error;
}
-/*ARGSUSED*/
int
mch_print_begin_page(str)
- char_u *str;
+ char_u *str UNUSED;
{
int page_num[2];
@@ -3379,11 +3376,10 @@ mch_print_start_line(margin, page_line)
#endif
}
-/*ARGSUSED*/
int
mch_print_text_out(p, len)
char_u *p;
- int len;
+ int len UNUSED;
{
int need_break;
char_u ch;