Lines Matching refs:fp
43 FILE *fp; in SAL_IMPLEMENT_MAIN_WITH_ARGS() local
47 fp = fopen(argv[1], "rb"); // open the source file for read; in SAL_IMPLEMENT_MAIN_WITH_ARGS()
48 if (fp == NULL) { in SAL_IMPLEMENT_MAIN_WITH_ARGS()
62 while (fgets(str, 1024, fp)) { in SAL_IMPLEMENT_MAIN_WITH_ARGS()
91 fclose(fp); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
93 fp = fopen(argv[2], "wb"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
94 if (fp == NULL) { in SAL_IMPLEMENT_MAIN_WITH_ARGS()
99 fprintf(fp, "/*\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
100 fprintf(fp, " * Copyright(c) 1999 - 2006, Sun Microsystems, Inc.\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
101 fprintf(fp, " * All Rights Reserved.\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
102 fprintf(fp, " */\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
103 fprintf(fp, "/* !!!The file is generated automatically. DONOT edit the file manually!!! */\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
104 fprintf(fp, "#include <sal/types.h>\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
105 fprintf(fp, "\nextern \"C\" {\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
120 fprintf(fp, "\nstatic const sal_uInt16 idx1[] = {"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
122 if (k++ % 16 == 0) fprintf(fp, "\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
124 fp, "0x%04lx, ", sal::static_int_cast< unsigned long >(index[i])); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
126 fprintf(fp, "\n};\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
130 fprintf(fp, "\nstatic const sal_uInt16 idx2[] = {"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
134 if (k++ % 16 == 0) fprintf(fp, "\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
137 fp, "0x%04lx, ", in SAL_IMPLEMENT_MAIN_WITH_ARGS()
141 fprintf(fp, "\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
144 fprintf(fp, "\n};\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
147 fprintf(fp, "\nstatic const sal_uInt16 *idx3 = NULL;\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
149 fprintf(fp, "\nstatic const sal_uInt16 idx3[] = {"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
151 if (k++ % 16 == 0) fprintf(fp, "\n\t"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
152 fprintf(fp, "0x%04x, ", (sep.toChar() == ustr[i]) ? 0 : ustr[i]); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
154 fprintf(fp, "\n};\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
157 …fprintf(fp, "SAL_DLLPUBLIC_EXPORT const sal_uInt16** get_%s(sal_Int16 &max_index)\n{\n\tstatic con… in SAL_IMPLEMENT_MAIN_WITH_ARGS()
158 fprintf (fp, "}\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
160 fclose(fp); in SAL_IMPLEMENT_MAIN_WITH_ARGS()