Page 1 of 1

Impossible d'utiliser "..." avec le compilateur C sur Projec

Unread postPosted: 16 Feb 2020, 06:45
by mirandazellnik
Désolé, je ne parle pas français, j'utilise Google Translate pour écrire ceci. Fondamentalement, sur le "Project Builder", je veux créer une fonction qui se comporte comme un "Printf" qui tient compte des lignes d'habillage et du formatage. Cependant, je ne peux pas comprendre comment, avec votre compilateur C, créer une fonction qui accepte "..." comme arguments, car dans votre GitHub, je vois que vous n'en aviez aucun exemple au format C, juste .src format. Toute aide serait grandement appréciée. Je sais qu'il y a un "sprintf" et "vsprintf" mais pour créer une fonction qui formate, ALORS imprime, dans une fonction, ne fonctionne pas car le "..." se traduit simplement par un caractère aléatoire. S'il vous plaît aider? !!

Re: Impossible d'utiliser "..." avec le compilateur C sur Pr

Unread postPosted: 16 Feb 2020, 07:19
by Hamza.S
You Can write in english

Re: Impossible d'utiliser "..." avec le compilateur C sur Pr

Unread postPosted: 16 Feb 2020, 07:52
by Adriweb
Jacobly fixed something yesterday in the compiler about the printf family functions. This might solve your issue once it's available. Maybe it will Be in the next few days.

Edit: actually no, the issue wasn't found/fixed, so for now it will probably remain unless it was a side effect of something else.
Edit 2 : I reproduced some issue with variadic functions, and jacobly is now aware of it :)

Re: Impossible d'utiliser "..." avec le compilateur C sur Pr

Unread postPosted: 16 Feb 2020, 22:31
by Adriweb
Jacobly updated stdarg.h in the LLVM toolchain, and I updated the PB, things look better now :)