Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Bing, Yandex

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
614
BenitoVirg
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 >>