aboutsummaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorNicolas Pierron <nicolas.b.pierron@gmail.com>2014-03-02 14:11:35 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-02 14:19:59 -0300
commitd9283c4927cc5f926fa796acc2568610bd9a80d6 (patch)
treeee22db97987af38c538d1bd6501a384203579949 /src/misc2.c
parent2bd6d444033b5746595713f4d037de135379a23e (diff)
downloadrneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.tar.gz
rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.tar.bz2
rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.zip
Remove __ARGS macro. Close #205
This is a squash of all commits sent to #81. - Remove unused undef of __ARGS. - Fix mch_rename declaration. - Follow changes related to moved & extracted files. - Properly indent function declarations of getchar.h and quickfix.c.
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/misc2.c b/src/misc2.c
index d82c45f8ec..360524b0a0 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -38,8 +38,8 @@
static char_u *username = NULL; /* cached result of mch_get_user_name() */
-static int coladvance2 __ARGS((pos_T *pos, int addspaces, int finetune,
- colnr_T wcol));
+static int coladvance2(pos_T *pos, int addspaces, int finetune,
+ colnr_T wcol);
/*
* Return TRUE if in the current mode we need to use virtual.
@@ -589,10 +589,10 @@ static long_u mem_peak;
static long_u num_alloc;
static long_u num_freed;
-static void mem_pre_alloc_s __ARGS((size_t *sizep));
-static void mem_pre_alloc_l __ARGS((long_u *sizep));
-static void mem_post_alloc __ARGS((void **pp, size_t size));
-static void mem_pre_free __ARGS((void **pp));
+static void mem_pre_alloc_s(size_t *sizep);
+static void mem_pre_alloc_l(long_u *sizep);
+static void mem_post_alloc(void **pp, size_t size);
+static void mem_pre_free(void **pp);
static void mem_pre_alloc_s(size_t *sizep)
{
@@ -2883,7 +2883,7 @@ int get_shape_idx(int mouse)
typedef unsigned short ush; /* unsigned 16-bit value */
typedef unsigned long ulg; /* unsigned 32-bit value */
-static void make_crc_tab __ARGS((void));
+static void make_crc_tab(void);
static ulg crc_32_tab[256];
@@ -3183,7 +3183,7 @@ void qsort(base, elm_count, elm_size, cmp)
void *base;
size_t elm_count;
size_t elm_size;
-int (*cmp)__ARGS((const void *, const void *));
+int (*cmp)(const void *, const void *);
{
char_u *buf;
char_u *p1;
@@ -3217,7 +3217,7 @@ int (*cmp)__ARGS((const void *, const void *));
* Sort an array of strings.
*/
static int
-sort_compare __ARGS((const void *s1, const void *s2));
+sort_compare(const void *s1, const void *s2);
static int sort_compare(const void *s1, const void *s2)
{
@@ -3330,9 +3330,9 @@ static int envsize = -1; /* current size of environment */
extern
char **environ; /* the global which is your env. */
-static int findenv __ARGS((char *name)); /* look for a name in the env. */
-static int newenv __ARGS((void)); /* copy env. from stack to heap */
-static int moreenv __ARGS((void)); /* incr. size of env. */
+static int findenv(char *name); /* look for a name in the env. */
+static int newenv(void); /* copy env. from stack to heap */
+static int moreenv(void); /* incr. size of env. */
int putenv(const char *string)
{