version 1.95, 2010/06/29 19:20:38 |
version 1.101, 2010/07/13 23:53:20 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 252 struct mdoc_arg { |
|
Line 252 struct mdoc_arg { |
|
enum mdoc_endbody { |
enum mdoc_endbody { |
ENDBODY_NOT = 0, |
ENDBODY_NOT = 0, |
ENDBODY_SPACE, |
ENDBODY_SPACE, |
ENDBODY_NOSPACE, |
ENDBODY_NOSPACE |
}; |
}; |
|
|
enum mdoc_list { |
enum mdoc_list { |
Line 279 enum mdoc_disp { |
|
Line 279 enum mdoc_disp { |
|
DISP_literal |
DISP_literal |
}; |
}; |
|
|
|
enum mdoc_auth { |
|
AUTH__NONE = 0, |
|
AUTH_split, |
|
AUTH_nosplit |
|
}; |
|
|
|
enum mdoc_font { |
|
FONT__NONE = 0, |
|
FONT_Em, |
|
FONT_Li, |
|
FONT_Sy |
|
}; |
|
|
struct mdoc_bd { |
struct mdoc_bd { |
const char *offs; /* -offset */ |
const char *offs; /* -offset */ |
enum mdoc_disp type; /* -ragged, etc. */ |
enum mdoc_disp type; /* -ragged, etc. */ |
Line 290 struct mdoc_bl { |
|
Line 303 struct mdoc_bl { |
|
const char *offs; /* -offset */ |
const char *offs; /* -offset */ |
enum mdoc_list type; /* -tag, -enum, etc. */ |
enum mdoc_list type; /* -tag, -enum, etc. */ |
int comp; /* -compact */ |
int comp; /* -compact */ |
|
size_t ncols; /* -column arg count */ |
|
const char **cols; /* -column val ptr */ |
}; |
}; |
|
|
|
struct mdoc_bf { |
|
enum mdoc_font font; /* font */ |
|
}; |
|
|
|
struct mdoc_an { |
|
enum mdoc_auth auth; /* -split, etc. */ |
|
}; |
|
|
/* Node in AST. */ |
/* Node in AST. */ |
struct mdoc_node { |
struct mdoc_node { |
struct mdoc_node *parent; /* parent AST node */ |
struct mdoc_node *parent; /* parent AST node */ |
Line 321 struct mdoc_node { |
|
Line 344 struct mdoc_node { |
|
enum mdoc_endbody end; /* BODY */ |
enum mdoc_endbody end; /* BODY */ |
|
|
union { |
union { |
struct mdoc_bl Bl; |
struct mdoc_an An; |
struct mdoc_bd Bd; |
struct mdoc_bd *Bd; |
|
struct mdoc_bf *Bf; |
|
struct mdoc_bl *Bl; |
} data; |
} data; |
}; |
}; |
|
|