Skip to content

Commit

Permalink
Remove .internal from more header filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Aug 4, 2024
1 parent c265c17 commit 3119416
Show file tree
Hide file tree
Showing 734 changed files with 779 additions and 778 deletions.
2 changes: 1 addition & 1 deletion ape/ape.S
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "libc/calls/metalfile.internal.h"
#include "libc/dce.h"
#include "libc/elf/def.h"
#include "libc/macho.internal.h"
#include "libc/macho.h"
#include "libc/nexgen32e/uart.internal.h"
#include "libc/nt/pedef.internal.h"
#include "libc/runtime/pc.internal.h"
Expand Down
2 changes: 1 addition & 1 deletion ape/launch.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/macros.internal.h"
#include "libc/macros.h"

// Calls _start() function of loaded program.
//
Expand Down
4 changes: 2 additions & 2 deletions ape/loader-macho.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/macho.internal.h"
#include "libc/macho.h"
#include "libc/sysv/consts/prot.h"
#include "libc/dce.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"

// Apple Mach-O Executable Headers
// Fixups are applied by objbincopy
Expand Down
2 changes: 1 addition & 1 deletion ape/macros.internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
╚─────────────────────────────────────────────────────────────────────────────*/
#ifndef APE_MACROS_H_
#define APE_MACROS_H_
#include "libc/macros.internal.h"
#include "libc/macros.h"
#ifdef __ASSEMBLER__
/* clang-format off */

Expand Down
2 changes: 1 addition & 1 deletion ape/start.S
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/dce.h"
#include "ape/ape.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"

#ifdef __aarch64__

Expand Down
2 changes: 1 addition & 1 deletion ape/systemcall.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/macros.internal.h"
#include "libc/macros.h"

// Invokes system call.
//
Expand Down
2 changes: 1 addition & 1 deletion dsp/core/c161.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef COSMOPOLITAN_DSP_CORE_C161_H_
#define COSMOPOLITAN_DSP_CORE_C161_H_
#include "libc/macros.internal.h"
#include "libc/macros.h"

#define EXTRA_SHARP 2

Expand Down
2 changes: 1 addition & 1 deletion dsp/core/c161s.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef COSMOPOLITAN_DSP_CORE_C161S_H_
#define COSMOPOLITAN_DSP_CORE_C161S_H_
#include "dsp/core/c161.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"

__funline signed char C161S(signed char al, signed char bl, signed char cl) {
short ax, bx, cx;
Expand Down
2 changes: 1 addition & 1 deletion dsp/core/double2byte.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "dsp/core/core.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"
#include "libc/mem/mem.h"

Expand Down
2 changes: 1 addition & 1 deletion dsp/core/float2short.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/limits.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"
#include "libc/str/str.h"

Expand Down
2 changes: 1 addition & 1 deletion dsp/core/getintegercoefficients.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "libc/assert.h"
#include "libc/dce.h"
#include "libc/limits.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"
#include "libc/str/str.h"

Expand Down
2 changes: 1 addition & 1 deletion dsp/core/getintegercoefficients8.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "dsp/core/core.h"
#include "dsp/core/q.h"
#include "libc/dce.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"
#include "libc/str/str.h"

Expand Down
2 changes: 1 addition & 1 deletion dsp/core/half.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef COSMOPOLITAN_DSP_CORE_HALF_H_
#define COSMOPOLITAN_DSP_CORE_HALF_H_
#include "libc/macros.internal.h"
#include "libc/macros.h"

/**
* Divides integer in half w/ rounding.
Expand Down
2 changes: 1 addition & 1 deletion dsp/core/ks8.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef COSMOPOLITAN_DSP_CORE_KS8_H_
#define COSMOPOLITAN_DSP_CORE_KS8_H_
#include "libc/macros.internal.h"
#include "libc/macros.h"

/**
* Performs 16-bit scaled rounded madd w/ eight coefficients or fewer.
Expand Down
2 changes: 1 addition & 1 deletion dsp/core/kss8.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef COSMOPOLITAN_DSP_CORE_KSS8_H_
#define COSMOPOLITAN_DSP_CORE_KSS8_H_
#include "libc/limits.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"

/**
* Performs 16-bit scaled rounded saturated madd w/ eight coefficients or fewer.
Expand Down
2 changes: 1 addition & 1 deletion dsp/core/q.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef COSMOPOLITAN_DSP_CORE_Q_H_
#define COSMOPOLITAN_DSP_CORE_Q_H_
#include "libc/limits.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"

/**
Expand Down
2 changes: 1 addition & 1 deletion dsp/core/sad16x8n.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
╚─────────────────────────────────────────────────────────────────────────────*/
#include "dsp/core/core.h"
#include "libc/limits.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "third_party/aarch64/arm_neon.internal.h"
#include "third_party/intel/emmintrin.internal.h"

Expand Down
2 changes: 1 addition & 1 deletion dsp/mpeg/clamp4int256-core.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/macros.internal.h"
#include "libc/macros.h"

clamp4int256$core:
.leafprologue
Expand Down
2 changes: 1 addition & 1 deletion dsp/mpeg/mpeg1.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "libc/calls/struct/timespec.h"
#include "libc/fmt/conv.h"
#include "libc/log/log.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"
#include "libc/mem/mem.h"
#include "libc/str/str.h"
Expand Down
2 changes: 1 addition & 1 deletion dsp/mpeg/slowrgb.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
│ SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "dsp/mpeg/mpeg.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
__static_yoink("pl_mpeg_notice");

/**
Expand Down
2 changes: 1 addition & 1 deletion dsp/scale/gyarados.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "libc/limits.h"
#include "libc/log/check.h"
#include "libc/log/log.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"
#include "libc/mem/gc.h"
#include "libc/mem/mem.h"
Expand Down
2 changes: 1 addition & 1 deletion dsp/scale/magikarp.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "dsp/core/ks8.h"
#include "dsp/core/kss8.h"
#include "dsp/scale/cdecimate2xuint8x8.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/nexgen32e/x86feature.h"
#include "libc/str/str.h"
#include "libc/x/x.h"
Expand Down
2 changes: 1 addition & 1 deletion dsp/tty/mpsadbw.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/macros.internal.h"
#include "libc/macros.h"

// TODO(jart): write me

Expand Down
2 changes: 1 addition & 1 deletion dsp/tty/rgb2ansi.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "libc/assert.h"
#include "libc/limits.h"
#include "libc/log/log.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"
#include "libc/str/str.h"

Expand Down
2 changes: 1 addition & 1 deletion dsp/tty/rgb2ttyi2f.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
╚─────────────────────────────────────────────────────────────────────────────*/
#include "dsp/tty/quant.h"
#include "libc/log/check.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"

struct TtyRgb rgb2ttyi2f_(int r, int g, int b) {
return rgb2ttyf((ttyrgb_m128){r, g, b} / 255);
Expand Down
2 changes: 1 addition & 1 deletion dsp/tty/rgb2xterm24.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "dsp/tty/quant.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"

struct TtyRgb rgb2xterm24_(int r, int g, int b) {
return (struct TtyRgb){MAX(MIN(r, 255), 0), MAX(MIN(g, 255), 0),
Expand Down
2 changes: 1 addition & 1 deletion dsp/tty/rgb2xterm24f.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "dsp/tty/quant.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"
#include "third_party/intel/xmmintrin.internal.h"

Expand Down
2 changes: 1 addition & 1 deletion dsp/tty/ttyraster.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "libc/limits.h"
#include "libc/log/check.h"
#include "libc/log/log.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"
#include "libc/nexgen32e/x86feature.h"
#include "libc/runtime/runtime.h"
Expand Down
2 changes: 1 addition & 1 deletion dsp/tty/ttyraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "libc/calls/termios.h"
#include "libc/calls/ucontext.h"
#include "libc/log/log.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/mem/gc.h"
#include "libc/runtime/runtime.h"
#include "libc/str/str.h"
Expand Down
2 changes: 1 addition & 1 deletion dsp/tty/windex-avx2.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/macros.internal.h"
#include "libc/macros.h"

// Returns index of minimum uint16 in array.
//
Expand Down
2 changes: 1 addition & 1 deletion dsp/tty/windex-sse4.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/macros.internal.h"
#include "libc/macros.h"

// Returns index of minimum positive int16 in array.
//
Expand Down
2 changes: 1 addition & 1 deletion examples/date.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "libc/calls/calls.h"
#include "libc/calls/struct/timespec.h"
#include "libc/intrin/kprintf.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/nt/enum/timezoneid.h"
#include "libc/nt/struct/timezoneinformation.h"
#include "libc/nt/time.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/nc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "libc/calls/calls.h"
#include "libc/fmt/conv.h"
#include "libc/log/log.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/runtime/runtime.h"
#include "libc/sock/sock.h"
#include "libc/sock/struct/linger.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/nesemu1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "libc/inttypes.h"
#include "libc/log/check.h"
#include "libc/log/log.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/math.h"
#include "libc/mem/arraylist2.internal.h"
#include "libc/mem/mem.h"
Expand All @@ -47,7 +47,7 @@
#include "libc/time.h"
#include "libc/x/xasprintf.h"
#include "libc/x/xsigaction.h"
#include "libc/zip.internal.h"
#include "libc/zip.h"
#include "third_party/getopt/getopt.internal.h"
#include "third_party/libcxx/vector"
#include "tool/viz/lib/knobs.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/package/lib/myasm.S
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "libc/macros.internal.h"
#include "libc/macros.h"

// Example assembly function.
//
Expand Down
2 changes: 1 addition & 1 deletion examples/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "libc/fmt/conv.h"
#include "libc/intrin/bswap.h"
#include "libc/log/bsd.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/mem/mem.h"
#include "libc/paths.h"
#include "libc/runtime/runtime.h"
Expand Down
2 changes: 1 addition & 1 deletion libc/calls/CPU_AND.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/calls/struct/cpuset.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"

void CPU_AND(cpu_set_t *d, cpu_set_t *x, cpu_set_t *y) {
int i;
Expand Down
2 changes: 1 addition & 1 deletion libc/calls/CPU_COUNT.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/calls/struct/cpuset.h"
#include "libc/intrin/popcnt.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"

int CPU_COUNT(cpu_set_t *set) {
int i, c;
Expand Down
2 changes: 1 addition & 1 deletion libc/calls/CPU_OR.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/calls/struct/cpuset.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"

void CPU_OR(cpu_set_t *d, cpu_set_t *x, cpu_set_t *y) {
int i;
Expand Down
2 changes: 1 addition & 1 deletion libc/calls/CPU_XOR.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/calls/struct/cpuset.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"

void CPU_XOR(cpu_set_t *d, cpu_set_t *x, cpu_set_t *y) {
int i;
Expand Down
2 changes: 1 addition & 1 deletion libc/calls/chdir-nt.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/calls/syscall_support-nt.internal.h"
#include "libc/errno.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/nt/errors.h"
#include "libc/nt/files.h"
#include "libc/nt/process.h"
Expand Down
2 changes: 1 addition & 1 deletion libc/calls/clock_gettime-xnu.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "libc/calls/struct/timeval.h"
#include "libc/calls/struct/timeval.internal.h"
#include "libc/errno.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/sysv/consts/clock.h"
#ifdef __x86_64__

Expand Down
2 changes: 1 addition & 1 deletion libc/calls/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
│ PERFORMANCE OF THIS SOFTWARE. │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "libc/calls/calls.h"
#include "libc/macros.internal.h"
#include "libc/macros.h"
#include "libc/runtime/runtime.h"

/**
Expand Down
Loading

0 comments on commit 3119416

Please sign in to comment.