]> granicus.if.org Git - graphviz/commitdiff
expr: move 'Excc_t', 'Exccdisc_t' into excc.c
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Aug 2022 02:09:43 +0000 (19:09 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Aug 2022 17:10:30 +0000 (10:10 -0700)
Following the previous commit, these are no longer referenced anywhere else.

lib/expr/excc.c
lib/expr/expr.h

index b2c0a576667774aa0c85a79b259d818a09e4a25a..ce767956e514d6ff150b9e2b4dd0b6bf65cfb174 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
+typedef struct Excc_s Excc_t;
+typedef struct Exccdisc_s Exccdisc_t;
+
+struct Exccdisc_s                      /* excc() discipline            */
+{
+  Sfio_t*              text;           /* text output stream           */
+  char*                id;             /* symbol prefix                */
+  uint64_t     flags;          /* EXCC_* flags                 */
+  int          (*ccf)(Excc_t*, Exnode_t*, Exid_t*, Exref_t*, Exnode_t*, Exccdisc_t*);
+          /* program generator function        */
+};
+
+struct Excc_s                          /* excc() state                 */
+{
+       Expr_t*         expr;           /* exopen() state               */
+       Exdisc_t*       disc;           /* exopen() discipline          */
+
+#ifdef _EX_CC_PRIVATE_
+       _EX_CC_PRIVATE_
+#endif
+
+};
+
 #define EX_CC_DUMP     0x8000
 
 static const char      quote[] = "\"";
index 6268f0042d8541f6e3b45ab3064c512c4f1af4ac..cc18492aea8682bffbb6b18da38ff671eff04393 100644 (file)
@@ -239,30 +239,6 @@ struct Expr_s                              /* ex program state             */
 
 };
 
-typedef struct Excc_s Excc_t;
-typedef struct Exccdisc_s Exccdisc_t;
-
-struct Exccdisc_s                      /* excc() discipline            */
-{
-       Sfio_t*         text;           /* text output stream           */
-       char*           id;             /* symbol prefix                */
-       uint64_t        flags;          /* EXCC_* flags                 */
-       int             (*ccf)(Excc_t*, Exnode_t*, Exid_t*, Exref_t*, Exnode_t*, Exccdisc_t*);
-                                       /* program generator function   */
-};
-
-struct Excc_s                          /* excc() state                 */
-{
-       Expr_t*         expr;           /* exopen() state               */
-       Exdisc_t*       disc;           /* exopen() discipline          */
-
-#ifdef _EX_CC_PRIVATE_
-       _EX_CC_PRIVATE_
-#endif
-
-};
-
-
 extern Exnode_t*       excast(Expr_t*, Exnode_t*, int, Exnode_t*, int);
 extern Exnode_t*       exnoncast(Exnode_t *);
 extern void            exclose(Expr_t*, int);