[Ktechlab-devel] simple project. 2,3

Alan Grimes agrimes at speakeasy.net
Wed Jun 20 23:53:56 UTC 2007


> Done and added to repository.

;)

Okay,

here's the next one.
2:

the matrix display driver is rather poorly designed, it uses hard-coded
data tables... (who ever thought of putting data in code anyway, sheesh!)

Interestingly, it implements a Japanese font (including roughly 32
katakana and kanji symbols).

This is well and good but it would be better to have a PC-ASCII/Codepage
437 font and the ability to switch between the two...

the fonts are implemented as bitmaps.

A more complex task is to develop a simple but powerful font editor.

Okay, maybe that isn't so simple...

3:

The existing codebase actually contains several redundant definitions of
Pi. Look at your platform's copy of math.h ( typically in /usr/include
), and then grep the code for the first few digits of each of those
constants. Sometimes these constants are used in very stereotypical ways
eg 1/sqrt(2). or 2*pi, these are defined in math.h too. Replace each
occourance with a reference to the math.h constant, ie all definitions
of PI should be removed, and all refferences to it should be replaced
with M_PI (or variant thereof).

Other custom constants, which aren't a part of the standard yet, such as
DPR, are defined at multiple locations. Remove all redundant definitions
and make sure all source refers to the single constant. There shouldn't
be redundant definitions anywhere. (long term project)

-- 
Opera: Sing it loud! :o(  )>-<




More information about the Ktechlab-devel mailing list