1515static void I8 (eoshift_scalar )(char * rb , /* result base */
1616 char * ab , /* array base */
1717 __INT_T shift_amt , /* shift amount */
18- char * bb , /* boundary base */
18+ const char * bb , /* boundary base */
1919 __INT_T shift_dim , /* shift dimension */
2020 F90_Desc * rs , /* result descriptor */
2121 F90_Desc * as , /* array descriptor */
@@ -237,7 +237,7 @@ static void I8(eoshift_scalar)(char *rb, /* result base */
237237static void I8 (eoshift_loop )(char * rb , /* result base */
238238 char * ab , /* array base */
239239 __INT_T * sb , /* shift base */
240- char * bb , /* boundary base */
240+ const char * bb , /* boundary base */
241241 __INT_T shift_dim , /* dimension to shift */
242242 F90_Desc * rs , /* result descriptor */
243243 F90_Desc * as , /* array descriptor */
@@ -342,7 +342,7 @@ void ENTFTN(EOSHIFTSZ, eoshiftsz)(char *rb, /* result base */
342342 F90_Desc * ss , /* shift descriptor */
343343 F90_Desc * ds ) /* dim descriptor */
344344{
345- char * bb ;
345+ const char * bb ;
346346 DECL_HDR_VARS (ac );
347347 DECL_HDR_VARS (rc );
348348 DECL_DIM_PTRS (asd );
@@ -351,8 +351,7 @@ void ENTFTN(EOSHIFTSZ, eoshiftsz)(char *rb, /* result base */
351351
352352 shift = * sb ;
353353 dim = * db ;
354- /* FIXME: bb is passed to many non-const parameters; just cast it for now. */
355- bb = (F90_KIND_G (rs ) == __STR ) ? (char * )" " : (char * )GET_DIST_ZED ;
354+ bb = (F90_KIND_G (rs ) == __STR ) ? " " : (const char * )GET_DIST_ZED ;
356355
357356#if defined(DEBUG )
358357 if (__fort_test & DEBUG_EOSH ) {
@@ -597,12 +596,11 @@ void ENTFTN(EOSHIFTZ, eoshiftz)(char *rb, /* result base */
597596 DECL_HDR_PTRS (bs );
598597 DECL_HDR_VARS (ac );
599598 DECL_HDR_VARS (rc );
600- char * bb ;
599+ const char * bb ;
601600 __INT_T dim ;
602601
603602 dim = * db ;
604- /* FIXME: bb is passed to many non-const parameters; just cast it for now. */
605- bb = (F90_KIND_G (rs ) == __STR ) ? (char * )" " : (char * )GET_DIST_ZED ;
603+ bb = (F90_KIND_G (rs ) == __STR ) ? " " : (const char * )GET_DIST_ZED ;
606604 bs = (F90_Desc * )& F90_KIND_G (rs );
607605
608606#if defined(DEBUG )
0 commit comments