formalize standards support

Aperta
#454 10 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
15/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c
Ambito
build-system

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
C
Stelle
985
Fork
289
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di libgd/libgd

Tutte le issue di libgd/libgd

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.