Java Code Examples for org.luaj.vm2.LuaString#eq_b()

The following examples show how to use org.luaj.vm2.LuaString#eq_b() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FuncState.java    From VideoOS-Android-SDK with GNU General Public License v3.0 5 votes vote down vote up
void checkrepeated (LexState.Labeldesc[] ll, int ll_n, LuaString label) {
	int i;
	for (i = bl.firstlabel; i < ll_n; i++) {
		if (label.eq_b(ll[i].name)) {
			String msg = ls.L.pushfstring(
                         "label '" + label + " already defined on line " + ll[i].line);
			ls.semerror(msg);
		}
	}
}
 
Example 2
Source File: FuncState.java    From VideoOS-Android-SDK with GNU General Public License v3.0 5 votes vote down vote up
int searchvar(LuaString n) {
	int i;
	for (i = nactvar - 1; i >= 0; i--) {
		if (n.eq_b(getlocvar(i).varname))
			return i;
	}
	return -1; /* not found */
}
 
Example 3
Source File: FuncState.java    From XPrivacyLua with GNU General Public License v3.0 5 votes vote down vote up
void checkrepeated (LexState.Labeldesc[] ll, int ll_n, LuaString label) {
	int i;
	for (i = bl.firstlabel; i < ll_n; i++) {
		if (label.eq_b(ll[i].name)) {
			String msg = ls.L.pushfstring(
                         "label '" + label + " already defined on line " + ll[i].line);
			ls.semerror(msg);
		}
	}
}
 
Example 4
Source File: FuncState.java    From XPrivacyLua with GNU General Public License v3.0 5 votes vote down vote up
int searchvar(LuaString n) {
	int i;
	for (i = nactvar - 1; i >= 0; i--) {
		if (n.eq_b(getlocvar(i).varname))
			return i;
	}
	return -1; /* not found */
}
 
Example 5
Source File: FuncState.java    From HtmlNative with Apache License 2.0 5 votes vote down vote up
void checkrepeated (LexState.Labeldesc[] ll, int ll_n, LuaString label) {
	int i;
	for (i = bl.firstlabel; i < ll_n; i++) {
		if (label.eq_b(ll[i].name)) {
			String msg = ls.L.pushfstring(
                         "label '" + label + " already defined on line " + ll[i].line);
			ls.semerror(msg);
		}
	}
}
 
Example 6
Source File: FuncState.java    From HtmlNative with Apache License 2.0 5 votes vote down vote up
int searchvar(LuaString n) {
	int i;
	for (i = nactvar - 1; i >= 0; i--) {
		if (n.eq_b(getlocvar(i).varname))
			return i;
	}
	return -1; /* not found */
}
 
Example 7
Source File: FuncState.java    From luaj with MIT License 5 votes vote down vote up
void checkrepeated (LexState.Labeldesc[] ll, int ll_n, LuaString label) {
	int i;
	for (i = bl.firstlabel; i < ll_n; i++) {
		if (label.eq_b(ll[i].name)) {
			String msg = ls.L.pushfstring(
                         "label '" + label + " already defined on line " + ll[i].line);
			ls.semerror(msg);
		}
	}
}
 
Example 8
Source File: FuncState.java    From luaj with MIT License 5 votes vote down vote up
int searchvar(LuaString n) {
	int i;
	for (i = nactvar - 1; i >= 0; i--) {
		if (n.eq_b(getlocvar(i).varname))
			return i;
	}
	return -1; /* not found */
}