File: proscope.h

package info (click to toggle)
libhtml-template-pro-perl 0.9524-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,512 kB
  • sloc: ansic: 1,841; perl: 1,474; yacc: 404; pascal: 118; makefile: 6
file content (32 lines) | stat: -rw-r--r-- 773 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* -*- c -*- 
 * File: proscope.h
 * Author: Igor Vlasenko <vlasenko@imath.kiev.ua>
 * Created: Thu May 26 15:13:10 2005
 *
 * $Id$
 */

#ifndef _PROSCOPE_H
#define _PROSCOPE_H	1

#include "pabstract.h"

struct scope_stack {
  int level;
  int max;
  struct ProScopeEntry* root;
};

struct ProScopeEntry {
  int flags;		/* type of scope */
  int  loop; 		/* current loop */
  int  loop_count;	/* total number of loops or negative value if unknown */
  /* objects are wrapper-specific so pointer is void */
  ABSTRACT_ARRAY* loops_AV;	/* pointer to array of loop's dictionaries */
  ABSTRACT_MAP*   param_HV;	/* pointer to dictionary of current loop   */
};

#define isScopeLoop(X) ((X)->loops_AV!=NULL)
#define isScopeMap(X) ((X)->loops_AV==NULL)

#endif /* _PROSCOPE_H */