206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
-
-
-
-
|
Tcl_AppendResult(interp, "code already relocated, cannot output to file", NULL);
return TCL_ERROR;
}
if (s->output_type == TCC_OUTPUT_MEMORY) {
Tcl_AppendResult(interp, "output_type memory not valid for output to file", NULL);
return TCL_ERROR;
}
#ifdef WIN32
res = tcc_output_pe(s,Tcl_GetString(objv[2]));
#else
res = tcc_output_file(s,Tcl_GetString(objv[2]));
#endif
if (res!=0) {
Tcl_AppendResult(interp, "output to file failed", NULL);
return TCL_ERROR;
} else {
return TCL_OK;
}
|