formalize standards support

Đang mở
#454 10 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
15/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c
Lĩnh vực
build-system

Hướng nghiên cứu

Start with the build files, looking for -ansi, -pedantic and where CFLAGS is set, since the proposal asks to drop the former and add -std=c99. The platform questions (netware #294, VMS #453) and the Visual Studio check need maintainer decisions before any edit, and the thread has been idle for years. Done means the flags are updated across build files only after the maintainers agree on the supported platforms and compilers.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

i propose we require C99 in GD-2.3+. it's the default in gcc/clang and has been for some time, and none of us are really testing elsewhere.

are there any platforms we care about anymore where this would be a problem ?

i don't think embedded systems (https://github.com/libgd/libgd/issues/169#issuecomment-225336212) should be an issue here ... C99 compilers aren't a new thing.

we should double check Visual Studio status and probably formalize that supported version too.

more concretely:

  • drop usage/support for -ansi and -pedantic everywhere
  • drop support for netware (#294)
  • drop support for VMS (#453)
  • add -std=c99 to CFLAGS in our build files

this should help simplify #451 (trailing commas w/enums).

Ngôn ngữ chính
C
Star
985
Fork
289
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của libgd/libgd

Tất cả issue của libgd/libgd

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.