1
1

Killed operation_names: op_names contain exactly same data. Added fixme.

Этот коммит содержится в:
Pavel Machek 1999-01-21 13:37:07 +00:00
родитель 436638f2bd
Коммит 121ecab640
3 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,13 @@
1999-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* file.c: Killed operation_names: they seemed same to op_names to
me, and compilation failed on them (initializer element is not a
constant). Maybe miguel tagged too many strings for localization?
:-).
* ext.c: we use /tmp in "creative" way: creating there file and
then executing it. I do not see how it is needed. Marked with FIXME.
Thu Jan 21 01:11:24 1999 Timur Bakeyev <mc@bat.ru>
* mad.[ch], util.[ch]: commit changes, that allow coexist (temporary)

Просмотреть файл

@ -139,6 +139,7 @@ exec_extension (char *filename, char *data, char **drops, int *move_dir, int sta
*/
file_name = strdup (tmpnam (NULL));
/* #warning FIXME: this is ugly */
if ((cmd_file_fd = open (file_name, O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600)) == -1){
message (1, MSG_ERROR, _(" Can't create temporary command file \n %s "),
unix_error_string (errno));

Просмотреть файл

@ -125,9 +125,6 @@ int file_op_compute_totals = 1;
/* If on, it gets a little scrict with dangerous operations */
int know_not_what_am_i_doing = 0;
/* mapping operations into names */
char *operation_names [] = { N_("Copy"), N_("Move"), N_("Delete") };
/* This is a hard link cache */
struct link {
struct link *next;
@ -1843,7 +1840,7 @@ panel_operate (void *source_panel, FileOperation operation, char *thedefault, in
if (do_bg){
int v;
v = do_background (ctx, copy_strings (_(operation_names [operation]), ": ", panel->cwd, 0));
v = do_background (ctx, copy_strings (_(op_names [operation]), ": ", panel->cwd, 0));
if (v == -1){
message (1, MSG_ERROR, _(" Sorry, I could not put the job in background "));
}