[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] documentation issues for 3.2



Found it. You can also have it in the same location as the sc executable.

Also, not supported for Windows yet.
hjh

bool SC_LanguageClient::readDefaultLibraryConfig()
{
#ifndef SC_WIN32
const char* paths[3] = { ".sclang.cfg", "~/.sclang.cfg", "/etc/sclang.cfg" };

char ipath[PATH_MAX];
char opath[PATH_MAX];

for (int i=0; i < 3; i++) {
snprintf(ipath, PATH_MAX, paths[i]);
if (sc_StandardizePath(ipath, opath)) {
bool success = readLibraryConfig(opath, ipath);
if (success) return true;
}
}

return false;
#else
// $$$todo rewrite for win32 (home folder ?)
  assert(0);
  return false;
#endif
}


On Feb 9, 2008, at 3:33 PM, nescivi wrote:

Hiho,

On Feb 9, 2008 3:25 PM, James Harkins <jamshark70@xxxxxxxxx> wrote:

I suppose it's valid for Mac too... same locations?

What about Windows? I tried it once and it had no effect. Maybe I put it in
the wrong place?


I'd have to check that in the source code, of where sclang reads the file.

sincerely,
Marije


: H. James Harkins

: jamshark70@xxxxxxxxxxxxxxxxx

: http://www.dewdrop-world.net

.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman