Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 Avoiding repeated code (srv_func)

open
nobody
None
5
2004-07-29
2004-07-29
No

I'm trying to add some more servers to linuxsms 0.77,
and just noticed that you everytime you need to add a
server, you add an entry at the top, and then link it
with the related function.

So I've changed your code a bit, so you now may specify
within HSERVERS which function for each server, and
just implement that function (sms_*). I hope I'm being
clear, perhaps looking at the patch you'll see what I mean.

Discussion