Joined: 09 Aug 2005
Location: Usono (aka, USA)
Traditional (ISO standards: 7185 or 10206) Pascal doesn't have bitwise operations, at least not natively. So "<< 8" would just be "* 256". Later non-standard variants (Turbo, Delphi) and offshoots (Modula-2, Oberon) either had explicit bitwise operators or library functions or offloaded such things to equivalent of a BITSET type. (See here or here or here for more.)
P.S. If the calling convention and object format (etc.) are compatible, most compilers let you link in compiled code from other languages. FPC and GPC already support C-based functions, so you don't have to manually convert it to Pascal, just make sure everything is declared and externed properly and just link it. It's not quite as easy as it sounds, but it's far from impossible and by default officially supported. For FPC, see here; for GPC, see here.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum