X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_cmdline%2Fcmdline_parse_string.h;h=a903bf150feb85b155636d10e1d51cd2c248f178;hb=69d22b8e668d4cbc6d3a5e2873551de5d44c3a45;hp=35239b9f341ee58184f43b0719132e4675e94cf2;hpb=af75078fece3615088e561357c1e97603e43a5fe;p=dpdk.git diff --git a/lib/librte_cmdline/cmdline_parse_string.h b/lib/librte_cmdline/cmdline_parse_string.h index 35239b9f34..a903bf150f 100644 --- a/lib/librte_cmdline/cmdline_parse_string.h +++ b/lib/librte_cmdline/cmdline_parse_string.h @@ -30,7 +30,6 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * version: DPDK.L.1.2.3-3 */ /* @@ -92,18 +91,17 @@ int cmdline_complete_get_elt_string(cmdline_parse_token_hdr_t *tk, int idx, int cmdline_get_help_string(cmdline_parse_token_hdr_t *tk, char *dstbuf, unsigned int size); -/* - * Warning! Not compatible with C++! - */ #define TOKEN_STRING_INITIALIZER(structure, field, string) \ -{ \ - .hdr = { \ - .ops = &cmdline_token_string_ops, \ - .offset = offsetof(structure, field), \ - }, \ - .string_data = { \ - .str = string, \ - }, \ +{ \ + /* hdr */ \ + { \ + &cmdline_token_string_ops, /* ops */ \ + offsetof(structure, field), /* offset */ \ + }, \ + /* string_data */ \ + { \ + string, /* str */ \ + }, \ } #ifdef __cplusplus