Skip to content

Commit

Permalink
add /usr/lib/chuck/ to import system search paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Nov 25, 2024
1 parent b800b05 commit 96be62a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
9 changes: 9 additions & 0 deletions VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
ChucK VERSIONS log
------------------


1.5.4.3
=======
(added) '/usr/lib/chuck' to @import system search paths on Linux and MacOS.
.chug files in system paths will auto-load on start up (.ck files will
not auto-load and needs to be @imported in order to be used); also
@import will now include this directory when resolving fileanems.


1.5.4.2 (November 2024)
=======
new ChuGL v0.2.4 (see ChuGL release notes below)
Expand Down
4 changes: 2 additions & 2 deletions src/core/chuck_dl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ using namespace std;
// (=v ChuMP =v ChucK Manager of Packages)
//-----------------------------------------------------------------------------
#if defined(__PLATFORM_APPLE__)
char g_default_path_system[] = "/usr/local/lib/chuck:/Library/Application Support/ChucK/chugins";
char g_default_path_system[] = "/usr/lib/chuck:/usr/local/lib/chuck:/Library/Application Support/ChucK/chugins";
char g_default_path_packages[] = "~/.chuck/packages";
char g_default_path_user[] = "~/Library/Application Support/ChucK/chugins:~/.chuck/lib";
#elif defined(__PLATFORM_WINDOWS__)
char g_default_path_system[] = "C:\\Windows\\system32\\ChucK;C:\\Program Files\\ChucK\\chugins;C:\\Program Files (x86)\\ChucK\\chugins";
char g_default_path_packages[] = "C:\\Users\\%USERNAME%\\Documents\\ChucK\\packages";
char g_default_path_user[] = "C:\\Users\\%USERNAME%\\Documents\\ChucK\\chugins";
#else // Linux / Cygwin
char g_default_path_system[] = "/usr/local/lib/chuck";
char g_default_path_system[] = "/usr/lib/chuck:/usr/local/lib/chuck";
char g_default_path_packages[] = "~/.chuck/packages";
char g_default_path_user[] = "~/.chuck/lib";
#endif
Expand Down
12 changes: 5 additions & 7 deletions src/core/util_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1354,11 +1354,13 @@ void tokenize( const std::string & str, std::vector<string> & tokens, const std:
}


// static instantiation
t_CKBOOL TC::isEnabled = TRUE;
t_CKBOOL TC::globalBypass = TRUE;


//-----------------------------------------------------------------------------
// TC static instantiation
//-----------------------------------------------------------------------------
t_CKBOOL TC::isEnabled = TRUE;
t_CKBOOL TC::globalBypass = TRUE;
//-----------------------------------------------------------------------------
// on/off switches
//-----------------------------------------------------------------------------
Expand All @@ -1379,7 +1381,6 @@ void TC::globalDisableOverride( t_CKBOOL setTrueToEngage )
globalBypass = setTrueToEngage;
}


//-----------------------------------------------------------------------------
// get bold escape sequence
//-----------------------------------------------------------------------------
Expand All @@ -1389,7 +1390,6 @@ std::string TC::bold( const std::string & text )
return TC::bold() + text + TC::reset();
}


//-----------------------------------------------------------------------------
// get color escape sequences
//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -1454,10 +1454,8 @@ std::string TC::set_blue( t_CKBOOL bold )
return std::string( "\033[38;5;39m" ) + (bold?TC::bold():"");
}


//-----------------------------------------------------------------------------
// set*() methods -- returns escape sequences o insert into output

//-----------------------------------------------------------------------------
// set a terminal code
std::string TC::set( TerminalCode code )
Expand Down

0 comments on commit 96be62a

Please sign in to comment.