Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Sogou

Members: 0
Guests: 16
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,396
629
DarrenPayn
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Possible "bug" in save.c
Forum Rules | Mark all | Recent Posts

Possible "bug" in save.c
< Newer Topic :: Older Topic > (more like a possible annoyance)

Pages:<< prev 1 next >>
Post is unread #1 Jul 10, 2009, 10:32 pm
Go to the top of the page
Go to the bottom of the page

Tonitrus
Fledgling
GroupMembers
Posts47
JoinedJun 24, 2009

save.c (SmaugFUSS 1.9) uses str_cmp and strcmp interchangeably when loading files.

str_cmp is not case sensitive, strcmp is.

People altering fields might assume case insensitivity and end up hitting a strcmp instead.

(Yes, I know, it's not really a bug, but it bugs me, so it might bug other people)

KEY() uses str_cmp, so that's probably what should be used.

It might be desirable to have things like PLAYER, OBJECT, and END case sensitive, so here's a list of what isn't, not including things like those:

Affect
AffectData
AttrMod
AttrPerm
Clan
Council
Deity
Filename
Guild
Helled
HpManaMove
Ignored
Killed
Languages
MobRange
ObjRange
Position
PTimer
Room
RoomRange
SavingThrows
Site
Skill
Spell
End
Tongue
Title
Weapon
ExtraDescr
Nest
Owner
Values
Vnum

Meanwhile, things like VARIABLE use str_cmp() even though you might expect that to be case-sensitive.
       
Pages:<< prev 1 next >>