summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b8a7e70)
raw | patch | inline | side by side (parent: b8a7e70)
author | pjrm <pjrm@users.sourceforge.net> | |
Sun, 16 Sep 2007 14:28:24 +0000 (14:28 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Sun, 16 Sep 2007 14:28:24 +0000 (14:28 +0000) |
src/extension/implementation/script.cpp | patch | blob | history |
index 7a6b5ce5afac63c7ff0c87cb68d302cab4733a42..abc095b6bff2c32d8a2aaa5e07983ea04258b314 100644 (file)
//Interpreter lookup table
struct interpreter_t {
- gchar * identity;
- gchar * prefstring;
- gchar * defaultval;
+ gchar const *identity;
+ gchar const *prefstring;
+ gchar const *defaultval;
};
given script. It also tracks the preference to use to overwrite
the given interpreter to a custom one per user.
*/
-static interpreter_t interpreterTab[] = {
+static interpreter_t const interpreterTab[] = {
{"perl", "perl-interpreter", "perl" },
{"python", "python-interpreter", "python" },
{"ruby", "ruby-interpreter", "ruby" },
Glib::ustring interpName = interpNameArg;
- interpreter_t *interp;
+ interpreter_t const *interp;
bool foundInterp = false;
for (interp = interpreterTab ; interp->identity ; interp++ ){
if (interpName == interp->identity) {
interpName = interp->defaultval;
// 1. Check preferences
- gchar *prefInterp = (gchar *)prefs_get_string_attribute(
- "extensions", interp->prefstring);
+ gchar const *prefInterp = prefs_get_string_attribute("extensions", interp->prefstring);
if (prefInterp) {
interpName = prefInterp;