jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.9.1 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
lokulin has quit [Ping timeout: 260 seconds]
lokulin has joined #crystal-lang
azgil has quit [Ping timeout: 246 seconds]
victor_lowther_ has quit [Read error: Connection reset by peer]
victor_lowther_ has joined #crystal-lang
<jwaldrip> how do examples like this work? https://github.com/manastech/crystal_lib/blob/4ffaa60e89054a390c79ec53327958e637ec810f/examples/lib_git2.cr I see no functions defined. Are the functions in libgit2 just available to me now?
<CompanionCube> jwaldrip: that file isn't fed directly to crystal
<CompanionCube> it's fed to crystal_lib which generates the 'actual' code
<CompanionCube> as for how to use the generated code, lookup C bindings in the docs
<jwaldrip> CompanionCube: good to know, I am now trying to generate some code, I have a libary at a relative path. When I try to use include like this: `@[Include("./libgraphqlparser/c/GraphQLAst.h")]` i get `input.c:1:10: error: 'libgraphqlparser/c/GraphQLAst.h' file not found with <angled> include; use "quotes" instead`
<CompanionCube> jwaldrip: You can add to the include path
<jwaldrip> check, got that far.
<jwaldrip> looked deeper into some of the examples
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 264 seconds]
tomchapin has joined #crystal-lang
sorbo_ has quit []
fowlduck has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fowlduck has quit [Ping timeout: 260 seconds]
Bofu2U has joined #crystal-lang
CompanionCube has quit [Ping timeout: 260 seconds]
trapped has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 246 seconds]
trapped has quit [Quit: Textual IRC Client: www.textualapp.com]
Ven has joined #crystal-lang
guilleiguaran__ has quit [Ping timeout: 260 seconds]
guilleiguaran__ has joined #crystal-lang
ponga has joined #crystal-lang
daveshah has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fowlduck has joined #crystal-lang
daveshah has quit [Read error: Connection reset by peer]
daveshah has joined #crystal-lang
fowlduck has quit [Ping timeout: 246 seconds]
trapped has joined #crystal-lang
daveshah has quit [Remote host closed the connection]
guilleiguaran__ has quit [Ping timeout: 264 seconds]
guilleiguaran__ has joined #crystal-lang
lokulin has quit [Changing host]
lokulin has joined #crystal-lang
Keziolio has joined #crystal-lang
Ven has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
CompanionCube has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
ozra has joined #crystal-lang
daveshah has joined #crystal-lang
vifino has quit [Ping timeout: 246 seconds]
vifino has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
wminor___ has joined #crystal-lang
wminor__ has quit [Ping timeout: 264 seconds]
Papierkorb has quit [Ping timeout: 245 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Papierkorb has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
trapped has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fowlduck has joined #crystal-lang
shama has joined #crystal-lang
fowlduck has quit [Ping timeout: 256 seconds]
ponga has quit [Quit: Connection closed for inactivity]
trapped has quit [Quit: Textual IRC Client: www.textualapp.com]
trapped has joined #crystal-lang
fowlduck has joined #crystal-lang
wmoxam_ is now known as wmoxam
wmoxam has quit [Changing host]
wmoxam has joined #crystal-lang
fowlduck has quit [Ping timeout: 272 seconds]
daveshah has quit [Remote host closed the connection]
daveshah has joined #crystal-lang
CompanionCube has quit [Ping timeout: 264 seconds]
CompanionCube has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
tomchapin has joined #crystal-lang
sdogruyol has joined #crystal-lang
shama has quit [Ping timeout: 250 seconds]
shama has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fowlduck has joined #crystal-lang
tomchapin has joined #crystal-lang
slash_me is now known as slash_nick
ozra has quit [Ping timeout: 252 seconds]
fowlduck has quit [Remote host closed the connection]
dylanmei has joined #crystal-lang
sdogruyol has quit []
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ozra has joined #crystal-lang
fowlduck has joined #crystal-lang
daveshah has quit [Remote host closed the connection]
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
tomchapin has joined #crystal-lang
aladagemre has joined #crystal-lang
<aladagemre> hi, is it possible to bind C libraries that contain lower case structs?
<jhass> aladagemre: the type names don't have to match
<jhass> so yes
<aladagemre> but what about struct? we can't say struct lowercasestr
<jhass> but we don't have to
<jhass> there's no need to match up the names
<jhass> only the order base types of the fields have to match
<jhass> actually not even that, you can have a single dummy member of UInt8[struct_size] even if you don't need the members
<jhass> or even alias it to Void or Void* if you don't need to allocate it yourself
<jhass> *order and base types
<aladagemre> hmm thanks let me look at it
<aladagemre> it seems working. thanks so much :)
<jhass> <3
<aladagemre> Now I have to use @[Include(...)] but it says: illegal attribute for lib, valid attributes are: Link. What's my mistake
<aladagemre> I want to use a .h file
<aladagemre> I'm running the code : crystal run main.cr where main has require mylibfile with Include
<jhass> crystal_lib isn't integrated into the compiler yet
<aladagemre> hm ok I have to run their scripts to run it
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
aladagem_ has joined #crystal-lang
aladage__ has joined #crystal-lang
aladagemre has quit [Ping timeout: 256 seconds]
aladagem_ has quit [Ping timeout: 240 seconds]