Patch: Elm ME+ 2.5 PLalpha48 -> Elm ME+ 2.5 PLalpha49 [6/9] (5/5)
From
Kari Hurtta@21:1/5 to
All on Thu Jan 3 16:43:54 2019
[continued from previous message]
struct string * s_owner = NULL;
- struct string * s_size = NULL;
struct string * s_date = NULL;
struct string * s_filename = NULL;
struct string * s_comment = NULL;
struct string * s_dummy = new_string(display_charset);
!
! time_t tval;
! struct tm * timeptr ;
! int tlen = mp_lookup_integer(list,fbrowser_mp_tlen);
int w;
int LINES, COLUMNS;
int lin,col;
! menu_get_sizes(ptr, &LINES, &COLUMNS);
!
! time(&tval);
!
! timeptr = entry ? localtime(& entry->mtime) : localtime(&tval);
! if (timeptr) {
! int nlen;
! /* This code assumes that every date is equal width (on characters,
! not in bytes)
! */
!
! char * fbstr_entry_date_fmt = catgets(elm_msg_cat, FbrowserSet,
! FbrowserEntryDateFmt,
! "%Y-%b-%d");
! char timebuf[SLEN] = "";
!
! nlen = strftime(timebuf,sizeof timebuf,fbstr_entry_date_fmt,timeptr);
!
! /* system_charset is locale charset */
! s_date = new_string2(system_charset,s2us(timebuf));
!
! /* tlen must be characters -- not bytes */
!
! nlen = string_len(s_date);
! if (tlen < nlen) {
! tlen = nlen;
! mp_list_set_integer(list, fbrowser_mp_tlen, tlen);
! }
! }
!
if (title) {
- free_string(& s_date);
s_perm = format_string(CATGETS(elm_msg_cat, FbrowserSet,
FbrowserEnthdrPermission, "permission"));
--- 186,217 ----
const struct string * name_line;
const struct string * comment;
struct menu_param * list;
+ struct dir_item * item;
{
struct string * s_perm = NULL;
struct string * s_type = NULL;
struct string * s_owner = NULL;
struct string * s_date = NULL;
+ struct string * s_size = NULL;
struct string * s_filename = NULL;
struct string * s_comment = NULL;
struct string * s_dummy = new_string(display_charset);
!
! struct menu_anon_param *A = mp_lookup_anon(list,fbrowser_mp_params);
int w;
int LINES, COLUMNS;
int lin,col;
! if (FBROWSER_param_magic != A->magic)
! panic("BROWSER PANIC",__FILE__,__LINE__,"print_header_line",
! "Bad magic number (menu_anon_param)",0);
! menu_get_sizes(ptr, &LINES, &COLUMNS);
!
if (title) {
s_perm = format_string(CATGETS(elm_msg_cat, FbrowserSet,
FbrowserEnthdrPermission, "pe