Commit fe605247 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

per DB's patch, in main(), change 0 to NULL in the option struct where

needed


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2434 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 36 additions and 33 deletions
+36 -33
...@@ -49,6 +49,9 @@ CVS code - ...@@ -49,6 +49,9 @@ CVS code -
- Instead of breaking a line at a space and readding the space - Instead of breaking a line at a space and readding the space
afterwards, just break the line after the space, as it's more afterwards, just break the line after the space, as it's more
efficient. (DLR) efficient. (DLR)
main()
- Change 0 to NULL in the option struct where needed. (David
Benbennick)
- nano.h: - nano.h:
- Define PATH_MAX as 4096 if it isn't defined, as passing a size - Define PATH_MAX as 4096 if it isn't defined, as passing a size
of 0 to get a string as long as we need is a nonportable GNU of 0 to get a string as long as we need is a nonportable GNU
......
...@@ -3931,62 +3931,62 @@ int main(int argc, char **argv) ...@@ -3931,62 +3931,62 @@ int main(int argc, char **argv)
#endif #endif
#ifdef HAVE_GETOPT_LONG #ifdef HAVE_GETOPT_LONG
const struct option long_options[] = { const struct option long_options[] = {
{"help", 0, 0, 'h'}, {"help", 0, NULL, 'h'},
#ifdef ENABLE_MULTIBUFFER #ifdef ENABLE_MULTIBUFFER
{"multibuffer", 0, 0, 'F'}, {"multibuffer", 0, NULL, 'F'},
#endif #endif
#ifdef ENABLE_NANORC #ifdef ENABLE_NANORC
#ifndef NANO_SMALL #ifndef NANO_SMALL
{"historylog", 0, 0, 'H'}, {"historylog", 0, NULL, 'H'},
#endif #endif
{"ignorercfiles", 0, 0, 'I'}, {"ignorercfiles", 0, NULL, 'I'},
#endif #endif
{"morespace", 0, 0, 'O'}, {"morespace", 0, NULL, 'O'},
#ifndef DISABLE_JUSTIFY #ifndef DISABLE_JUSTIFY
{"quotestr", 1, 0, 'Q'}, {"quotestr", 1, NULL, 'Q'},
#endif #endif
#ifdef HAVE_REGEX_H #ifdef HAVE_REGEX_H
{"regexp", 0, 0, 'R'}, {"regexp", 0, NULL, 'R'},
#endif #endif
{"tabsize", 1, 0, 'T'}, {"tabsize", 1, NULL, 'T'},
{"version", 0, 0, 'V'}, {"version", 0, NULL, 'V'},
#ifdef ENABLE_COLOR #ifdef ENABLE_COLOR
{"syntax", 1, 0, 'Y'}, {"syntax", 1, NULL, 'Y'},
#endif #endif
{"const", 0, 0, 'c'}, {"const", 0, NULL, 'c'},
{"rebinddelete", 0, 0, 'd'}, {"rebinddelete", 0, NULL, 'd'},
{"nofollow", 0, 0, 'l'}, {"nofollow", 0, NULL, 'l'},
#ifndef DISABLE_MOUSE #ifndef DISABLE_MOUSE
{"mouse", 0, 0, 'm'}, {"mouse", 0, NULL, 'm'},
#endif #endif
#ifndef DISABLE_OPERATINGDIR #ifndef DISABLE_OPERATINGDIR
{"operatingdir", 1, 0, 'o'}, {"operatingdir", 1, NULL, 'o'},
#endif #endif
{"preserve", 0, 0, 'p'}, {"preserve", 0, NULL, 'p'},
#ifndef DISABLE_WRAPJUSTIFY #ifndef DISABLE_WRAPJUSTIFY
{"fill", 1, 0, 'r'}, {"fill", 1, NULL, 'r'},
#endif #endif
#ifndef DISABLE_SPELLER #ifndef DISABLE_SPELLER
{"speller", 1, 0, 's'}, {"speller", 1, NULL, 's'},
#endif #endif
{"tempfile", 0, 0, 't'}, {"tempfile", 0, NULL, 't'},
{"view", 0, 0, 'v'}, {"view", 0, NULL, 'v'},
#ifndef DISABLE_WRAPPING #ifndef DISABLE_WRAPPING
{"nowrap", 0, 0, 'w'}, {"nowrap", 0, NULL, 'w'},
#endif #endif
{"nohelp", 0, 0, 'x'}, {"nohelp", 0, NULL, 'x'},
{"suspend", 0, 0, 'z'}, {"suspend", 0, NULL, 'z'},
#ifndef NANO_SMALL #ifndef NANO_SMALL
{"smarthome", 0, 0, 'A'}, {"smarthome", 0, NULL, 'A'},
{"backup", 0, 0, 'B'}, {"backup", 0, NULL, 'B'},
{"backupdir", 1, 0, 'E'}, {"backupdir", 1, NULL, 'E'},
{"noconvert", 0, 0, 'N'}, {"noconvert", 0, NULL, 'N'},
{"smooth", 0, 0, 'S'}, {"smooth", 0, NULL, 'S'},
{"restricted", 0, 0, 'Z'}, {"restricted", 0, NULL, 'Z'},
{"autoindent", 0, 0, 'i'}, {"autoindent", 0, NULL, 'i'},
{"cut", 0, 0, 'k'}, {"cut", 0, NULL, 'k'},
#endif #endif
{0, 0, 0, 0} {NULL, 0, NULL, 0}
}; };
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment