(file) Return to strarr.h CVS log (file) (dir) Up to [OMI] / omi / base

Diff for /omi/base/strarr.h between version 1.2 and 1.3

version 1.2, 2015/04/20 18:10:09 version 1.3, 2015/04/20 18:19:50
Line 26 
Line 26 
 #define _omi_strarr_h #define _omi_strarr_h
  
 #include <common.h> #include <common.h>
   #ifdef _MSC_VER
   #pragma prefast (disable: 28252)
   #pragma prefast (disable: 28253)
   #endif
   #include <wchar.h>
   
   #include "batch.h"
   
   #if defined(CONFIG_ENABLE_WCHAR)
   # define ZArr WcsArr
   # define ZArrCat WcsArrCat
   # define ZArrLen WcsArrLen
   # define ZArrFree WcsArrFree
   #else
   # define ZArr StrArr
   # define ZArrCat StrArrCat
   # define ZArrLen StrArrLen
   # define ZArrFree StrArrFree
   #endif
  
 BEGIN_EXTERNC BEGIN_EXTERNC
  
Line 33 
Line 52 
 char** StrArr(); char** StrArr();
  
 /* Append a string to the end of the string array */ /* Append a string to the end of the string array */
 void StrArrCat(char*** self, const char* str);  void StrArrCat(_Inout_ CharPtrPtr * self_, _In_ ConstCharPtr str);
  
 /* Return length of this array */ /* Return length of this array */
 size_t StrArrLen(char** self);  size_t StrArrLen(_In_ CharPtrPtr self);
  
 /* Free the string array */ /* Free the string array */
 void StrArrFree(char** self);  void StrArrFree(_Pre_valid_ _Post_ptr_invalid_ CharPtrPtr self);
   
   /* Allocate an empty null-terminated string array */
   wchar_t** WcsArr();
   
   /* Append a string to the end of the string array */
   void WcsArrCat(_Inout_ WcharPtrPtr * self_, _In_ ConstWcharPtr str);
   
   /* Return length of this array */
   size_t WcsArrLen(_In_ WcharPtrPtr self);
   
   /* Free the string array */
   void WcsArrFree(_Pre_valid_ _Post_ptr_invalid_ WcharPtrPtr self);
   
   /* Clone string array */
   ZChar** CloneStringArray(
       _In_count_(size) const ZChar** data,
       _In_ MI_Uint32 size,
       _In_ Batch* batch);
  
 END_EXTERNC END_EXTERNC
  


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

ViewCVS 0.9.2