Commit 2216f86d authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

fixup operator list, remove the param list since params have toplevel


Thu Feb 19 23:48:45 2009  Jiri (George) Lebl <jirka@5z.com>

	* src/genius_lists.c, src/inter.c, src/genius-readline-helper.c: fixup
	  operator list, remove the param list since params have toplevel
	  function nodes nowdays (for better part of a decade already :)



svn path=/trunk/; revision=729
parent 442674b0
Thu Feb 19 23:48:45 2009 Jiri (George) Lebl <jirka@5z.com>
* src/genius_lists.c, src/inter.c, src/genius-readline-helper.c: fixup
operator list, remove the param list since params have toplevel
function nodes nowdays (for better part of a decade already :)
Thu Feb 19 23:19:37 2009 Jiri (George) Lebl <jirka@5z.com>
* src/genius.c, src/gnome-genius.c: set prgname and application_name
......
......@@ -18,7 +18,6 @@ static GList *plugins;
static GList *functions;
static int addtoplevels = TRUE;
extern const char *genius_params[];
extern const char *genius_toplevels[];
extern const char *genius_operators[];
......@@ -52,12 +51,6 @@ command_generator (const char *text, int state)
return strdup(s);
}
while(genius_params[pi]) {
const char *s = genius_params[pi++];
if(strncmp(s,text,len)==0)
return strdup(s);
}
while(fli) {
char *fid = fli->data;
fli = g_list_next(fli);
......
......@@ -21,18 +21,6 @@
#define NULL ((void *)0)
const char *genius_params[] = {
"FloatPrecision",
"MaxDigits",
"ResultsAsFloats",
"ScientificNotation",
"FullExpressions",
"MaxErrors",
"MixedFractions",
"IntegerOutputBase",
"OutputStyle",
NULL
};
const char *genius_toplevels[] = {
"help",
"load",
......@@ -44,8 +32,8 @@ const char *genius_toplevels[] = {
};
const char *genius_operators[] = {
"not","and","xor","or","while","until","for","sum","prod","do","to","by","in","if",
"then","else","define","function","parameter","call","return","bailout","exception",
"continue","break","null",
"then","else","function","parameter","call","return","bailout","exception",
"continue","break","mod","null",
NULL
};
......@@ -39,8 +39,6 @@ extern int interrupted;
static int toplevelokg = TRUE;
extern char *genius_params[];
static int
ok_for_top(char *s)
{
......@@ -287,12 +285,6 @@ command_generator (const char *text, int state)
return strdup(s);
}
while(genius_params[pi]) {
char *s = genius_params[pi++];
if(strncmp(s,text,len)==0)
return strdup(s);
}
while(fli) {
GelEFunc *f = fli->data;
fli = g_slist_next(fli);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment