~ubuntu-branches/ubuntu/wily/dopewars/wily

« back to all changes in this revision

Viewing changes to src/configfile.c

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2006-01-19 00:30:22 UTC
  • mfrom: (3.1.3 dapper)
  • Revision ID: james.westby@ubuntu.com-20060119003022-ouj13ca9jdqeb2ok
Tags: 1.5.12-2
* Set the default web browser to sensible-browser
* Remove the misc:depends dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                              *GetGlobalString(GlobalIndex, StructIndex), -1);
120
120
    PrintEscaped(fp, convstr);
121
121
    g_free(convstr);
122
 
    fprintf(fp, "\"\n");
 
122
    fputs("\"\n", fp);
123
123
  } else if (Globals[GlobalIndex].StringList) {
124
124
    int i;
125
125
    gchar *convstr;
127
127
    fprintf(fp, "%s = { ", GlobalName);
128
128
    for (i = 0; i < *Globals[GlobalIndex].MaxIndex; i++) {
129
129
      if (i > 0)
130
 
        fprintf(fp, ", ");
 
130
        fputs(", ", fp);
131
131
      fputc('"', fp);
132
132
      convstr = Conv_ToExternal(conv,
133
133
                                (*Globals[GlobalIndex].StringList)[i], -1);
135
135
      g_free(convstr);
136
136
      fputc('"', fp);
137
137
    }
138
 
    fprintf(fp, " }\n");
 
138
    fputs(" }\n", fp);
139
139
  }
140
140
 
141
141
  if (Globals[GlobalIndex].NameStruct[0])
182
182
 
183
183
  rewind(fp);
184
184
  ftruncate(fileno(fp), 0);
185
 
  fprintf(fp, file->str);
 
185
  fputs(file->str, fp);
186
186
 
187
 
  fprintf(fp, str);
 
187
  fputs(str, fp);
188
188
 
189
189
  g_string_free(file, TRUE);
190
190
}
201
201
  if (ForceUTF8 && !IsConfigFileUTF8()) {
202
202
    g_free(LocalCfgEncoding);
203
203
    LocalCfgEncoding = g_strdup("UTF-8");
204
 
    fprintf(fp, "encoding \"UTF-8\"\n");
 
204
    fputs("encoding \"UTF-8\"\n", fp);
205
205
  }
206
206
 
207
207
  if (LocalCfgEncoding && LocalCfgEncoding[0]) {