70Fermer72
Lionel DebrouxLe 02/09/2010 à 14:40
A tout hasard, au lieu de
CmdLine->argv[CmdLine->argit];
essaie la macro DEREFSMALL (peu lisible, je sais grin) qui est notamment dans ExtGraph:
#ifndef __HAVE_DEREFSMALL
#define __HAVE_DEREFSMALL
//! Dereferences a pointer: DEREFSMALL(\a p,\a i) does the same as <code>p[i]</code>, but in a faster and smaller way.
// Doing the same thing using inline assembly saved ~100 bytes on an internal, buggy version of tthdex.
// Credits go to Kevin Kofler for its generic definition and the &* trick.
// 2.00 Beta 5: added ifndef/define pair so as to minimize incompatibility chances with the (same)
// definition that could be added to TIGCC some day.
#define DEREFSMALL(__p, __i) (*((typeof(&*(__p)))((unsigned char*)(__p)+(long)(short)((short)(__i)*sizeof(*(__p))))))
#endif


[EDIT: ajout de la partie non-Doxygen du commentaire.]