Sha256: 1f713473c2ea8243c6e9b20561341dca49c3afd2c35853edfec2f73d56ef85c4

Contents?: true

Size: 954 Bytes

Versions: 3

Compression:

Stored size: 954 Bytes

Contents

#ifndef _PROSTATE_H
#define _PROSTATE_H	1

#include "pbuffer.h"

struct tagstack {
  struct tagstack_entry* entry;
  int pos;
  int depth;
};

struct tmplpro_param;

typedef int boolval;

struct tmplpro_state {
  boolval  is_visible;
  const char* top;
  const char* next_to_end;
  const char* last_processed_pos;
  const char* cur_pos;
  struct tmplpro_param* param;
  /* current tag */
  int   tag;
  boolval  is_tag_closed;
  boolval  is_tag_commented;
  boolval  is_expr;
  const char* tag_start; 

/* internal buffers */
  /* main string buffer */
  pbuffer str_buffer;
  /* tag stack */
  struct tagstack tag_stack;

  /* expr string buffers; used to unescape pstring args and for num -> string */
  pbuffer expr_left_pbuffer;
  pbuffer expr_right_pbuffer;
};

extern TMPLPRO_LOCAL void log_state(struct tmplpro_state*, int level, const char *fmt, ...) FORMAT_PRINTF(3,4);

#endif /* prostate.h */

/* 
 * Local Variables:
 * mode: c 
 * End: 
 */

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html-template-pro-0.0.3 ext/html/template/prostate.h
html-template-pro-0.0.2 ext/html/template/internal/prostate.h
html-template-pro-0.0.1 ext/html/template/internal/prostate.h