Skip to content

Commit

Permalink
minor code cosmetic / remove fd vs. code literal warning in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Oct 20, 2024
1 parent d3a31f4 commit 4883d98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/core/chuck_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ t_CKBOOL chuck_parse( Chuck_CompileTarget * target )
// check for conflict
if( fd && target->codeLiteral != "" )
{
CK_FPRINTF_STDERR( "[chuck](parser): (internal) code and FILE descriptor both present!\n" );
CK_FPRINTF_STDERR( "[chuck](parser): |- ignoring FILE descriptor...\n" );
// no warning... quietly let the code literal take precedence | 1.5.3.5 (ge)
// CK_FPRINTF_STDERR( "[chuck](parser): (internal) code and FILE descriptor both present!\n" );
// CK_FPRINTF_STDERR( "[chuck](parser): |- ignoring FILE descriptor...\n" );
}

// if actual code was passed in
Expand Down
1 change: 1 addition & 0 deletions src/core/chuck_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11429,6 +11429,7 @@ t_CKBOOL howMuch_criteria_match( te_HowMuch criteria, a_Func_Def func_def )
case te_do_all:
// categorically true
return TRUE;
break;
case te_do_import_only:
// check if 1) func def is public and 2) is an operator overload
if( func_def->func_decl == ae_key_public && func_def->op2overload != ae_op_none ) return TRUE;
Expand Down
2 changes: 1 addition & 1 deletion src/core/chuck_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ typedef enum { te_globalTypeNone,

//-----------------------------------------------------------------------------
// name: enum te_HowMuch
// desc: how much to scan/type check/emit
// desc: how much to scan/type-check/emit
//-----------------------------------------------------------------------------
typedef enum {
te_do_all = 0,
Expand Down

0 comments on commit 4883d98

Please sign in to comment.