Subversion Repositories Kolibri OS

Rev

Rev 145 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 145 Rev 609
Line 1081... Line 1081...
1081
{
1081
{
1082
    DLLReference *dllref;
1082
    DLLReference *dllref;
1083
    int f = 0, sym_index;
1083
    int f = 0, sym_index;
1084
    char *p, line[120], dllname[40];
1084
    char *p, line[120], dllname[40];
1085
    while (fgets(line, sizeof line, fp)) {
1085
    while (fgets(line, sizeof line, fp)) {
1086
	p = strchr(line, 0);
1086
	//p = strchr(line, 0);
1087
	while (p > line && p[-1] <= ' ')
1087
	while (p > line && p[-1] <= ' ')
1088
	    --p;
1088
	    --p;
1089
	*p = 0;
1089
	*p = 0;
1090
	p = line;
1090
	p = line;
1091
	while (*p && *p <= ' ')
1091
	while (*p && *p <= ' ')
Line 1134... Line 1134...
1134
/* ------------------------------------------------------------- */
1134
/* ------------------------------------------------------------- */
1135
void pe_guess_outfile(char *objfilename, int output_type)
1135
void pe_guess_outfile(char *objfilename, int output_type)
1136
{
1136
{
1137
    char *ext = strrchr(objfilename, '.');
1137
    char *ext = strrchr(objfilename, '.');
1138
    if (NULL == ext)
1138
    if (NULL == ext)
1139
        ext = strchr(objfilename, 0);
1139
        //ext = strchr(objfilename, 0);
1140
    if (output_type == TCC_OUTPUT_DLL)
1140
    if (output_type == TCC_OUTPUT_DLL)
1141
        strcpy(ext, ".dll");
1141
        strcpy(ext, ".dll");
1142
    else
1142
    else
1143
    if (output_type == TCC_OUTPUT_EXE)
1143
    if (output_type == TCC_OUTPUT_EXE)
1144
        strcpy(ext, ".exe");
1144
        strcpy(ext, ".exe");