Welcome to mirror list, hosted at ThFree Co, Russian Federation.

wordexp2.h « posix « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2030832b781e7a37678810469c4d1182df1073df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Copyright (C) 2012 by  Peter Rosin. All rights reserved.
 *
 * Permission to use, copy, modify, and distribute this software
 * is freely granted, provided that this notice is preserved.
 */
#ifndef _WORDEXP2_H_

struct ewords_entry {
  SLIST_ENTRY(ewords_entry) next;
  char ewords[1];
};

typedef struct {
  SLIST_HEAD(ewords_head, ewords_entry) list;
  char *we_wordv[1];
} ext_wordv_t;

#define WE_WORDV_TO_EXT_WORDV(wordv) \
  (ext_wordv_t *)((void *)(wordv) - offsetof(ext_wordv_t, we_wordv))

#endif /* !_WORDEXP2_H_ */