mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Yet another round of accumulated tweaks and cleanups
Notable changes:
- sh/timers.c: Rename timerdel() to sh_timerdel() for consistency;
we had timerdel() but sh_timeradd().
- include/shell.h: Remove unused sh struct members:
- sh.lastpath (this was still being saved/restored in several
places, but not actually used since 2008-06-02 ksh93t-)
- sh.lastbase (unused since 2000-10-31 ksh93k)
- sh.inpool (unused since libcoshell was removed in 3613da42)
- sh/xec.c: sh_exec(): Add comments for the various command types.
This commit is contained in:
parent
d79a34b327
commit
8a0920ea0a
16 changed files with 88 additions and 48 deletions
|
|
@ -2,7 +2,7 @@
|
|||
* *
|
||||
* This software is part of the ast package *
|
||||
* Copyright (c) 1985-2011 AT&T Intellectual Property *
|
||||
* Copyright (c) 2020-2021 Contributors to ksh 93u+m *
|
||||
* Copyright (c) 2020-2022 Contributors to ksh 93u+m *
|
||||
* and is licensed under the *
|
||||
* Eclipse Public License, Version 1.0 *
|
||||
* by AT&T Intellectual Property *
|
||||
|
|
@ -518,13 +518,13 @@ extern struct mntent* getmntent(FILE*);
|
|||
|
||||
#if _lib_getmntent
|
||||
|
||||
typedef struct
|
||||
#if _mem_mnt_opts_mntent
|
||||
#define OPTIONS(p) ((p)->mnt_opts)
|
||||
#else
|
||||
#define OPTIONS(p) NiL
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Header_t hdr;
|
||||
FILE* fp;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* *
|
||||
* This software is part of the ast package *
|
||||
* Copyright (c) 1985-2012 AT&T Intellectual Property *
|
||||
* Copyright (c) 2020-2021 Contributors to ksh 93u+m *
|
||||
* Copyright (c) 2020-2022 Contributors to ksh 93u+m *
|
||||
* and is licensed under the *
|
||||
* Eclipse Public License, Version 1.0 *
|
||||
* by AT&T Intellectual Property *
|
||||
|
|
@ -766,7 +766,7 @@ static int bestfree(Vmalloc_t* vm, void* data, int local )
|
|||
}
|
||||
|
||||
static void* bestresize(Vmalloc_t* vm, /* region allocating from */
|
||||
void* data, /* old block of data */
|
||||
void* data, /* old block of data */
|
||||
reg size_t size, /* new size */
|
||||
int type, /* !=0 to move, <0 for not copy */
|
||||
int local)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue