Deleting a now-unused struct member.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5707 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
2070d3a26f
Коммит
c02c182bd7
@ -2,6 +2,7 @@
|
|||||||
* src/color.c (found_in_list): Don't bother keeping the compiled
|
* src/color.c (found_in_list): Don't bother keeping the compiled
|
||||||
regular expression when it matched -- drop this tiny optimization
|
regular expression when it matched -- drop this tiny optimization
|
||||||
for when opening multiple files. Instead stop calling malloc().
|
for when opening multiple files. Instead stop calling malloc().
|
||||||
|
* src/nano.h: Delete a now-unused struct member.
|
||||||
|
|
||||||
2016-03-01 Benno Schulenberg <bensberg@justemail.net>
|
2016-03-01 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/rcfile.c (parse_syntax), src/color.c (color_update): Don't
|
* src/rcfile.c (parse_syntax), src/color.c (color_update): Don't
|
||||||
|
@ -1627,9 +1627,6 @@ int strtomenu(const char *input)
|
|||||||
void free_list_item(regexlisttype *dropit)
|
void free_list_item(regexlisttype *dropit)
|
||||||
{
|
{
|
||||||
free(dropit->full_regex);
|
free(dropit->full_regex);
|
||||||
if (dropit->rgx != NULL)
|
|
||||||
regfree(dropit->rgx);
|
|
||||||
free(dropit->rgx);
|
|
||||||
free(dropit);
|
free(dropit);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -231,8 +231,6 @@ typedef struct colortype {
|
|||||||
typedef struct regexlisttype {
|
typedef struct regexlisttype {
|
||||||
char *full_regex;
|
char *full_regex;
|
||||||
/* A regex string to match things that imply a certain syntax. */
|
/* A regex string to match things that imply a certain syntax. */
|
||||||
regex_t *rgx;
|
|
||||||
/* The compiled regex. */
|
|
||||||
struct regexlisttype *next;
|
struct regexlisttype *next;
|
||||||
/* The next regex. */
|
/* The next regex. */
|
||||||
} regexlisttype;
|
} regexlisttype;
|
||||||
|
@ -353,7 +353,6 @@ void parse_syntax(char *ptr)
|
|||||||
/* Save the extension regex if it's valid. */
|
/* Save the extension regex if it's valid. */
|
||||||
if (nregcomp(fileregptr, REG_NOSUB)) {
|
if (nregcomp(fileregptr, REG_NOSUB)) {
|
||||||
newext->full_regex = mallocstrcpy(NULL, fileregptr);
|
newext->full_regex = mallocstrcpy(NULL, fileregptr);
|
||||||
newext->rgx = NULL;
|
|
||||||
|
|
||||||
if (endext == NULL)
|
if (endext == NULL)
|
||||||
endsyntax->extensions = newext;
|
endsyntax->extensions = newext;
|
||||||
@ -880,7 +879,6 @@ void grab_and_store(char *ptr, const char *kind, regexlisttype **storage)
|
|||||||
/* Copy the regex into a struct, and hook this in at the end. */
|
/* Copy the regex into a struct, and hook this in at the end. */
|
||||||
newthing = (regexlisttype *)nmalloc(sizeof(regexlisttype));
|
newthing = (regexlisttype *)nmalloc(sizeof(regexlisttype));
|
||||||
newthing->full_regex = mallocstrcpy(NULL, regexstring);
|
newthing->full_regex = mallocstrcpy(NULL, regexstring);
|
||||||
newthing->rgx = NULL;
|
|
||||||
newthing->next = NULL;
|
newthing->next = NULL;
|
||||||
|
|
||||||
if (lastthing == NULL)
|
if (lastthing == NULL)
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user