mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-25 07:19:02 +00:00
Remove evil constants from cosmopolitan.h
- `I` a.k.a. `_Complex_I` (fixes #705) - `B0`, `B50`, etc. (fixes #403)
This commit is contained in:
parent
3da887c58f
commit
120079b0a6
8 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
#ifndef COSMOPOLITAN_LIBC_CALLS_TTYDEFAULTS_H_
|
#ifndef COSMOPOLITAN_LIBC_CALLS_TTYDEFAULTS_H_
|
||||||
#define COSMOPOLITAN_LIBC_CALLS_TTYDEFAULTS_H_
|
#define COSMOPOLITAN_LIBC_CALLS_TTYDEFAULTS_H_
|
||||||
#include "libc/sysv/consts/baud.h"
|
#include "libc/sysv/consts/baud.internal.h"
|
||||||
#include "libc/sysv/consts/termios.h"
|
#include "libc/sysv/consts/termios.h"
|
||||||
|
|
||||||
#define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY)
|
#define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef LIBC_ISYSTEM_COMPLEX_H_
|
#ifndef LIBC_ISYSTEM_COMPLEX_H_
|
||||||
#define LIBC_ISYSTEM_COMPLEX_H_
|
#define LIBC_ISYSTEM_COMPLEX_H_
|
||||||
#include "libc/complex.h"
|
#include "libc/complex.h"
|
||||||
#include "libc/imag.h"
|
#include "libc/imag.internal.h"
|
||||||
#include "libc/math.h"
|
#include "libc/math.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
#define COSMOPOLITAN_LIBC_ISYSTEM_TERMIOS_H_
|
#define COSMOPOLITAN_LIBC_ISYSTEM_TERMIOS_H_
|
||||||
#include "libc/calls/termios.h"
|
#include "libc/calls/termios.h"
|
||||||
#include "libc/calls/weirdtypes.h"
|
#include "libc/calls/weirdtypes.h"
|
||||||
#include "libc/sysv/consts/baud.h"
|
#include "libc/sysv/consts/baud.internal.h"
|
||||||
#include "libc/sysv/consts/termios.h"
|
#include "libc/sysv/consts/termios.h"
|
||||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_TERMIOS_H_ */
|
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_TERMIOS_H_ */
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef LIBC_ISYSTEM_TGMATH_H_
|
#ifndef LIBC_ISYSTEM_TGMATH_H_
|
||||||
#define LIBC_ISYSTEM_TGMATH_H_
|
#define LIBC_ISYSTEM_TGMATH_H_
|
||||||
#include "libc/complex.h"
|
#include "libc/complex.h"
|
||||||
#include "libc/imag.h"
|
#include "libc/imag.internal.h"
|
||||||
#include "libc/math.h"
|
#include "libc/math.h"
|
||||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||||
#if __STDC_VERSION__ + 0 >= 201112
|
#if __STDC_VERSION__ + 0 >= 201112
|
||||||
|
|
2
third_party/python/Modules/termios.c
vendored
2
third_party/python/Modules/termios.c
vendored
|
@ -9,7 +9,7 @@
|
||||||
#include "libc/calls/ttydefaults.h"
|
#include "libc/calls/ttydefaults.h"
|
||||||
#include "libc/calls/weirdtypes.h"
|
#include "libc/calls/weirdtypes.h"
|
||||||
#include "libc/dce.h"
|
#include "libc/dce.h"
|
||||||
#include "libc/sysv/consts/baud.h"
|
#include "libc/sysv/consts/baud.internal.h"
|
||||||
#include "libc/sysv/consts/fio.h"
|
#include "libc/sysv/consts/fio.h"
|
||||||
#include "libc/sysv/consts/modem.h"
|
#include "libc/sysv/consts/modem.h"
|
||||||
#include "libc/sysv/consts/pty.h"
|
#include "libc/sysv/consts/pty.h"
|
||||||
|
|
2
third_party/zip/ttyio.c
vendored
2
third_party/zip/ttyio.c
vendored
|
@ -134,7 +134,7 @@
|
||||||
# ifdef HAVE_TERMIOS_H
|
# ifdef HAVE_TERMIOS_H
|
||||||
#include "libc/calls/termios.h"
|
#include "libc/calls/termios.h"
|
||||||
#include "libc/calls/weirdtypes.h"
|
#include "libc/calls/weirdtypes.h"
|
||||||
#include "libc/sysv/consts/baud.h"
|
#include "libc/sysv/consts/baud.internal.h"
|
||||||
#include "libc/sysv/consts/termios.h"
|
#include "libc/sysv/consts/termios.h"
|
||||||
# define sgttyb termios
|
# define sgttyb termios
|
||||||
# define sg_flags c_lflag
|
# define sg_flags c_lflag
|
||||||
|
|
Loading…
Add table
Reference in a new issue