[Freeswitch-dev] Minor suggestion: s/depricate/deprecate/g

Michael Jerris mike at jerris.com
Mon May 26 15:15:51 EDT 2008


or we could just remove them all.  Thoughts?
On May 26, 2008, at 2:30 PM, Michael Collins wrote:

> FYI,
>
> Just to add a little professional polish we might want to replace  
> “depricate” with “deprecate” since the former is a misspelling.   
> Before I make a patch I wanted to know about stuff like this:
> [root at freeswitch2 include]# grep -rin "depricate" *h
> switch_config.h:41: * This module implements a basic interface and  
> file format parser it may be depricated in favor of database entries
> switch_core.h:973:SWITCH_DECLARE(switch_hash_index_t *)  
> switch_hash_first(char *depricate_me, _In_ switch_hash_t *hash);
>
> I don’t favor mass-replacing variable names when I’m not the  
> author.  If someone out there is capable then here’s a list of  
> source files that have “depricate” in them:
> grep -ir "depricate" * |grep -v "Binary"
> src/include/switch_config.h: * This module implements a basic  
> interface and file format parser it may be depricated in favor of  
> database entries
> src/include/.svn/text-base/switch_core.h.svn- 
> base:SWITCH_DECLARE(switch_hash_index_t *) switch_hash_first(char  
> *depricate_me, _In_ switch_hash_t *hash);
> src/include/.svn/text-base/switch_config.h.svn-base: * This module  
> implements a basic interface and file format parser it may be  
> depricated in favor of database entries
> src/include/switch_core.h:SWITCH_DECLARE(switch_hash_index_t *)  
> switch_hash_first(char *depricate_me, _In_ switch_hash_t *hash);
> src/mod/applications/mod_commands/mod_commands.c:      
> SWITCH_ADD_API(commands_api_interface, "killchan", "Kill Channel  
> (depricated)", kill_function, KILL_SYNTAX);
> src/mod/applications/mod_commands/mod_commands.c:      
> SWITCH_ADD_API(commands_api_interface, "transfer", "Transfer  
> (depricated)", transfer_function, TRANSFER_SYNTAX);
> src/mod/applications/mod_commands/mod_commands.c:      
> SWITCH_ADD_API(commands_api_interface, "session_displace", "session  
> displace (depricated)", session_displace_function, DISPLACE_SYNTAX);
> src/mod/applications/mod_commands/mod_commands.c:      
> SWITCH_ADD_API(commands_api_interface, "session_record", "session  
> record (depricated)", session_record_function, SESS_REC_SYNTAX);
> src/mod/applications/mod_commands/mod_commands.c:      
> SWITCH_ADD_API(commands_api_interface, "broadcast", "broadcast  
> (depricated)", uuid_broadcast_function, BROADCAST_SYNTAX);
> src/mod/applications/mod_commands/mod_commands.c:      
> SWITCH_ADD_API(commands_api_interface, "hold", "hold (depricated)",  
> uuid_hold_function, HOLD_SYNTAX);
> src/mod/applications/mod_commands/mod_commands.c:      
> SWITCH_ADD_API(commands_api_interface, "media", "media  
> (depricated)", uuid_media_function, MEDIA_SYNTAX);
> src/mod/applications/mod_commands/.svn/text-base/mod_commands.c.svn- 
> base:      SWITCH_ADD_API(commands_api_interface, "killchan", "Kill  
> Channel (depricated)", kill_function, KILL_SYNTAX);
> src/mod/applications/mod_commands/.svn/text-base/mod_commands.c.svn- 
> base:      SWITCH_ADD_API(commands_api_interface, "transfer",  
> "Transfer (depricated)", transfer_function, TRANSFER_SYNTAX);
> src/mod/applications/mod_commands/.svn/text-base/mod_commands.c.svn- 
> base:      SWITCH_ADD_API(commands_api_interface,  
> "session_displace", "session displace (depricated)",  
> session_displace_function, DISPLACE_SYNTAX);
> src/mod/applications/mod_commands/.svn/text-base/mod_commands.c.svn- 
> base:      SWITCH_ADD_API(commands_api_interface, "session_record",  
> "session record (depricated)", session_record_function,  
> SESS_REC_SYNTAX);
> src/mod/applications/mod_commands/.svn/text-base/mod_commands.c.svn- 
> base:      SWITCH_ADD_API(commands_api_interface, "broadcast",  
> "broadcast (depricated)", uuid_broadcast_function, BROADCAST_SYNTAX);
> src/mod/applications/mod_commands/.svn/text-base/mod_commands.c.svn- 
> base:      SWITCH_ADD_API(commands_api_interface, "hold", "hold  
> (depricated)", uuid_hold_function, HOLD_SYNTAX);
> src/mod/applications/mod_commands/.svn/text-base/mod_commands.c.svn- 
> base:      SWITCH_ADD_API(commands_api_interface, "media", "media  
> (depricated)", uuid_media_function, MEDIA_SYNTAX);
> src/mod/applications/mod_dptools/.svn/text-base/mod_dptools.c.svn- 
> base:      SWITCH_ADD_APP(app_interface, "reject", "Send session  
> reject (depricated)", "Send a respond message to a session.",  
> respond_function, "<respond_data>", SAF_SUPPORT_NOMEDIA);
> src/mod/applications/mod_dptools/mod_dptools.c:  
> SWITCH_ADD_APP(app_interface, "reject", "Send session reject  
> (depricated)", "Send a respond message to a session.",  
> respond_function, "<respond_data>", SAF_SUPPORT_NOMEDIA);
> src/mod/languages/mod_mono_managed/swig/.svn/text-base/ 
> freeswitch.cs.svn-base:  public static SWIGTYPE_p_HashElem  
> switch_hash_first(string depricate_me, SWIGTYPE_p_switch_hash hash) {
> src/mod/languages/mod_mono_managed/swig/.svn/text-base/ 
> freeswitch.cs.svn-base:    IntPtr cPtr =  
> freeswitchPINVOKE.switch_hash_first(depricate_me,  
> SWIGTYPE_p_switch_hash.getCPtr(hash));
> src/mod/languages/mod_mono_managed/swig/freeswitch.cs:  public  
> static SWIGTYPE_p_HashElem switch_hash_first(string depricate_me,  
> SWIGTYPE_p_switch_hash hash) {
> src/mod/languages/mod_mono_managed/swig/freeswitch.cs:    IntPtr  
> cPtr = freeswitchPINVOKE.switch_hash_first(depricate_me,  
> SWIGTYPE_p_switch_hash.getCPtr(hash));
> src/.svn/text-base/switch_core_hash.c.svn- 
> base:SWITCH_DECLARE(switch_hash_index_t *) switch_hash_first(char  
> *depricate_me, switch_hash_t *hash)
> src/switch_core_hash.c:SWITCH_DECLARE(switch_hash_index_t *)  
> switch_hash_first(char *depricate_me, switch_hash_t *hash)
>
> My wife says I have to go spend time with the family now so I’ll  
> catch you guys later…
> -MC
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080526/831bb35b/attachment.html 


More information about the Freeswitch-dev mailing list