![]() Pour générer le script configure, on utilise l’outil phpize. On lance le script configure pour génerer le makefile. $./configureĬhecking for grep that handles long lines and -e. bin/grepĬhecking for a sed that does not truncate output. bin/sedĬhecking whether the C compiler works. YesĬhecking for C compiler default output file name. a.outĬhecking whether we are cross compiling. noĬhecking whether we are using the GNU C compiler. yesĬhecking for cc option to accept ISO C89. none neededĬhecking how to run the C preprocessor. cc -EĬhecking whether cc understands -c and -o together. yesĬhecking for system library directory. libĬhecking if compiler supports -Wl,-rpath. x86_64-unknown-linux-gnuĬhecking host system type. x86_64-unknown-linux-gnuĬhecking target system type. x86_64-unknown-linux-gnuĬhecking for PHP includes. I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/libĬhecking for PHP extension directory. usr/lib/php5/20090626Ĭhecking for PHP installed headers prefix. usr/include/php5Ĭonfigure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.Ĭhecking for a sed that does not truncate output. (cached) /bin/sedĬhecking for ld used by cc. usr/bin/ldĬhecking if the linker (/usr/bin/ld) is GNU ld. yesĬhecking for BSD- or MS-compatible name lister (nm). usr/bin/nm -BĬhecking the name lister (/usr/bin/nm -B) interface. ![]() BSD nmĬhecking the maximum length of command line arguments. 1572864Ĭhecking whether the shell understands some XSI constructs. yesĬhecking whether the shell understands "+=". Same logic applies to all other PureBasic objects.YesĬhecking for /usr/bin/ld option to reload object files. ![]() The static, indexed way, allows you to reference an object by a predefined When creating an Image object, weĬan do it in two ways: indexed and dynamic. ![]() This means that if you use the number 0 and then The first available index number is 0 and subsequent indexesĪre allocated sequentially. The indexed way offers several advantages: More flexible method, use the dynamic way of allocating objects, as described The number 1000, 1001 indexes will be allocated and 999 (from 1 to 999) willīe unused, which is not an efficient way to use indexed objects. Easier handling, since no variables or arrays are required. 'Group' processing, without the need to use an intermediate array. Use the object in procedures without declaring anything in global (if using a constant or a number). Sometimes, indexed numbering isn't very handy to handle dynamic situations where we need You plan to use sequential constants to identify your objects (which is alsoĮxample CreateImage(0, 640, 480) Create an image, the n☀ ResizeImage(0, 320, 240) Resize the n☀ imageĮxample CreateImage(2, 640, 480) Create an image, the n☂ ResizeImage(2, 320, 240) Resize the n☂ image CreateImage(2, 800, 800) Create a new image in the n☂ index, the old one is automatically free'edĬreateImage(k, 640, 480) Create 10 different images, numbered from 0 to 9 ResizeImage(k, 320, 240) Create a new image in the n☂ index, the old one is automatically free'ed NextĬreateImage( #ImageBackground, 640, 480) Create an image (n☀) ResizeImage( #ImageBackground, 320, 240) Resize the background image CreateImage( #ImageButton, 800, 800) Create an image (n☁) The maximum index number is limited to an upper bound, depending of the object An object that is associated with an index is automatically freed when reusing that index. PureBasic provides an easy and complementary way To deal with an unknown number of objects. Then just use this number with the other object functions in the place The #PB_Any constant instead of the indexed number, and the dynamic number will be returned as To create a dynamic object, you just have to specify Both methods (indexed and dynamic) can be used togetherĪt the same time without any conflict.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |