History

[PATCH] kconfig: kxgettext: message fix

The gettext doesn't handle the {CONFIG}:00000 markers as sources. I added a simple comment prefix for them.

Egry Gabor committed 21 years ago

Commit c196eff1 parent c07e02d1 file · +5 −4Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/kxgettext.c+5−4
@@ -179,7 +179,11 @@ static void message__print_file_lineno(struct message *self) · 178 unmodified lines
179179 {
180180 struct file_line *fl = self->files;
181181
182− printf("\n#: %s:%d", fl->file, fl->lineno);
182+ putchar('\n');
183+ if (self->option != NULL)
184+ printf("# %s:00000\n", self->option);
185+
186+ printf("#: %s:%d", fl->file, fl->lineno);
183187 fl = fl->next;
184188
185189 while (fl != NULL) {
@@ -187,9 +191,6 @@ static void message__print_file_lineno(struct message *self) · 1 unmodified line
187191 fl = fl->next;
188192 }
189193
190− if (self->option != NULL)
191− printf(", %s:00000", self->option);
192−
193194 putchar('\n');
194195 }
195196