]> git.pond.sub.org Git - empserver/commit
(strtox, strtoy): New. Use it instead of inputxy() to avoid the
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 7 Apr 2004 17:13:47 +0000 (17:13 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 7 Apr 2004 17:13:47 +0000 (17:13 +0000)
commit5d302eaad5899d430767b861e4c9efb1ce874164
tree053a8259ba6d7b343ecf130170d1333b8cc86242
parent543b0cba4f91b24d0a96ca3e4c75589a55136212
(strtox, strtoy): New.  Use it instead of inputxy() to avoid the
double-remainder problem: x-coordinate SHRT_MAX+1 is truncated to 0 by
cast to coord, then converted by xabs().  This is wrong unless WORLD_X
divides SHRT_MAX+1.
(sarg_xy, sarg_getrange, sarg_range): Use them.
(inputxy): No longer used, remove.

(sarg_type): Use NS_UNDEF instead of 0.

(sarg_list): Change confusing loop control.  Properly diagnose
overlong lists; used to silently ignore list tail and return MAX+1,
which made a later snxtitem_list() fail.

(atoip): No longer used, remove.  Parsing was broken anyway.

(sarg_type, sarg_xy, sarg_area, sarg_range, sarg_list, sarg_getrange):
Use plain char * instead of s_char *.
include/prototypes.h
include/xy.h
src/lib/common/xy.c
src/lib/gen/Makefile
src/lib/gen/atoip.c [deleted file]
src/lib/subs/sarg.c