PIPS
text-util-local.h File Reference
#include "text.h"
#include "linear.h"
#include "ri.h"
+ Include dependency graph for text-util-local.h:

Go to the source code of this file.

Macros

#define FORESYS_CONTINUATION_PREFIX   "C$&" " "
 
#define MAKE_SWORD(s)   strdup(s)
 
#define MAKE_IWORD(i)   int2a(i)
 
#define MAKE_FWORD(f)   f2a(f)
 
#define CHAIN_SWORD(l, s)   gen_nconc(l, CONS(STRING, MAKE_SWORD(s), NIL))
 
#define CHAIN_IWORD(l, i)   gen_nconc(l, CONS(STRING, MAKE_IWORD(i), NIL))
 
#define CHAIN_FWORD(l, f)   gen_nconc(l, CONS(STRING, MAKE_FWORD(f), NIL))
 
#define MAKE_ONE_WORD_SENTENCE(m, s)
 
#define ADD_SENTENCE_TO_TEXT(t, p)
 
#define MERGE_TEXTS(r, t)
 
#define MAX_LINE_LENGTH   72
 maximum length of a line when prettyprinting... More...
 

Macro Definition Documentation

◆ ADD_SENTENCE_TO_TEXT

#define ADD_SENTENCE_TO_TEXT (   t,
 
)
Value:
do { \
text _t_ = (t); \
text_sentences(_t_) = \
gen_nconc(text_sentences(_t_), CONS(SENTENCE, (p), NIL)); \
} while(0)
#define NIL
The empty list (nil in Lisp)
Definition: newgen_list.h:47
#define CONS(_t_, _i_, _l_)
List element cell constructor (insert an element at the beginning of a list)
Definition: newgen_list.h:150
#define SENTENCE(x)
newgen_unformatted_domain_defined
Definition: text.h:36
#define text_sentences(x)
Definition: text.h:113

Definition at line 43 of file text-util-local.h.

◆ CHAIN_FWORD

#define CHAIN_FWORD (   l,
  f 
)    gen_nconc(l, CONS(STRING, MAKE_FWORD(f), NIL))

Definition at line 37 of file text-util-local.h.

◆ CHAIN_IWORD

#define CHAIN_IWORD (   l,
 
)    gen_nconc(l, CONS(STRING, MAKE_IWORD(i), NIL))

Definition at line 36 of file text-util-local.h.

◆ CHAIN_SWORD

#define CHAIN_SWORD (   l,
 
)    gen_nconc(l, CONS(STRING, MAKE_SWORD(s), NIL))

Definition at line 35 of file text-util-local.h.

◆ FORESYS_CONTINUATION_PREFIX

#define FORESYS_CONTINUATION_PREFIX   "C$&" " "

Definition at line 29 of file text-util-local.h.

◆ MAKE_FWORD

#define MAKE_FWORD (   f)    f2a(f)

Definition at line 33 of file text-util-local.h.

◆ MAKE_IWORD

#define MAKE_IWORD (   i)    int2a(i)

Definition at line 32 of file text-util-local.h.

◆ MAKE_ONE_WORD_SENTENCE

#define MAKE_ONE_WORD_SENTENCE (   m,
 
)
Value:
make_unformatted((char *) NULL, 0, m, CHAIN_SWORD(NIL, s)))
unformatted make_unformatted(string a1, intptr_t a2, intptr_t a3, list a4)
Definition: text.c:149
sentence make_sentence(enum sentence_utype tag, void *val)
Definition: text.c:59
#define CHAIN_SWORD(l, s)
@ is_sentence_unformatted
Definition: text.h:58

Definition at line 39 of file text-util-local.h.

◆ MAKE_SWORD

#define MAKE_SWORD (   s)    strdup(s)

Definition at line 31 of file text-util-local.h.

◆ MAX_LINE_LENGTH

#define MAX_LINE_LENGTH   72

maximum length of a line when prettyprinting...

from 0 to 69, i.e. 70 chars, plus "\n\0"

Definition at line 62 of file text-util-local.h.

◆ MERGE_TEXTS

#define MERGE_TEXTS (   r,
 
)
Value:
do { \
text _r_ = (r); text _t_ = (t); \
text_sentences(_r_) = \
gen_nconc(text_sentences(_r_), text_sentences(_t_)); \
text_sentences(_t_) = NIL; \
free_text(_t_); \
} while(0)

Definition at line 50 of file text-util-local.h.