1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Rename include to jit.h, move all files to jit/

This change is in anticipation of making this lightning fork into an
include-only library.
This commit is contained in:
Andy Wingo 2018-10-30 12:16:35 +01:00
parent a5263b6618
commit 796ec6c16d
65 changed files with 49 additions and 127 deletions

View file

@ -1,19 +0,0 @@
#
# Copyright 2000, 2001, 2002, 2012-2017 Free Software Foundation, Inc.
#
# This file is part of GNU lightning.
#
# GNU lightning is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# GNU lightning is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
#
include_HEADERS = lightning.h
SUBDIRS = \
lightning

View file

@ -1,61 +0,0 @@
#
# Copyright 2000, 2001, 2002, 2012-2017 Free Software Foundation, Inc.
#
# This file is part of GNU lightning.
#
# GNU lightning is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# GNU lightning is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
#
lightning_includedir = $(includedir)/lightning
EXTRA_DIST = \
jit_private.h
if cpu_arm
lightning_include_HEADERS = \
jit_arm.h
endif
if cpu_mips
lightning_include_HEADERS = \
jit_mips.h
endif
if cpu_ppc
lightning_include_HEADERS = \
jit_ppc.h
endif
if cpu_sparc
lightning_include_HEADERS = \
jit_sparc.h
endif
if cpu_x86
lightning_include_HEADERS = \
jit_x86.h
endif
if cpu_ia64
lightning_include_HEADERS = \
jit_ia64.h
endif
if cpu_hppa
lightning_include_HEADERS = \
jit_hppa.h
endif
if cpu_aarch64
lightning_include_HEADERS = \
jit_aarch64.h
endif
if cpu_s390
lightning_include_HEADERS = \
jit_s390.h
endif
if cpu_alpha
lightning_include_HEADERS = \
jit_alpha.h
endif

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2012-2017 Free Software Foundation, Inc.
* Copyright (C) 2012-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,8 +17,8 @@
* Paulo Cesar Pereira de Andrade
*/
#ifndef _lightning_h
#define _lightning_h
#ifndef _jit_h
#define _jit_h
#if HAVE_CONFIG_H
# include "config.h"
@ -133,25 +133,25 @@ typedef jit_int32_t jit_gpr_t;
typedef jit_int32_t jit_fpr_t;
#if defined(__i386__) || defined(__x86_64__)
# include <lightning/jit_x86.h>
# include <jit/jit_x86.h>
#elif defined(__mips__)
# include <lightning/jit_mips.h>
# include <jit/jit_mips.h>
#elif defined(__arm__)
# include <lightning/jit_arm.h>
# include <jit/jit_arm.h>
#elif defined(__ppc__) || defined(__powerpc__)
# include <lightning/jit_ppc.h>
# include <jit/jit_ppc.h>
#elif defined(__sparc__)
# include <lightning/jit_sparc.h>
# include <jit/jit_sparc.h>
#elif defined(__ia64__)
# include <lightning/jit_ia64.h>
# include <jit/jit_ia64.h>
#elif defined(__hppa__)
# include <lightning/jit_hppa.h>
# include <jit/jit_hppa.h>
#elif defined(__aarch64__)
# include <lightning/jit_aarch64.h>
# include <jit/jit_aarch64.h>
#elif defined(__s390__) || defined(__s390x__)
# include <lightning/jit_s390.h>
# include <jit/jit_s390.h>
#elif defined(__alpha__)
# include <lightning/jit_alpha.h>
# include <jit/jit_alpha.h>
#endif
#define jit_flag_node 0x0001 /* patch node not absolute */
@ -1095,4 +1095,4 @@ extern void jit_get_memory_functions(jit_alloc_func_ptr*,
jit_realloc_func_ptr*,
jit_free_func_ptr*);
#endif /* _lightning_h */
#endif /* _jit_h */

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2012-2017 Free Software Foundation, Inc.
* Copyright (C) 2012-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,8 +17,8 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include "jit.h"
#include "jit/jit_private.h"
#if DISASSEMBLER
# include <dis-asm.h>
#endif

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2017 Free Software Foundation, Inc.
* Copyright (C) 2013-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,8 +17,8 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include "jit.h"
#include "jit/jit_private.h"
#define jit_arg_reg_p(i) (i >= 0 && i < 4)

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2017 Free Software Foundation, Inc.
* Copyright (C) 2013-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,8 +17,8 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include "jit.h"
#include "jit/jit_private.h"
#define jit_arg_reg_p(i) ((i) >= 0 && (i) < 8)
#if __BYTE_ORDER == __LITTLE_ENDIAN

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2017 Free Software Foundation, Inc.
* Copyright (C) 2013-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,10 +17,11 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include <sys/mman.h>
#include "jit.h"
#include "jit/jit_private.h"
/*
* Prototypes
*/

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2017 Free Software Foundation, Inc.
* Copyright (C) 2013-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,8 +17,8 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include "jit.h"
#include "jit/jit_private.h"
/*
* Prototypes

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2012-2017 Free Software Foundation, Inc.
* Copyright (C) 2012-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,8 +17,8 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include "jit.h"
#include "jit/jit_private.h"
#define print_chr(value) fputc(value, stdout)
#define print_hex(value) fprintf(stdout, "0x%lx", value)

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2017 Free Software Foundation, Inc.
* Copyright (C) 2015-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,8 +17,8 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include "jit.h"
#include "jit/jit_private.h"
#if PROTO
# define free_synth_list(node) _free_synth_list(_jit,node)

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2017 Free Software Foundation, Inc.
* Copyright (C) 2013-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,8 +17,8 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include "jit.h"
#include "jit/jit_private.h"
#if __WORDSIZE == 32
# define NUM_FLOAT_REG_ARGS 2

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2013-2017 Free Software Foundation, Inc.
* Copyright (C) 2013-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,8 +17,8 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include "jit.h"
#include "jit/jit_private.h"
#if GET_JIT_SIZE
# include <stdio.h>
#endif

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2012-2017 Free Software Foundation, Inc.
* Copyright (C) 2012-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,8 +17,8 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include "jit.h"
#include "jit/jit_private.h"
#if __X32
# define jit_arg_reg_p(i) 0

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2012-2017 Free Software Foundation, Inc.
* Copyright (C) 2012-2018 Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
@ -17,13 +17,14 @@
* Paulo Cesar Pereira de Andrade
*/
#include <lightning.h>
#include <lightning/jit_private.h>
#include <sys/mman.h>
#if defined(__sgi)
# include <fcntl.h>
#endif
#include "jit.h"
#include "jit/jit_private.h"
#ifndef MAP_ANON
# define MAP_ANON MAP_ANONYMOUS
# ifndef MAP_ANONYMOUS