mescc: Mes C Library: Cleanup includes.

* include/mes/lib-mini.h: Move from include/libmes-mini.h.  Update users.
* include/mes/lib.h: Move from include/libmes.h.  Update users.
This commit is contained in:
Jan Nieuwenhuizen 2019-05-08 00:25:41 +02:00
parent fb13083d08
commit 3ed82d7010
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
198 changed files with 216 additions and 210 deletions

View file

@ -18,8 +18,8 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __MES_LIBMES_MINI_H
#define __MES_LIBMES_MINI_H
#ifndef __MES_LIB_MINI_H
#define __MES_LIB_MINI_H
#if !WITH_GLIBC
@ -85,7 +85,8 @@ int oputs (char const* s);
#if !WITH_GLIBC
size_t strlen (char const* s);
ssize_t _write ();
ssize_t write (int filedes, void const *buffer, size_t size);
#endif // !WITH_GLIBC
#endif //__MES_LIBMES_MINI_H
#endif //__MES_LIB_MINI_H

View file

@ -18,10 +18,10 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __MES_LIBMES_H
#define __MES_LIBMES_H
#ifndef __MES_LIB_H
#define __MES_LIB_H
#include <libmes-mini.h>
#include <mes/lib-mini.h>
#if WITH_GLIBC
int mes_open (char const *file_name, int flags, ...);
@ -56,4 +56,4 @@ int oputc (int c);
int oputs (char const* s);
char *search_path (char const *file_name);
#endif //__MES_LIBMES_H
#endif //__MES_LIB_H

View file

@ -20,7 +20,7 @@
#ifndef __MES_STDIO_H
#define __MES_STDIO_H 1
#include <libmes.h>
#include <mes/lib.h>
#if WITH_GLIBC
#ifndef _GNU_SOURCE

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
long
abtol (char const **p, int base)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
isdigit (int c)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
isspace (int c)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
isxdigit (int c)

View file

@ -21,10 +21,10 @@
#include <sys/ioctl.h>
#include <stdarg.h>
#include <stdlib.h>
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
#include <libmes.h>
#include <mes/lib.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
double
__divdi3 (double a, double b)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <fcntl.h>
#include <limits.h>

View file

@ -23,7 +23,7 @@
// instead of calling main, it seems to call either _main or ___main,
// let's try _main first
#include <libmes-mini.h>
#include <mes/lib-mini.h>
int _main (int argc, char *argv[]);
void

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes-mini.h>
#include <mes/lib-mini.h>
//int main (int argc, char *argv[], char *envp[]);
void

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include "libmes-mini.h"
#include "mes/lib-mini.h"
int main (int argc, char *argv[], char *envp[]);

View file

@ -23,7 +23,7 @@
// instead of calling main, it seems to call either _main or ___main,
// let's try _main first
#include <libmes-mini.h>
#include <mes/lib-mini.h>
int main (int argc, char *argv[]);
// gcc x86_64 calling convention:

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes-mini.h>
#include <mes/lib-mini.h>
// int main (int argc, char *argv[]);
// gcc x86_64 calling convention:

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include "libmes-mini.h"
#include "mes/lib-mini.h"
int main (int argc, char *argv[], char *envp[]);
int

View file

@ -18,7 +18,8 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <ctype.h>
long
abtol (char const **p, int base)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
eputc (int c)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
eputs (char const* s)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <limits.h>
#include <sys/resource.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
fdputc (int c, int fd)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
fdputs (char const* s, int fd)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
fdungetc (int c, int fd)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
char *
itoa (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
char *
ltoa (long x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
char *
ltoab (long x, int base)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
char *
ntoab (long x, int base, int signed_p)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
oputc (int c)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
oputs (char const* s)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
char *
search_path (char const *file_name)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
char *
ultoa (unsigned long x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
char *
utoa (unsigned x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <unistd.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <unistd.h>
int

View file

@ -19,7 +19,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
//#if __GNUC__ && __x86_64__

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
size_t

View file

@ -18,6 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <mes/lib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>

View file

@ -18,8 +18,9 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdlib.h>
#include <mes/lib.h>
#include <stdarg.h>
#include <string.h>
int
vsnprintf (char *str, size_t size, char const* format, va_list ap)

View file

@ -18,6 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <mes/lib.h>
#include <stdarg.h>
#include <stdio.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
atoi (char const *s)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
void (*__call_at_exit) (void);

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
puts (char const* s)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdlib.h>
long

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
size_t
strlen (char const* s)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
__cleanup ()

View file

@ -1,6 +1,6 @@
/* -*-comment-start: "//";comment-end:""-*-
* GNU Mes --- Maxwell Equations of Software
* Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
* Copyright © 2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
*
* This file is part of GNU Mes.
*
@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
atof (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <unistd.h>
int

View file

@ -18,7 +18,8 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <time.h>
int
ctime (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
size_t

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
frexp (int x)

View file

@ -18,8 +18,8 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <stdio.h>
#include <mes/lib.h>
#include <unistd.h>
int
fscanf (FILE *stream, char const *template, ...)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <unistd.h>
char *

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <pwd.h>
struct passwd *

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <pwd.h>
struct passwd *

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <time.h>
#include <sys/time.h>

View file

@ -18,8 +18,8 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <stdlib.h>
#include <mes/lib.h>
#include <math.h>
double
ldexp (double x, int exp)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <time.h>
#include <sys/time.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <string.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
pclose (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
popen (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <pwd.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
rewind (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
setbuf (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <locale.h>
char *

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <signal.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <signal.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <signal.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <signal.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <signal.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
sigsetmask (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
size_t
strftime (char *s, size_t size, char const *template,

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdlib.h>
double

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
sys_siglist (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
system (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <sys/times.h>
#include <sys/time.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <unistd.h>
char *

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
umask (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
int
utime (int x)

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <assert.h>
#include <stdio.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <dirent.h>
#include <errno.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes-mini.h>
#include <mes/lib-mini.h>
#if 0
#include <linux/x86_64/syscall.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <string.h>
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include "libmes.h"
#include "mes/lib.h"
#include "stdlib.h"
int

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdlib.h>
#include <stdio.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
#include <string.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
#include <string.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
#include <string.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
#include <stdarg.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <fcntl.h>
#include <unistd.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>

View file

@ -18,7 +18,7 @@
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libmes.h>
#include <mes/lib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>

View file

@ -22,7 +22,7 @@
#error "WITH_GLIBC not supported"
#endif
#include <libmes.h>
#include <mes/lib.h>
#include <stdio.h>
#include <stdlib.h>

Some files were not shown because too many files have changed in this diff Show more