flag allow-struct

Mode: Configuration Mode

Description:

In pre 9.3 days, the ddl compiler automatically created structure definitions for all objects in the ddl files. These structures made it difficult to split up the ddl files for PDK. The solution to this (< 9.3) was to sprinkle no-struct flags through the hierarchy to prevent the compiler from emitting structures.

In 9.3 we noted that a very small percentage of code used the deprecated ddl_access_get_struct() calls, and that we should make the PDK split-up of files easier by changing the way ddl emitted structure definitions. Instead of emitting by default, we emit only when the allow-struct flag is set.

Going forward, we SHOULD NOT need to add any new objects with 'allow-struct' since we SHOULD NOT be using ddl_access_get_struct().

Reference (to programmers guide/style guide):


2007-2008 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are trademarks of Juniper Networks, Inc.
Generated on Sun May 30 20:23:12 2010 for DDL Reference Guide by doxygen 1.4.5