Consistently put __EXPORT__ in .c files
This commit is contained in:
parent
99c7523b07
commit
f3de71d05f
6
src/E.h
6
src/E.h
|
@ -3,7 +3,7 @@
|
|||
/*****************************************************************************/
|
||||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2020 Kim Woelders
|
||||
* Copyright (C) 2004-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -560,5 +560,5 @@ char **ThemesList(int *num);
|
|||
*/
|
||||
extern const char e_wm_name[];
|
||||
extern const char e_wm_version[];
|
||||
__EXPORT__ extern EConf Conf;
|
||||
__EXPORT__ extern EMode Mode;
|
||||
extern EConf Conf;
|
||||
extern EMode Mode;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2006-2014 Kim Woelders
|
||||
* Copyright (C) 2006-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -67,7 +67,7 @@
|
|||
|
||||
void EDebugInit(const char *s);
|
||||
void EDebugSet(unsigned int type, int value);
|
||||
__EXPORT__ int EDebug(unsigned int type);
|
||||
int EDebug(unsigned int type);
|
||||
|
||||
#else
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2020 Kim Woelders
|
||||
* Copyright (C) 2004-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -50,8 +50,8 @@
|
|||
const char e_wm_name[] = "e16";
|
||||
const char e_wm_version[] = E16_VERSION;
|
||||
|
||||
EConf Conf;
|
||||
EMode Mode;
|
||||
__EXPORT__ EConf Conf;
|
||||
__EXPORT__ EMode Mode;
|
||||
|
||||
static int EoptGet(int argc, char **argv);
|
||||
static void EoptHelp(void);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2005-2020 Kim Woelders
|
||||
* Copyright (C) 2005-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include "util.h"
|
||||
|
||||
void
|
||||
__EXPORT__ void
|
||||
EfreeNull(void **p)
|
||||
{
|
||||
Efree(*p);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2015 Kim Woelders
|
||||
* Copyright (C) 2004-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -52,7 +52,7 @@ _tvdiff(struct timeval *tvd, const struct timeval *tv1,
|
|||
tvd->tv_usec = tus;
|
||||
}
|
||||
|
||||
void
|
||||
__EXPORT__ void
|
||||
Eprintf(const char *fmt, ...)
|
||||
{
|
||||
FILE *fprt;
|
||||
|
@ -141,7 +141,7 @@ EDebugInit(const char *param)
|
|||
}
|
||||
}
|
||||
|
||||
int
|
||||
__EXPORT__ int
|
||||
EDebug(unsigned int type)
|
||||
{
|
||||
return (ev_debug &&
|
||||
|
|
12
src/tclass.h
12
src/tclass.h
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2014 Kim Woelders
|
||||
* Copyright (C) 2004-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -98,7 +98,7 @@ void TextclassSetJustification(TextClass * tc, int just);
|
|||
/* text.c */
|
||||
TextState *TextclassGetTextState(TextClass * tclass, int state,
|
||||
int active, int sticky);
|
||||
__EXPORT__ void TextstateTextFit(TextState * ts, char **ptext, int *pw,
|
||||
void TextstateTextFit(TextState * ts, char **ptext, int *pw,
|
||||
int textwidth_limit);
|
||||
void TextstateTextDraw(TextState * ts, Win win,
|
||||
EX_Drawable draw, const char *text,
|
||||
|
@ -113,9 +113,9 @@ void TextDraw(TextClass * tclass, Win win, EX_Drawable draw,
|
|||
const char *text, int x, int y, int w, int h,
|
||||
int fsize, int justification);
|
||||
|
||||
__EXPORT__ int _xft_FdcInit(TextState * ts, Win win, EX_Drawable draw);
|
||||
__EXPORT__ void _xft_FdcFini(TextState * ts);
|
||||
__EXPORT__ void _xft_FdcSetDrawable(TextState * ts, unsigned long draw);
|
||||
__EXPORT__ void _xft_FdcSetColor(TextState * ts, unsigned int color);
|
||||
int _xft_FdcInit(TextState * ts, Win win, EX_Drawable draw);
|
||||
void _xft_FdcFini(TextState * ts);
|
||||
void _xft_FdcSetDrawable(TextState * ts, unsigned long draw);
|
||||
void _xft_FdcSetColor(TextState * ts, unsigned int color);
|
||||
|
||||
#endif /* _TCLASS_H */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2015 Kim Woelders
|
||||
* Copyright (C) 2004-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -823,7 +823,7 @@ TextSize(TextClass * tclass, int active, int sticky, int state,
|
|||
StrlistFree(lines, num_lines);
|
||||
}
|
||||
|
||||
void
|
||||
__EXPORT__ void
|
||||
TextstateTextFit(TextState * ts, char **ptext, int *pw, int textwidth_limit)
|
||||
{
|
||||
if (ts->need_utf8 || MB_CUR_MAX > 1)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2006-2015 Kim Woelders
|
||||
* Copyright (C) 2006-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -117,7 +117,7 @@ _xft_TextDraw(TextState * ts, int x, int y, const char *text, int len)
|
|||
(const XftChar8 *)text, len);
|
||||
}
|
||||
|
||||
int
|
||||
__EXPORT__ int
|
||||
_xft_FdcInit(TextState * ts, Win win, EX_Drawable draw)
|
||||
{
|
||||
FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
|
||||
|
@ -131,7 +131,7 @@ _xft_FdcInit(TextState * ts, Win win, EX_Drawable draw)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
__EXPORT__ void
|
||||
_xft_FdcFini(TextState * ts)
|
||||
{
|
||||
FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
|
||||
|
@ -139,7 +139,7 @@ _xft_FdcFini(TextState * ts)
|
|||
XftDrawDestroy(fdc->xftd);
|
||||
}
|
||||
|
||||
void
|
||||
__EXPORT__ void
|
||||
_xft_FdcSetDrawable(TextState * ts, unsigned long draw)
|
||||
{
|
||||
FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
|
||||
|
@ -150,7 +150,7 @@ _xft_FdcSetDrawable(TextState * ts, unsigned long draw)
|
|||
XftDrawChange(fdc->xftd, draw);
|
||||
}
|
||||
|
||||
void
|
||||
__EXPORT__ void
|
||||
_xft_FdcSetColor(TextState * ts, unsigned int color)
|
||||
{
|
||||
FontCtxXft *fdc = (FontCtxXft *) ts->fdc;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2019 Kim Woelders
|
||||
* Copyright (C) 2004-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -83,7 +83,7 @@ const char *Estrcasestr(const char *haystack, const char *needle);
|
|||
#define EMALLOC(type, num) (type*)Emalloc((num)*sizeof(type))
|
||||
#define EREALLOC(type, ptr, num) (type*)Erealloc(ptr, (num)*sizeof(type))
|
||||
|
||||
__EXPORT__ void EfreeNull(void **p);
|
||||
void EfreeNull(void **p);
|
||||
void EfreeSet(void **p, void *s);
|
||||
void EfreeDup(char **p, const char *s);
|
||||
|
||||
|
@ -112,7 +112,7 @@ void StrlistSort(char **lst, int num);
|
|||
void Esetenv(const char *name, const char *value);
|
||||
|
||||
/* misc.c */
|
||||
__EXPORT__ void __PRINTF__ Eprintf(const char *fmt, ...);
|
||||
void __PRINTF__ Eprintf(const char *fmt, ...);
|
||||
|
||||
#ifdef HAVE_SNPRINTF
|
||||
#define Evsnprintf vsnprintf
|
||||
|
|
6
src/x.c
6
src/x.c
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2020 Kim Woelders
|
||||
* Copyright (C) 2004-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -49,8 +49,8 @@
|
|||
#define DEBUG_XWIN 0
|
||||
#define DEBUG_PIXMAP 0
|
||||
|
||||
EDisplay Dpy;
|
||||
Display *disp;
|
||||
__EXPORT__ EDisplay Dpy;
|
||||
__EXPORT__ Display *disp;
|
||||
|
||||
#if USE_XRENDER
|
||||
static Visual *argb_visual = NULL;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2015 Kim Woelders
|
||||
* Copyright (C) 2004-2021 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -44,8 +44,8 @@ typedef struct {
|
|||
unsigned char last_error_code;
|
||||
} EDisplay;
|
||||
|
||||
__EXPORT__ extern EDisplay Dpy;
|
||||
__EXPORT__ extern Display *disp;
|
||||
extern EDisplay Dpy;
|
||||
extern Display *disp;
|
||||
|
||||
#define RROOT Dpy.rroot
|
||||
#define VROOT Dpy.vroot
|
||||
|
|
Loading…
Reference in New Issue