Skip to content

Commit

Permalink
uptex-{euc,sjis}: ptenc_conv_first_line() (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tk committed Dec 16, 2022
1 parent 028bb2b commit dac2165
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/texk/ptexenc/ptexenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ void clear_infile_enc(FILE *fp)
{
infile_enc[fileno(fp)] = ENC_UNKNOWN;
}
long ptencconvfirstline(long pos, long last, unsigned char *buff, const long buffsize)
long ptenc_conv_first_line(long pos, long last, unsigned char *buff, const long buffsize)
{
return last;
}
Expand Down Expand Up @@ -1365,7 +1365,7 @@ int ptenc_get_command_line_args(int *p_ac, char ***p_av)
return 0;
}

long ptencconvfirstline(long pos, long last, unsigned char *buff, const long buffsize)
long ptenc_conv_first_line(long pos, long last, unsigned char *buff, const long buffsize)
/* return new last */
{
unsigned char *old, *new_buf; long new_last, i;
Expand Down
2 changes: 1 addition & 1 deletion source/texk/ptexenc/ptexenc/ptexenc.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ extern PTENCDLL unsigned char *ptenc_from_utf8_string_to_internal_enc(const unsi
extern PTENCDLL unsigned char *ptenc_from_internal_enc_string_to_utf8(const unsigned char *is);
extern PTENCDLL int ptenc_get_command_line_args(int *p_ac, char ***p_av);
#endif
extern PTENCDLL long ptencconvfirstline(long pos, long limit, unsigned char *buff, const long buffsize);
extern PTENCDLL long ptenc_conv_first_line(long pos, long limit, unsigned char *buff, const long buffsize);

#endif /* PTEXENC_PTEXENC_H */
1 change: 1 addition & 0 deletions source/texk/web2c/ptexdir/kanji.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ extern void init_default_kanji (const_string file_str, const_string internal_str
#else
#define inputline2(fp,buff,pos,size) input_line2(fp,buff,NULL,pos,size,NULL)
#endif
#define ptencconvfirstline(pos,limit,buff,size) ptenc_conv_first_line(pos,limit,buff,size)

extern void dump_kanji (gzFile fp);
extern void undump_kanji (gzFile fp);
Expand Down
1 change: 1 addition & 0 deletions source/texk/web2c/uptexdir/kanji.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ extern void init_default_kanji_select (void);
#else
#define inputline2(fp,buff,pos,size) input_line2(fp,buff,NULL,pos,size,NULL)
#endif
#define ptencconvfirstline(pos,limit,buff,size) ptenc_conv_first_line(pos,limit,buff,size)

extern void init_kanji (const_string file_str, const_string internal_str);
extern void dump_kanji (gzFile fp);
Expand Down

0 comments on commit dac2165

Please sign in to comment.