Christopher Chedeau
|
02d8f35b9a
|
use calloc instead of memset and get rid of a duplicated field
|
2014-04-18 16:03:29 -07:00 |
|
Christopher Chedeau
|
75ab7b6f39
|
split .c and .h
|
2014-04-18 16:00:53 -07:00 |
|
Christopher Chedeau
|
a650e77cb3
|
update transpiler for &children
|
2014-04-18 15:48:44 -07:00 |
|
Christopher Chedeau
|
43530e51da
|
Merge pull request #2 from swolchok/master
don't separately malloc each child, since the list of children never grows
|
2014-04-18 14:39:40 -07:00 |
|
Scott Wolchok
|
2fce9254d7
|
don't separately malloc each child, since the list of children never grows
|
2014-04-18 14:35:12 -07:00 |
|
Christopher Chedeau
|
1d601935f9
|
Merge pull request #1 from swolchok/master
Use isnan(3) to check for NaN
|
2014-04-18 14:06:25 -07:00 |
|
Scott Wolchok
|
5498516087
|
fix memory leak found by valgrind
|
2014-04-18 13:45:57 -07:00 |
|
Scott Wolchok
|
8cf26abf24
|
Use isnan(3) to check for NaN
|
2014-04-18 13:41:14 -07:00 |
|
Christopher Chedeau
|
f34ed85833
|
s/unsigned int/int/g
|
2014-04-18 13:17:47 -07:00 |
|
Christopher Chedeau
|
a5a6c2cf8f
|
stop allocating so much memory for nothing (c is hard)
|
2014-04-18 13:14:20 -07:00 |
|
Christopher Chedeau
|
8317054606
|
make a separate file for the code generation
|
2014-04-18 12:10:02 -07:00 |
|
Christopher Chedeau
|
803aabf37f
|
extract layoutNode
|
2014-04-18 11:53:28 -07:00 |
|
Christopher Chedeau
|
ada35b9ba6
|
auto-gen the C code
|
2014-04-18 10:37:01 -07:00 |
|
Christopher Chedeau
|
3c7eb7bcfa
|
typo in C, forgot a !
|
2014-04-18 10:22:38 -07:00 |
|
Christopher Chedeau
|
e3430169c0
|
isDimDefined helper
|
2014-04-18 10:11:37 -07:00 |
|
Christopher Chedeau
|
f55bece86e
|
constantify css values for easier port
|
2014-04-18 10:08:16 -07:00 |
|
Christopher Chedeau
|
8af40c07ce
|
replace math.math with ternary
|
2014-04-18 10:00:46 -07:00 |
|
Christopher Chedeau
|
1067fd5997
|
replace forEach with standard for loop
|
2014-04-18 09:59:20 -07:00 |
|
Christopher Chedeau
|
03da8ea411
|
replace === to == in order to make the c conversion easier
|
2014-04-18 09:56:57 -07:00 |
|
Christopher Chedeau
|
28d2e3c352
|
make children always present in the layout function
|
2014-04-18 09:54:58 -07:00 |
|
Christopher Chedeau
|
99c0eb7b6b
|
gitignore
|
2014-04-18 09:40:31 -07:00 |
|
Christopher Chedeau
|
74644cfe41
|
isUndefined helper to make js and c closer
|
2014-04-18 09:40:09 -07:00 |
|
Christopher Chedeau
|
dd79f7599b
|
remove useless top/left setting
|
2014-04-18 09:33:14 -07:00 |
|
Christopher Chedeau
|
0e30f00752
|
OMG IT WORKS IN C!!
|
2014-04-18 09:32:24 -07:00 |
|
Christopher Chedeau
|
6ac385b234
|
remove useless top/left setting
|
2014-04-18 09:30:02 -07:00 |
|
Christopher Chedeau
|
d701273704
|
omg, there's a proper bool type in C now!
|
2014-04-18 09:17:05 -07:00 |
|
Christopher Chedeau
|
ded76b867e
|
initial commit of the c port. it compiles but doesn't work
|
2014-04-18 09:06:42 -07:00 |
|
Christopher Chedeau
|
47faaffef2
|
remove horizontal/vertical support
|
2014-04-18 09:06:22 -07:00 |
|
Christopher Chedeau
|
7ad8da74e0
|
move tests to __tests__
|
2014-04-16 18:57:09 -07:00 |
|
Christopher Chedeau
|
7549e2c130
|
Update README.md
|
2014-04-16 17:46:07 -07:00 |
|
Christopher Chedeau
|
3e2dd93db2
|
Update README.md
|
2014-04-16 17:35:25 -07:00 |
|
Christopher Chedeau
|
e465ef7d33
|
add automated testing support for position: absolute
|
2014-04-16 16:34:07 -07:00 |
|
Christopher Chedeau
|
fb9534eed5
|
support relative right and bottom
|
2014-04-16 16:31:38 -07:00 |
|
Christopher Chedeau
|
88f7e70abe
|
negative top/left tests
|
2014-04-16 16:14:25 -07:00 |
|
Christopher Chedeau
|
7f40bf084b
|
space-around with padding
|
2014-04-16 16:12:24 -07:00 |
|
Christopher Chedeau
|
2471dbe49a
|
simple top left
|
2014-04-16 15:26:15 -07:00 |
|
Christopher Chedeau
|
93ee721ba8
|
wooooot, padding works!
|
2014-04-16 15:09:53 -07:00 |
|
Christopher Chedeau
|
a67c193bef
|
stretch and padding round 2
|
2014-04-16 13:32:05 -07:00 |
|
Christopher Chedeau
|
5a653ef94b
|
padding and stretch
|
2014-04-16 13:21:30 -07:00 |
|
Christopher Chedeau
|
04fefdb87a
|
cross padding and margin
|
2014-04-16 13:15:00 -07:00 |
|
Christopher Chedeau
|
d6abb5d51f
|
make node the first argument of getPadding/getMargin
|
2014-04-16 12:51:55 -07:00 |
|
Christopher Chedeau
|
d607b8bb7a
|
padding with a child
|
2014-04-16 12:49:31 -07:00 |
|
Christopher Chedeau
|
36d6108e8d
|
it should apply padding on the node itself
|
2014-04-15 18:24:37 -07:00 |
|
Christopher Chedeau
|
9db106a71c
|
setup automated testing for padding
|
2014-04-15 18:04:11 -07:00 |
|
Christopher Chedeau
|
930c4dc700
|
fix stretch with margin
|
2014-04-15 17:53:38 -07:00 |
|
Christopher Chedeau
|
1a0cce4f42
|
typo
|
2014-04-15 16:46:06 -07:00 |
|
Christopher Chedeau
|
e55a6fbf27
|
Introduce getDimWithMargin helper
|
2014-04-15 16:44:24 -07:00 |
|
Christopher Chedeau
|
9313d3d11e
|
fix edge case of flex: 1
|
2014-04-15 16:39:42 -07:00 |
|
Christopher Chedeau
|
8ebd69437a
|
update test indent in order to make it easier to read, write and more consistent
|
2014-04-14 18:38:46 -07:00 |
|
Christopher Chedeau
|
d9e9d95892
|
auto-test alignSelf
|
2014-04-14 17:50:55 -07:00 |
|