]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.gadgets.charts.lines: Fix using list.
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 29 Dec 2017 01:54:14 +0000 (17:54 -0800)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 29 Dec 2017 01:54:14 +0000 (17:54 -0800)
Use ``SPECIALIZED-ARRAYS: float`` in order to create it if it doesnt exist.

extra/ui/gadgets/charts/lines/lines.factor

index ea03efb08d0594abe84e66f33fc90f722bfc9147..fbdf080d634f3ad10ac150cce224aba3b011f265 100644 (file)
@@ -2,13 +2,14 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors arrays assocs binary-search colors.constants
 combinators combinators.short-circuit fry kernel locals make
-math math.order math.statistics math.vectors namespaces opengl
-opengl.gl sequences
-specialized-arrays.instances.alien.c-types.float
-splitting.monotonic ui.gadgets ui.gadgets.charts
-ui.gadgets.charts.utils ui.render ;
+math math.order math.statistics math.vectors opengl opengl.gl
+sequences specialized-arrays splitting.monotonic ui.gadgets
+ui.gadgets.charts ui.gadgets.charts.utils ui.render ;
+QUALIFIED-WITH: alien.c-types c
 IN: ui.gadgets.charts.lines
 
+SPECIALIZED-ARRAY: c:float
+
 ! Data must be a sequence of { x y } coordinates sorted by
 ! non-descending x vaues.
 TUPLE: line < gadget color data ;