| Inline :: Struct Inline :: Struct is een PERL-module die C-structuren rechtstreeks uit Perl manipuleert. |
Download nu |
Inline :: Struct Rangschikking & Samenvatting
- Vergunning:
- Perl Artistic License
- Naam uitgever:
- Neil Watkiss
- Uitgever website:
- http://search.cpan.org/~neilw/Inline-ASM-0.03/ASM.pod
Inline :: Struct Tags
Inline :: Struct Beschrijving
Inline :: Struct is een Perl-module die C-structuren rechtstreeks van Perl manipuleert. Inline :: Struct is een Perl-module die C-structuren rechtstreeks uit Perl.Synopsis manipuleert, gebruik inline C => config => Structings => ; mijn $ obj = inline :: struct :: foo-> nieuw; $ obj-> num (10); $ obj-> str ("hallo"); myfunc ($ obj); __End__ __c__ struct foo {int num; Char * Str; }; VOID MYFUNC (FOO * F) {printf ("MyFunC: Num =% I, str = '% s'n", f-> num, f-> str); } Dit complete programma Prints: MyFunC: Num = 10, Str = 'Hallo'inline :: Struct is geen nieuwe taal. Het is een taalverlenging die is ontworpen om te worden gebruikt door inline :: c. Het parseert struct-definities en creëert typemaps en XS-code die elke struct in een perl-klasse bindt. Deze code wordt doorgegeven aan Inline :: C, die het op de normale manier compileert.Note: inline :: Structures alleen C-stijlstructies. Het weet niet over alle C ++ -extensies om als scopes, constructeurs of methoden te structureren. Als u deze functionaliteit wilt, zou u inline moeten gebruiken :: CPP om uw structuren te ontleden. REQUIRINGEN: · PERL-VEREISTEN: · Perl
Inline :: Struct Gerelateerde software