Share

SQS Queue System

Tracker: Feature Requests

5 Improve "const correctness" - ID: 1253634
Last Update: Tracker Item Submitted ( elfring )

Would you like to apply the advices from the article
"http://en.wikipedia.org/wiki/Const_correctness" to
your sources?
I suggest to add the key word "const" to the type
specifiers for parameters like the following.
- str (function "scmp")
filename (functions "GenRand", "GenKey")

http://cvs.sourceforge.net/viewcvs.py/squeue/sqs/src/crypt.h?rev=1.2&view=m
arkup

- filename (functions "open_.+", "reopen_.+")
k (functions "fatalerror", "print_sys_message")
debug_level, k (function "log_l")
debug_level, cfile, func, k (function "error_l")

http://cvs.sourceforge.net/viewcvs.py/squeue/sqs/src/log.h?rev=1.2&view=mar
kup

- port (function "create_connection")
s0, key (function "wait_packet")
spack, hostname, port, key (function "send_packet")

http://cvs.sourceforge.net/viewcvs.py/squeue/sqs/src/packet.h?rev=1.2&view=
markup


Markus Elfring ( elfring ) - 2005-08-07 17:24

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.