Skip to content

Perl2py #517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ disable=raw-checker-failed,
missing-module-docstring,
missing-class-docstring,
invalid-name,
global-variable-not-assigned,

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
4 changes: 2 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ man: asy sty
faq: asy sty
cd doc && $(MAKE) faq

$(RUNTIME_FILES:=.cc): %.cc: runtime.pl opsymbols.h runtimebase.in %.in
$(PERL) ./runtime.pl --prefix $(@:.cc=) --opsym-file opsymbols.h \
$(RUNTIME_FILES:=.cc): %.cc: runtime.py opsymbols.h runtimebase.in %.in
$(PYTHON) ./runtime.py --prefix $(@:.cc=) --opsym-file opsymbols.h \
--runtime-base-file runtimebase.in \
--src-template-dir . \
--header-out-dir . \
Expand Down
4 changes: 2 additions & 2 deletions cmake-scripts/generated-files.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ list(APPEND ASYMPTOTE_SYM_PROCESS_NEEDED_HEADERS ${GENERATED_INCLUDE_DIR}/opsymb
function(_int_add_runtime_file runtime_file)
set(RUNTIME_FILE_IN_BASE ${ASY_SRC_TEMPLATES_DIR}/${runtime_file})
set(RUNTIME_FILES_OUT ${GENERATED_SRC_DIR}/${runtime_file}.cc ${GENERATED_INCLUDE_DIR}/${runtime_file}.h)
set(RUNTIME_SCRIPT ${ASY_SCRIPTS_DIR}/runtime.pl)
set(RUNTIME_SCRIPT ${ASY_SCRIPTS_DIR}/runtime.py)
set(OPSYM_FILE ${GENERATED_INCLUDE_DIR}/opsymbols.h)
set(RUNTIME_BASE_FILE ${ASY_SRC_TEMPLATES_DIR}/runtimebase.in)
add_custom_command(
OUTPUT ${RUNTIME_FILES_OUT}
COMMAND ${PERL_INTERPRETER} ${RUNTIME_SCRIPT}
COMMAND ${PY3_INTERPRETER} ${RUNTIME_SCRIPT}
--opsym-file ${OPSYM_FILE}
--runtime-base-file ${RUNTIME_BASE_FILE}
--src-template-dir ${ASY_SRC_TEMPLATES_DIR}
Expand Down
11 changes: 4 additions & 7 deletions config.guess
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# shellcheck disable=SC2006,SC2268 # see below for rationale

timestamp='2024-07-27'
timestamp='2024-01-01'

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -123,7 +123,7 @@ set_cc_for_build() {
dummy=$tmp/dummy
case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
,,) echo "int x;" > "$dummy.c"
for driver in cc gcc c17 c99 c89 ; do
for driver in cc gcc c89 c99 ; do
if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
CC_FOR_BUILD=$driver
break
Expand Down Expand Up @@ -634,8 +634,7 @@ EOF
sed 's/^ //' << EOF > "$dummy.c"
#include <sys/systemcfg.h>

int
main ()
main()
{
if (!__power_pc())
exit(1);
Expand Down Expand Up @@ -719,8 +718,7 @@ EOF
#include <stdlib.h>
#include <unistd.h>

int
main ()
int main ()
{
#if defined(_SC_KERNEL_BITS)
long bits = sysconf(_SC_KERNEL_BITS);
Expand Down Expand Up @@ -1623,7 +1621,6 @@ cat > "$dummy.c" <<EOF
#endif
#endif
#endif
int
main ()
{
#if defined (sony)
Expand Down
Loading