Home | History | Annotate | Download | only in src

Lines Matching defs:cfunc

67     public void emitCode(CFunc cfunc, String original,
75 if (cfunc.hasTypedPointerArg()) {
76 jfunc = JFunc.convert(cfunc, true);
101 jfunc = JFunc.convert(cfunc, false);
217 boolean isNullAllowed(CFunc cfunc) {
218 String[] checks = mChecker.getChecks(cfunc.getName());
244 String getErrorReturnValue(CFunc cfunc) {
245 CType returnType = cfunc.getType();
251 String[] checks = mChecker.getChecks(cfunc.getName());
279 boolean isUnsupportedFunc(CFunc cfunc) {
280 String[] checks = mChecker.getChecks(cfunc.getName());
306 String isRequiresFunc(CFunc cfunc) {
307 String[] checks = mChecker.getChecks(cfunc.getName());
333 void emitNativeBoundsChecks(CFunc cfunc, String cname, PrintStream out,
336 String[] checks = mChecker.getChecks(cfunc.getName());
436 boolean hasNonConstArg(JFunc jfunc, CFunc cfunc, List<Integer> nonPrimitiveArgs) {
442 if (!cfunc.getArgType(cIndex).isConst()) {
446 if (!cfunc.getArgType(cIndex).isConst()) {
676 CFunc cfunc = jfunc.getCFunc();
684 out.println("/* " + cfunc.getOriginal() + " */");
768 String cname = cfunc.getArgName(cIndex);
814 CType returnType = cfunc.getType();
817 boolean isUnsupported = isUnsupportedFunc(cfunc);
822 " \"" + cfunc.getName() + "\");");
824 String retval = getErrorReturnValue(cfunc);
832 String requiresExtension = isRequiresFunc(cfunc);
839 " \"" + cfunc.getName() + "\");");
843 String retval = getErrorReturnValue(cfunc);
856 hasNonConstArg(jfunc, cfunc, nonPrimitiveArgs);
857 // mChecker.getChecks(cfunc.getName()) != null
874 String retval = getErrorReturnValue(cfunc);
900 String cname = cfunc.getArgName(cIndex);
902 CType type = cfunc.getArgType(jfunc.getArgCIndex(idx));
930 String cname = cfunc.getArgName(cIndex);
943 String cname = cfunc.getArgName(cIndex);
945 CType type = cfunc.getArgType(jfunc.getArgCIndex(idx));
967 String cname = cfunc.getArgName(cIndex);
1012 emitNativeBoundsChecks(cfunc, cname, out, false,
1019 cfunc.getArgType(cIndex).getDeclaration() +
1035 boolean nullAllowed = isNullAllowed(cfunc) || isPointerFunc;
1045 cfunc.getArgType(cIndex).getDeclaration() +
1056 cfunc.getArgType(cIndex).getDeclaration() +
1063 emitNativeBoundsChecks(cfunc, cname, out, true,
1079 String name = cfunc.getName();
1090 numArgs = cfunc.getNumArgs();
1108 typecast = cfunc.getArgType(i).getDeclaration();
1114 if (cfunc.getArgType(i).isConstCharPointer()) {
1117 out.print(cfunc.getArgName(i));
1157 cfunc.getArgName(cIndex) +
1160 (cfunc.getArgType(cIndex).isConst() ?
1172 cfunc.getArgName(cIndex) +
1174 (cfunc.getArgType(cIndex).isConst() ?
1189 String cname = cfunc.getArgName(cIndex);