[P4-dev] typedef, P4-16 & p4c compiler

Mihai Budiu mbudiu at vmware.com
Thu Jun 8 16:40:16 EDT 2017

Can you post a code fragment (even if it does not work) showing what you want to achieve?


From: hemant at mnkcg.com<mailto:hemant at mnkcg.com>
Sent: Thursday, June 8, 2017 1:19 PM
To: 'p4-dev'<mailto:p4-dev at lists.p4.org>
Cc: Mihai Budiu<mailto:mbudiu at vmware.com>
Subject: typedef, P4-16 & p4c compiler

If C preprocessing is supported in P4, including P4-16, is the P4-16 “header” possible to be typedefed?  I am not sure what the type is because the header is in the P4 library.  If a C preprocessor allows any C type such as “int” to be typdefed, why not the P4-16 header?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170608/6ba2ea9a/attachment-0002.html>

More information about the P4-dev mailing list