25 #include "pips_config.h"
64 va_list some_arguments;
65 va_start(some_arguments, a_format);
70 va_end(some_arguments);
90 pips_assert(
"s should be formatted or unformatted...", 0);
115 pips_assert(
"s should be formatted or unformatted...", 0);
125 #define LINE_SUFFIX "\n"
133 for (i=strlen(s)-1; i>0 && !last; i--)
134 if (s[i] ==
',' || s[i]==
')')
150 int lbuffer = strlen(
buffer);
167 && (last_cut != lbuffer-1)
173 int nl_cut = last_cut;
174 while (
buffer[nl_cut+1]==
' ') nl_cut++;
175 strcpy(tmp,
buffer+nl_cut+1);
176 buffer[last_cut+1] =
'\0';
206 comment = (stmp ==
'c'|| stmp ==
'C' || stmp ==
'!'|| stmp ==
'*'
218 strcpy(tmp2,
append+coupure);
220 ((
char*)
append)[coupure]=
'\0';
244 bool comment = stmp ==
'c'|| stmp ==
'C'
245 || stmp ==
'!'|| stmp ==
'*'
246 || (stmp ==
'/' && stmp1 ==
'*') || (stmp ==
'/' && stmp1 ==
'/');
252 strcpy(tmp2,
buffer+coupure);
bool text_consistent_p(text p)
sentence make_sentence(enum sentence_utype tag, void *val)
#define append(s)
text text_region_no_action(effect reg) input : a region output : a text consisting of several lines o...
#define ret(why, what)
true if not a remapping for old.
static void comment(string_buffer code, spoc_hardware_type hw, dagvtx v, int stage, int side, bool flip)
#define ENDP(l)
Test if a list is empty.
list gen_nconc(list cp1, list cp2)
physically concatenates CP1 and CP2 but do not duplicates the elements
#define CAR(pcons)
Get the value of the first element of a list.
list gen_last(list l)
Return the last element of a list.
#define pips_assert(what, predicate)
common macros, two flavors depending on NDEBUG
#define pips_internal_error
#define same_string_p(s1, s2)
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])
The structure used to build lists in NewGen.
#define ADD_SENTENCE_TO_TEXT(t, p)
#define MAX_LINE_LENGTH
maximum length of a line when prettyprinting...
void add_to_current_line(string buffer, const char *append, string continuation, text txt)
char * int2a(int i)
util.c
void add_words_to_text(text t, list wl)
Add the word list wl to the end of the last sentence of text t.
void add_one_unformated_printf_to_text(text r, string a_format,...)
static int last_comma_or_clopar(string s)
returns a possible index where to cut the string.
string last_word_of_sentence(sentence s)
Return the last word of a sentence:
void close_current_line(string buffer, text txt, string continuation)
string first_word_of_sentence(sentence s)
Return the first word of a sentence:
#define sentence_unformatted_p(x)
#define SENTENCE(x)
newgen_unformatted_domain_defined
#define sentence_unformatted(x)
#define sentence_formatted(x)
#define text_sentences(x)
#define unformatted_words(x)
#define sentence_formatted_p(x)
int vasprintf(char **resultp, const char *format, va_list args)
Formatted output to strings.