Check-in Number:
|
3351 | |
Date: |
2003-May-20 13:46:25 (local)
2003-May-20 11:46:25 (UTC) |
User: | ms |
Branch: | |
Comment: |
Added label class to represent a run command label (prefixed by rc. in most
cases). |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/rc/rc.h 1.43 -> 1.44
--- rc.h 2003/05/16 18:43:30 1.43
+++ rc.h 2003/05/20 11:46:25 1.44
@@ -117,6 +117,11 @@
const char *scriptTostring(rc_script_t *);
rc_return_t scriptDelete(rc_script_t *);
+/* Label function prototypes */
+rc_label_t *labelNew(const char *);
+rc_return_t labelAppendsec(rc_label_t *, rc_section_t *);
+rc_return_t labelDelete(rc_label_t *);
+
/* Section function prototypes */
rc_section_t *sectionNew(void);
rc_section_t *sectionCopy(rc_section_t *);
|
|
ossp-pkg/rc/rc_private.h 1.25 -> 1.26
--- rc_private.h 2003/05/16 18:43:30 1.25
+++ rc_private.h 2003/05/20 11:46:25 1.26
@@ -95,11 +95,18 @@
size_t m_Bytes;
} rc_section_t;
+/* Label type */
+typedef struct {
+ int m_nSecs;
+ char *m_szName;
+ rc_section_t **m_ppSecvec;
+} rc_label_t;
+
/* Processor class */
typedef struct {
rc_anal_t *m_pAnal;
rc_script_t *m_pScriptcom;
- rc_section_t **m_ppSectvec;
+ rc_label_t **m_ppLabvec;
} rc_proc_t;
#endif /* __OSSPRC_PRIVATE_H__ */
|
|