~ubuntu-branches/ubuntu/wily/trafficserver/wily

« back to all changes in this revision

Viewing changes to lib/records/I_RecCore.h

  • Committer: Bazaar Package Importer
  • Author(s): Arno Töll
  • Date: 2011-08-02 22:58:37 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110802225837-9za69cy1kq4vh93m
Tags: 3.0.1-2
* Fix "please add armhf to the arch list" - add armhf to the list of supported
  architectures. Thanks Konstantinos Margaritis for the hint (Closes: #636338)
* Remove IA64 from the list of supported architectures. The upgrade to the gcc
  4.6 toolchain disclosed portability issues with it, which caused the resul-
  ting binary package to produce no-op code in some functions. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
  _var = (int32_t)REC_ConfigReadInteger(_config_var_name); \
182
182
} while (0)
183
183
 
 
184
/*
 
185
 * RecLinkConfigString allocates the RecString and stores the ptr to it (&var).
 
186
 * So before changing _var (the RecString) we have to free the original one.
 
187
 * Really, we somehow need to know whether RecLinkConfigString allocated _var.
 
188
 * For now, we're using the return value to indicate this, even though it's
 
189
 * not always the case.  If we're wrong, we'll leak the RecString.
 
190
 */
184
191
#define REC_EstablishStaticConfigStringAlloc(_var, _config_var_name) do { \
185
 
  RecLinkConfigString(_config_var_name, &_var); \
 
192
  if (RecLinkConfigString(_config_var_name, &_var) == REC_ERR_OKAY) \
 
193
    xfree(_var); \
186
194
  _var = (RecString)REC_ConfigReadString(_config_var_name); \
187
195
} while (0)
188
196