@@ -114,7 +114,7 @@ extern const REBYTE Str_Banner[];
114
114
***********************************************************************/
115
115
{
116
116
if (rargs -> options & RO_VERS ) {
117
- Debug_Fmt (( REBYTE * ) Str_Banner , REBOL_VER , REBOL_REV , REBOL_UPD , REBOL_SYS , REBOL_VAR );
117
+ Debug_Fmt (Str_Banner , REBOL_VER , REBOL_REV , REBOL_UPD , REBOL_SYS , REBOL_VAR );
118
118
OS_EXIT (0 );
119
119
}
120
120
}
@@ -179,7 +179,7 @@ extern const REBYTE Str_Banner[];
179
179
Free_Series (text );
180
180
}
181
181
182
- Set_Root_Series (ROOT_BOOT , boot , "boot block" ); // Do not let it get GC'd
182
+ Set_Root_Series (ROOT_BOOT , boot , cb_cast ( "boot block" ) ); // Do not let it get GC'd
183
183
184
184
Boot_Block = (BOOT_BLK * )VAL_BLK (BLK_HEAD (boot ));
185
185
@@ -200,9 +200,9 @@ extern const REBYTE Str_Banner[];
200
200
}
201
201
}
202
202
203
- ASSERT (!CMP_BYTES ("end!" , Get_Sym_Name (SYM_END_TYPE )), RP_BAD_END_CANON_WORD );
204
- ASSERT (!CMP_BYTES ("true" , Get_Sym_Name (SYM_TRUE )), RP_BAD_TRUE_CANON_WORD );
205
- ASSERT (!CMP_BYTES ("line" , BOOT_STR (RS_SCAN ,1 )), RP_BAD_BOOT_STRING );
203
+ ASSERT (!CMP_BYTES (cb_cast ( "end!" ) , Get_Sym_Name (SYM_END_TYPE )), RP_BAD_END_CANON_WORD );
204
+ ASSERT (!CMP_BYTES (cb_cast ( "true" ) , Get_Sym_Name (SYM_TRUE )), RP_BAD_TRUE_CANON_WORD );
205
+ ASSERT (!CMP_BYTES (cb_cast ( "line" ) , BOOT_STR (RS_SCAN ,1 )), RP_BAD_BOOT_STRING );
206
206
}
207
207
208
208
@@ -463,7 +463,7 @@ extern const REBYTE Str_Banner[];
463
463
***********************************************************************/
464
464
{
465
465
DS_Series = Make_Block (size );
466
- Set_Root_Series (TASK_STACK , DS_Series , "data stack" ); // uses special GC
466
+ Set_Root_Series (TASK_STACK , DS_Series , cb_cast ( "data stack" ) ); // uses special GC
467
467
DS_Base = BLK_HEAD (DS_Series );
468
468
DSP = DSF = 0 ;
469
469
SET_NONE (DS_TOP ); // avoids it being set to END (GC problem)
@@ -509,7 +509,7 @@ extern const REBYTE Str_Banner[];
509
509
510
510
/***********************************************************************
511
511
**
512
- */ void Set_Root_Series (REBVAL * value , REBSER * ser , REBYTE * label )
512
+ */ void Set_Root_Series (REBVAL * value , REBSER * ser , const REBYTE * label )
513
513
/*
514
514
** Used to set block and string values in the ROOT context.
515
515
**
@@ -699,14 +699,14 @@ extern const REBYTE Str_Banner[];
699
699
700
700
/***********************************************************************
701
701
**
702
- */ void Register_Codec (REBYTE * name , codo dispatcher )
702
+ */ void Register_Codec (const char * name , codo dispatcher )
703
703
/*
704
704
** Internal function for adding a codec.
705
705
**
706
706
***********************************************************************/
707
707
{
708
708
REBVAL * value = Get_System (SYS_CODECS , 0 );
709
- REBCNT sym = Make_Word (name , 0 );
709
+ REBCNT sym = Make_Word (cb_cast ( name ) , 0 );
710
710
711
711
value = Append_Frame (VAL_OBJ_FRAME (value ), 0 , sym );
712
712
SET_HANDLE (value , dispatcher );
@@ -719,8 +719,8 @@ extern const REBYTE Str_Banner[];
719
719
/*
720
720
***********************************************************************/
721
721
{
722
- Register_Codec (( REBYTE * ) "text" , Codec_Text );
723
- Register_Codec (( REBYTE * ) "markup" , Codec_Markup );
722
+ Register_Codec ("text" , Codec_Text );
723
+ Register_Codec ("markup" , Codec_Markup );
724
724
#ifdef USE_BMP_CODEC
725
725
Init_BMP_Codec ();
726
726
#endif
0 commit comments