Skip to content

WIP: Convert to ANSI C#7

Draft
davy-tw wants to merge 5 commits intomasterfrom
feature/ansi-c
Draft

WIP: Convert to ANSI C#7
davy-tw wants to merge 5 commits intomasterfrom
feature/ansi-c

Conversation

@davy-tw
Copy link
Copy Markdown
Member

@davy-tw davy-tw commented Feb 15, 2022

close #5

Old-style function definitions will be deprecated in C23, so we have to migrate these old syntax to current style.

ref: https://en.cppreference.com/w/c/23

--

tested on:

# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/7/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=i686-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

@davy-tw
Copy link
Copy Markdown
Member Author

davy-tw commented Feb 24, 2022

note: pip 現在好像要多 -lc 才會 link,應該要再找時間研究一下

update: -lc 之後小雞遊戲正常運作,先當作會動好惹XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor into ISO C

1 participant