core: use generic PKG_MEM_ERROR, SHM_ERROR and _CRITICAL helper defines in core
authorHenning Westerholt <hw@kamailio.org>
Sun, 23 Dec 2018 21:31:03 +0000 (22:31 +0100)
committerHenning Westerholt <hw@kamailio.org>
Sun, 23 Dec 2018 21:37:22 +0000 (22:37 +0100)
commite3ecad34bb13e72b16a4213e7ce785194e88c534
tree1c580f8d1a0738c127df6464ebcd90c0a37a9000
parent753bc81c80e9d523e7032a318c95d4168e8834e4
core: use generic PKG_MEM_ERROR, SHM_ERROR and _CRITICAL helper defines in core

    - refactoring of the core to use generic PKG_MEM_ERROR, SHM_ERROR,
      PKG_MEM_CRITICAL, SHM_MEM_CRITICAL and SYS_MEM_ERROR helper defines
    - unify many different error messages in different spellings
    - add a few missing error handler for allocation errors after (found
      with a complete review of all memory allocation functions in core)
    - no other functional changes, change has been reviewed two times
86 files changed:
src/core/action.c
src/core/cfg.lex
src/core/cfg.y
src/core/cfg/cfg.c
src/core/cfg/cfg_ctx.c
src/core/cfg/cfg_script.c
src/core/cfg/cfg_select.c
src/core/cfg/cfg_struct.c
src/core/cfg_parser.c
src/core/core_cmd.c
src/core/counters.c
src/core/data_lump.c
src/core/data_lump_rpl.c
src/core/dns_cache.c
src/core/dset.c
src/core/dst_blacklist.c
src/core/error.c
src/core/flags.c
src/core/forward.c
src/core/io_wait.c
src/core/ip_addr.c
src/core/kemi.c
src/core/lock_alloc.h
src/core/locking.c
src/core/mod_fix.c
src/core/modparam.c
src/core/msg_translator.c
src/core/name_alias.h
src/core/nonsip_hooks.c
src/core/parser/contact/contact.c
src/core/parser/contact/parse_contact.c
src/core/parser/digest/digest.c
src/core/parser/msg_parser.c
src/core/parser/parse_addr_spec.c
src/core/parser/parse_allow.c
src/core/parser/parse_content.c
src/core/parser/parse_date.c
src/core/parser/parse_disposition.c
src/core/parser/parse_diversion.c
src/core/parser/parse_event.c
src/core/parser/parse_expires.c
src/core/parser/parse_fline.c
src/core/parser/parse_from.c
src/core/parser/parse_identity.c
src/core/parser/parse_identityinfo.c
src/core/parser/parse_param.c
src/core/parser/parse_ppi_pai.c
src/core/parser/parse_refer_to.c
src/core/parser/parse_require.c
src/core/parser/parse_rpid.c
src/core/parser/parse_rr.c
src/core/parser/parse_sipifmatch.c
src/core/parser/parse_subscription_state.c
src/core/parser/parse_supported.c
src/core/parser/parse_via.c
src/core/parser/sdp/sdp.c
src/core/parser/sdp/sdp_helpr_funcs.c
src/core/ppcfg.c
src/core/proxy.c
src/core/pt.c
src/core/pvapi.c
src/core/re.c
src/core/receive.c
src/core/resolve.c
src/core/route.c
src/core/route_struct.c
src/core/rpc_lookup.c
src/core/rvalue.c
src/core/script_cb.c
src/core/select.c
src/core/select_buf.c
src/core/sip_msg_clone.c
src/core/socket_info.c
src/core/sr_module.c
src/core/stats.c
src/core/str.c
src/core/str_hash.h
src/core/switch.c
src/core/tcp_main.c
src/core/tcp_read.c
src/core/timer.c
src/core/timer_proc.c
src/core/udp_server.c
src/core/usr_avp.c
src/core/ut.c
src/core/xavp.c