Skip to content

Commit eede07c

Browse files
committed
Make string argument to vqt_real_extent const
1 parent e83718d commit eede07c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

mt_gemx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ short vqt_name_and_id (VdiHdl, short font_format,
10621062
char *font_name, char *ret_name);
10631063
void vqt_pairkern (VdiHdl, short ch1, short ch2, long *x, long *y);
10641064

1065-
void vqt_real_extent (VdiHdl, short x, short y, char *string, short extent[]);
1065+
void vqt_real_extent (VdiHdl, short x, short y, const char *string, short extent[]);
10661066
void vqt_real_extent16n (VdiHdl, short x, short y, const WCHAR *wstring, short num, short extent[]);
10671067
void vqt_trackkern (VdiHdl, long *x, long *y);
10681068
short vqt_xfntinfo (VdiHdl, short flags, short id,
@@ -1134,7 +1134,7 @@ short udef_vqt_name_and_id (VdiHdl, short font_format,
11341134
/** UDEF version of vqt_pairkern(). See \ref overviewUDEF for details about UDEF feature */
11351135
#define udef_vqt_pairkern vqt_pairkern
11361136
/** @ingroup force_udef */
1137-
void udef_vqt_real_extent (VdiHdl, short x, short y, char *string, short extent[]);
1137+
void udef_vqt_real_extent (VdiHdl, short x, short y, const char *string, short extent[]);
11381138
/** UDEF version of vqt_real_extent16n(). See \ref overviewUDEF for details about UDEF feature */
11391139
#define udef_vqt_real_extent16n vqt_real_extent16n
11401140
/** UDEF version of vqt_trackkern(). See \ref overviewUDEF for details about UDEF feature */

n_vqt_real_extent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121

2222
void
23-
vqt_real_extent (short handle, short x, short y, char *string, short extent[])
23+
vqt_real_extent (short handle, short x, short y, const char *string, short extent[])
2424
{
2525
short vdi_control[VDI_CNTRLMAX];
2626
short vdi_intin[VDI_INTINMAX];

u_vqt_real_extent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
void
10-
udef_vqt_real_extent (short handle, short x, short y, char *string, short extent[])
10+
udef_vqt_real_extent (short handle, short x, short y, const char *string, short extent[])
1111
{
1212
short n = vdi_str2array_n (string, _VDIParBlk.vdi_intin, VDI_INTINMAX);
1313

0 commit comments

Comments
 (0)