00:33
lokulin has quit [Ping timeout: 260 seconds]
00:34
lokulin has joined #crystal-lang
00:39
azgil has quit [Ping timeout: 246 seconds]
01:32
victor_lowther_ has quit [Read error: Connection reset by peer]
01:32
victor_lowther_ has joined #crystal-lang
02:16
<
CompanionCube >
jwaldrip: that file isn't fed directly to crystal
02:16
<
CompanionCube >
it's fed to crystal_lib which generates the 'actual' code
02:17
<
CompanionCube >
as for how to use the generated code, lookup C bindings in the docs
02:31
<
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`
02:49
<
CompanionCube >
jwaldrip: You can add to the include path
02:49
<
jwaldrip >
check, got that far.
02:50
<
jwaldrip >
looked deeper into some of the examples
03:13
fowlduck has joined #crystal-lang
03:18
fowlduck has quit [Ping timeout: 264 seconds]
03:43
tomchapin has joined #crystal-lang
04:38
fowlduck has joined #crystal-lang
04:39
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
04:43
fowlduck has quit [Ping timeout: 260 seconds]
06:14
Bofu2U has joined #crystal-lang
06:55
CompanionCube has quit [Ping timeout: 260 seconds]
07:17
trapped has joined #crystal-lang
07:24
fowlduck has joined #crystal-lang
07:28
fowlduck has quit [Ping timeout: 246 seconds]
08:49
Ven has joined #crystal-lang
08:58
guilleiguaran__ has quit [Ping timeout: 260 seconds]
08:59
guilleiguaran__ has joined #crystal-lang
09:19
ponga has joined #crystal-lang
10:51
daveshah has joined #crystal-lang
10:57
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:10
fowlduck has joined #crystal-lang
11:11
daveshah has quit [Read error: Connection reset by peer]
11:11
daveshah has joined #crystal-lang
11:14
fowlduck has quit [Ping timeout: 246 seconds]
11:18
trapped has joined #crystal-lang
11:32
daveshah has quit [Remote host closed the connection]
11:39
guilleiguaran__ has quit [Ping timeout: 264 seconds]
11:40
guilleiguaran__ has joined #crystal-lang
12:22
lokulin has quit [Changing host]
12:22
lokulin has joined #crystal-lang
12:29
Keziolio has joined #crystal-lang
12:47
Ven has joined #crystal-lang
13:09
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:30
trapped has joined #crystal-lang
13:51
CompanionCube has joined #crystal-lang
13:51
CompanionCube has quit [Changing host]
13:51
CompanionCube has joined #crystal-lang
14:00
ozra has joined #crystal-lang
14:01
daveshah has joined #crystal-lang
14:23
vifino has quit [Ping timeout: 246 seconds]
14:24
vifino has joined #crystal-lang
14:24
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:26
trapped has joined #crystal-lang
14:41
wminor___ has joined #crystal-lang
14:41
wminor__ has quit [Ping timeout: 264 seconds]
14:43
Papierkorb has quit [Ping timeout: 245 seconds]
14:45
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:46
Papierkorb has joined #crystal-lang
14:56
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
15:27
Ven has joined #crystal-lang
16:08
trapped has joined #crystal-lang
16:21
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:55
fowlduck has joined #crystal-lang
16:58
shama has joined #crystal-lang
17:00
fowlduck has quit [Ping timeout: 256 seconds]
17:28
ponga has quit [Quit: Connection closed for inactivity]
17:36
trapped has joined #crystal-lang
18:11
fowlduck has joined #crystal-lang
18:15
wmoxam_ is now known as wmoxam
18:15
wmoxam has quit [Changing host]
18:15
wmoxam has joined #crystal-lang
18:16
fowlduck has quit [Ping timeout: 272 seconds]
19:02
daveshah has quit [Remote host closed the connection]
19:02
daveshah has joined #crystal-lang
19:29
CompanionCube has quit [Ping timeout: 264 seconds]
19:31
CompanionCube has joined #crystal-lang
19:31
CompanionCube has quit [Changing host]
19:31
CompanionCube has joined #crystal-lang
19:42
tomchapin has joined #crystal-lang
20:10
sdogruyol has joined #crystal-lang
20:12
shama has quit [Ping timeout: 250 seconds]
20:16
shama has joined #crystal-lang
20:18
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
20:22
fowlduck has joined #crystal-lang
20:44
tomchapin has joined #crystal-lang
20:57
slash_me is now known as slash_nick
21:18
ozra has quit [Ping timeout: 252 seconds]
21:18
fowlduck has quit [Remote host closed the connection]
21:23
dylanmei has joined #crystal-lang
21:24
sdogruyol has quit []
21:24
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:29
ozra has joined #crystal-lang
21:42
fowlduck has joined #crystal-lang
21:57
daveshah has quit [Remote host closed the connection]
22:20
fowlduck has quit [Remote host closed the connection]
22:24
fowlduck has joined #crystal-lang
22:25
tomchapin has joined #crystal-lang
22:32
aladagemre has joined #crystal-lang
22:33
<
aladagemre >
hi, is it possible to bind C libraries that contain lower case structs?
22:40
<
jhass >
aladagemre: the type names don't have to match
22:41
<
aladagemre >
but what about struct? we can't say struct lowercasestr
22:41
<
jhass >
but we don't have to
22:42
<
jhass >
there's no need to match up the names
22:42
<
jhass >
only the order base types of the fields have to match
22:43
<
jhass >
actually not even that, you can have a single dummy member of UInt8[struct_size] even if you don't need the members
22:43
<
jhass >
or even alias it to Void or Void* if you don't need to allocate it yourself
22:43
<
jhass >
*order and base types
22:45
<
aladagemre >
hmm thanks let me look at it
22:56
<
aladagemre >
it seems working. thanks so much :)
22:56
<
aladagemre >
Now I have to use @[Include(...)] but it says: illegal attribute for lib, valid attributes are: Link. What's my mistake
22:57
<
aladagemre >
I want to use a .h file
22:57
<
aladagemre >
I'm running the code : crystal run main.cr where main has require mylibfile with Include
22:58
<
jhass >
crystal_lib isn't integrated into the compiler yet
22:58
<
aladagemre >
hm ok I have to run their scripts to run it
22:59
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:27
tomchapin has joined #crystal-lang
23:45
trapped has quit [Read error: Connection reset by peer]
23:45
aladagem_ has joined #crystal-lang
23:48
aladage__ has joined #crystal-lang
23:48
aladagemre has quit [Ping timeout: 256 seconds]
23:51
aladagem_ has quit [Ping timeout: 240 seconds]