Lines Matching refs:cfp

41 	FILE *sfp, *cfp;  in SAL_IMPLEMENT_MAIN_WITH_ARGS()  local
53 cfp = fopen(argv[2], "wb"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
54 if (cfp == NULL) { in SAL_IMPLEMENT_MAIN_WITH_ARGS()
60 fprintf(cfp, "/*\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
61 fprintf(cfp, " * Copyright(c) 1999 - 2000, Sun Microsystems, Inc.\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
62 fprintf(cfp, " * All Rights Reserved.\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
63 fprintf(cfp, " */\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
64 fprintf(cfp, "/* !!!The file is generated automatically. DONOT edit the file manually!!! */\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
65 fprintf(cfp, "#include <sal/types.h>\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
66 fprintf(cfp, "extern \"C\" {\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
77 fprintf(cfp, "static const sal_Unicode dataArea[] = {"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
110 fprintf(cfp, "\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
111 fprintf(cfp, "0x%04x, ", u[i]); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
116 fprintf(cfp, "\n};\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
119 fprintf(cfp, "static const sal_Int32 lenArray[] = {\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
121 fprintf(cfp, "0x%x, ", 0); // insert one slat for skipping 0 in index2 array. in SAL_IMPLEMENT_MAIN_WITH_ARGS()
123 fprintf(cfp, "0x%lx, ", static_cast<long unsigned int>(lenArray[i])); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
126 fprintf(cfp, "\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
129 fprintf(cfp, "\n};\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
134 fprintf (cfp, "static const sal_Int16 index1[] = {\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
142 … fprintf(cfp, "0x%02x, ", set[i] = (j < 0x100 ? sal::static_int_cast<sal_Int16>(count++) : 0xff)); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
144 fprintf (cfp, "\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
146 fprintf (cfp, "};\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
149 fprintf (cfp, "static const sal_Int32 index2[] = {\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
162 cfp, "0x%lx, ", in SAL_IMPLEMENT_MAIN_WITH_ARGS()
166 fprintf (cfp, "\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
168 fprintf (cfp, "\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
171 fprintf (cfp, "\n};\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
175 fprintf (cfp, "static const sal_uInt8 existMark[] = {\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
181 fprintf(cfp, "0x%02x, ", bit); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
184 fprintf(cfp, "\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
187 fprintf (cfp, "\n};\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
190 fprintf (cfp, "\tconst sal_uInt8* getExistMark() { return existMark; }\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
191 fprintf (cfp, "\tconst sal_Int16* getIndex1() { return index1; }\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
192 fprintf (cfp, "\tconst sal_Int32* getIndex2() { return index2; }\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
193 fprintf (cfp, "\tconst sal_Int32* getLenArray() { return lenArray; }\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
194 fprintf (cfp, "\tconst sal_Unicode* getDataArea() { return dataArea; }\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
195 fprintf (cfp, "}\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
198 fclose(cfp); in SAL_IMPLEMENT_MAIN_WITH_ARGS()