Changeset c529ac8 for owl.h


Ignore:
Timestamp:
Aug 15, 2009, 7:08:17 PM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
65b2173
Parents:
712caac
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 03:11:28)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:17)
Message:
Add new function strs, to (later) cast char *const * to const char *const *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    r712caac rc529ac8  
    201201}
    202202#endif
     203
     204/* Convert char ** into char **.  This conversion is safe,
     205 * and implicit in C++ (conv.qual 4) but for some reason not in C. */
     206static inline char **strs(char **pstr)
     207{
     208  return (char **)pstr;
     209}
    203210
    204211typedef struct _owl_variable {
Note: See TracChangeset for help on using the changeset viewer.