text.h File Reference

Go to the source code of this file.

Data Structures

struct  _newgen_struct_sentence_
struct  _newgen_struct_text_
struct  _newgen_struct_unformatted_

Defines

#define _gen_text_start   92
#define sentence_domain   (_gen_text_start+0)
#define SENTENCE_NEWGEN_DOMAIN   (sentence_domain)
#define sentence_NEWGEN_DOMAIN   (sentence_domain)
#define text_domain   (_gen_text_start+1)
 _newgen_sentence_domain_defined_
#define TEXT_NEWGEN_DOMAIN   (text_domain)
#define text_NEWGEN_DOMAIN   (text_domain)
#define unformatted_domain   (_gen_text_start+2)
 _newgen_text_domain_defined_
#define UNFORMATTED_NEWGEN_DOMAIN   (unformatted_domain)
#define unformatted_NEWGEN_DOMAIN   (unformatted_domain)
#define SENTENCE(x)   ((sentence)((x).p))
 _newgen_unformatted_domain_defined_
#define sentence_CAST(x)   SENTENCE(x)
#define SENTENCE_CAST(x)   SENTENCE(x)
#define SENTENCE_(x)   ((x).e)
#define SENTENCE_TYPE   sentence
#define sentence_TYPE   sentence
#define sentence_undefined   ((sentence)gen_chunk_undefined)
#define sentence_undefined_p(x)   ((x)==sentence_undefined)
#define gen_SENTENCE_cons   gen_sentence_cons
#define sentence_domain_number(x)   ((x)->_type_)
#define sentence_tag(x)   ((x)->_sentence_tag__)
#define sentence_formatted_p(x)   (sentence_tag(x)==is_sentence_formatted)
#define sentence_formatted_(x)   sentence_formatted(x)
#define sentence_formatted(x)   ((x)->_sentence_union_._sentence_formatted_)
#define sentence_unformatted_p(x)   (sentence_tag(x)==is_sentence_unformatted)
#define sentence_unformatted_(x)   sentence_unformatted(x)
#define sentence_unformatted(x)   ((x)->_sentence_union_._sentence_unformatted_)
#define TEXT(x)   ((text)((x).p))
 TEXT.
#define text_CAST(x)   TEXT(x)
#define TEXT_CAST(x)   TEXT(x)
#define TEXT_(x)   ((x).e)
#define TEXT_TYPE   text
#define text_TYPE   text
#define text_undefined   ((text)gen_chunk_undefined)
#define text_undefined_p(x)   ((x)==text_undefined)
#define gen_TEXT_cons   gen_text_cons
#define text_domain_number(x)   ((x)->_type_)
#define text_sentences(x)   ((x)->_text_holder_)
#define UNFORMATTED(x)   ((unformatted)((x).p))
 UNFORMATTED.
#define unformatted_CAST(x)   UNFORMATTED(x)
#define UNFORMATTED_CAST(x)   UNFORMATTED(x)
#define UNFORMATTED_(x)   ((x).e)
#define UNFORMATTED_TYPE   unformatted
#define unformatted_TYPE   unformatted
#define unformatted_undefined   ((unformatted)gen_chunk_undefined)
#define unformatted_undefined_p(x)   ((x)==unformatted_undefined)
#define gen_UNFORMATTED_cons   gen_unformatted_cons
#define unformatted_domain_number(x)   ((x)->_type_)
#define unformatted_label_(x)   unformatted_label(x)
#define unformatted_label(x)   ((x)->_unformatted_label_)
#define unformatted_number_(x)   unformatted_number(x)
#define unformatted_number(x)   ((x)->_unformatted_number_)
#define unformatted_extra_margin_(x)   unformatted_extra_margin(x)
#define unformatted_extra_margin(x)   ((x)->_unformatted_extra_margin_)
#define unformatted_words_(x)   unformatted_words(x)
#define unformatted_words(x)   ((x)->_unformatted_words_)
#define text_spec   "\--NEWGEN-START 92\n\sentence = formatted:string + unformatted:unformatted;\n\text = sentences:sentence*;\n\unformatted = label:string x number:int x extra_margin:int x words:string*;\n\"

Typedefs

typedef struct
_newgen_struct_sentence_
sentence
typedef struct
_newgen_struct_text_
text
typedef struct
_newgen_struct_unformatted_
unformatted

Enumerations

enum  sentence_utype { is_sentence_formatted, is_sentence_unformatted }

Functions

sentence copy_sentence (sentence)
 SENTENCE.
void free_sentence (sentence)
sentence check_sentence (sentence)
bool sentence_consistent_p (sentence)
bool sentence_defined_p (sentence)
list gen_sentence_cons (sentence, list)
void write_sentence (FILE *, sentence)
sentence read_sentence (FILE *)
sentence make_sentence (enum sentence_utype, void *)
sentence make_sentence_formatted (string)
sentence make_sentence_unformatted (unformatted)
text copy_text (text)
 TEXT.
void free_text (text)
text check_text (text)
bool text_consistent_p (text)
bool text_defined_p (text)
list gen_text_cons (text, list)
void write_text (FILE *, text)
text read_text (FILE *)
text make_text (list)
unformatted copy_unformatted (unformatted)
 UNFORMATTED.
void free_unformatted (unformatted)
unformatted check_unformatted (unformatted)
bool unformatted_consistent_p (unformatted)
bool unformatted_defined_p (unformatted)
list gen_unformatted_cons (unformatted, list)
void write_unformatted (FILE *, unformatted)
unformatted read_unformatted (FILE *)
unformatted make_unformatted (string, intptr_t, intptr_t, list)

Define Documentation

#define _gen_text_start   92

Definition at line 3 of file text.h.

#define gen_SENTENCE_cons   gen_sentence_cons

Definition at line 50 of file text.h.

#define gen_TEXT_cons   gen_text_cons

Definition at line 96 of file text.h.

#define gen_UNFORMATTED_cons   gen_unformatted_cons

Definition at line 126 of file text.h.

#define SENTENCE ( x   )     ((sentence)((x).p))
#define SENTENCE_ ( x   )     ((x).e)

Definition at line 39 of file text.h.

#define SENTENCE_CAST ( x   )     SENTENCE(x)

Definition at line 38 of file text.h.

#define sentence_CAST ( x   )     SENTENCE(x)

Definition at line 37 of file text.h.

#define sentence_domain   (_gen_text_start+0)

Definition at line 10 of file text.h.

Referenced by check_sentence(), and make_sentence().

#define sentence_domain_number ( x   )     ((x)->_type_)

Definition at line 71 of file text.h.

#define sentence_formatted ( x   )     ((x)->_sentence_union_._sentence_formatted_)
#define sentence_formatted_ ( x   )     sentence_formatted(x)

Definition at line 74 of file text.h.

#define sentence_formatted_p ( x   )     (sentence_tag(x)==is_sentence_formatted)
#define sentence_NEWGEN_DOMAIN   (sentence_domain)

Definition at line 14 of file text.h.

#define SENTENCE_NEWGEN_DOMAIN   (sentence_domain)

Definition at line 13 of file text.h.

Referenced by gen_sentence_cons().

#define sentence_tag ( x   )     ((x)->_sentence_tag__)

Definition at line 72 of file text.h.

Referenced by debug_sentence().

#define sentence_TYPE   sentence

Definition at line 41 of file text.h.

#define SENTENCE_TYPE   sentence

Definition at line 40 of file text.h.

#define sentence_undefined   ((sentence)gen_chunk_undefined)
#define sentence_undefined_p ( x   )     ((x)==sentence_undefined)

Definition at line 43 of file text.h.

#define sentence_unformatted ( x   )     ((x)->_sentence_union_._sentence_unformatted_)
#define sentence_unformatted_ ( x   )     sentence_unformatted(x)

Definition at line 77 of file text.h.

#define sentence_unformatted_p ( x   )     (sentence_tag(x)==is_sentence_unformatted)

Definition at line 76 of file text.h.

Referenced by first_word_of_sentence(), and last_word_of_sentence().

#define TEXT ( x   )     ((text)((x).p))

TEXT.

Definition at line 82 of file text.h.

#define TEXT_ ( x   )     ((x).e)

Definition at line 85 of file text.h.

#define TEXT_CAST ( x   )     TEXT(x)

Definition at line 84 of file text.h.

#define text_CAST ( x   )     TEXT(x)

Definition at line 83 of file text.h.

#define text_domain   (_gen_text_start+1)

_newgen_sentence_domain_defined_

Definition at line 18 of file text.h.

Referenced by check_text(), and make_text().

#define text_domain_number ( x   )     ((x)->_type_)

Definition at line 107 of file text.h.

#define text_NEWGEN_DOMAIN   (text_domain)

Definition at line 22 of file text.h.

#define TEXT_NEWGEN_DOMAIN   (text_domain)

Definition at line 21 of file text.h.

Referenced by gen_text_cons().

#define text_sentences ( x   )     ((x)->_text_holder_)
#define text_spec   "\--NEWGEN-START 92\n\sentence = formatted:string + unformatted:unformatted;\n\text = sentences:sentence*;\n\unformatted = label:string x number:int x extra_margin:int x words:string*;\n\"

Definition at line 150 of file text.h.

#define text_TYPE   text

Definition at line 87 of file text.h.

#define TEXT_TYPE   text

Definition at line 86 of file text.h.

#define text_undefined   ((text)gen_chunk_undefined)
#define text_undefined_p ( x   )     ((x)==text_undefined)

Definition at line 89 of file text.h.

#define UNFORMATTED ( x   )     ((unformatted)((x).p))

UNFORMATTED.

Definition at line 112 of file text.h.

#define UNFORMATTED_ ( x   )     ((x).e)

Definition at line 115 of file text.h.

#define UNFORMATTED_CAST ( x   )     UNFORMATTED(x)

Definition at line 114 of file text.h.

#define unformatted_CAST ( x   )     UNFORMATTED(x)

Definition at line 113 of file text.h.

#define unformatted_domain   (_gen_text_start+2)

_newgen_text_domain_defined_

Definition at line 26 of file text.h.

Referenced by check_unformatted(), and make_unformatted().

#define unformatted_domain_number ( x   )     ((x)->_type_)

Definition at line 140 of file text.h.

#define unformatted_extra_margin ( x   )     ((x)->_unformatted_extra_margin_)

Definition at line 146 of file text.h.

Referenced by debug_unformatted(), and print_sentence().

#define unformatted_extra_margin_ ( x   )     unformatted_extra_margin(x)

Definition at line 145 of file text.h.

#define unformatted_label ( x   )     ((x)->_unformatted_label_)

Definition at line 142 of file text.h.

Referenced by debug_unformatted(), print_sentence(), and text_trail().

#define unformatted_label_ ( x   )     unformatted_label(x)

Definition at line 141 of file text.h.

#define unformatted_NEWGEN_DOMAIN   (unformatted_domain)

Definition at line 30 of file text.h.

#define UNFORMATTED_NEWGEN_DOMAIN   (unformatted_domain)

Definition at line 29 of file text.h.

Referenced by gen_unformatted_cons().

#define unformatted_number ( x   )     ((x)->_unformatted_number_)

Definition at line 144 of file text.h.

Referenced by debug_unformatted(), and print_sentence().

#define unformatted_number_ ( x   )     unformatted_number(x)

Definition at line 143 of file text.h.

#define unformatted_TYPE   unformatted

Definition at line 117 of file text.h.

#define UNFORMATTED_TYPE   unformatted

Definition at line 116 of file text.h.

#define unformatted_undefined   ((unformatted)gen_chunk_undefined)

Definition at line 118 of file text.h.

Referenced by text_trail().

#define unformatted_undefined_p ( x   )     ((x)==unformatted_undefined)

Definition at line 119 of file text.h.

#define unformatted_words ( x   )     ((x)->_unformatted_words_)
#define unformatted_words_ ( x   )     unformatted_words(x)

Definition at line 147 of file text.h.


Typedef Documentation

Definition at line 15 of file text.h.

typedef struct _newgen_struct_text_* text

Definition at line 23 of file text.h.

Definition at line 31 of file text.h.


Enumeration Type Documentation

Enumerator:
is_sentence_formatted 
is_sentence_unformatted 

Definition at line 54 of file text.h.

00054                     {
00055   is_sentence_formatted,
00056   is_sentence_unformatted
00057 };


Function Documentation

sentence check_sentence ( sentence   ) 

Definition at line 21 of file src/Libs/newgen/text.c.

References gen_check(), and sentence_domain.

Referenced by sentence_consistent_p().

00021                                     {
00022   return (sentence) gen_check((gen_chunk*) p, sentence_domain);
00023 }

Here is the call graph for this function:

Here is the caller graph for this function:

text check_text ( text   ) 

Definition at line 58 of file src/Libs/newgen/text.c.

References gen_check(), and text_domain.

Referenced by text_consistent_p().

00058                         {
00059   return (text) gen_check((gen_chunk*) p, text_domain);
00060 }

Here is the call graph for this function:

Here is the caller graph for this function:

unformatted check_unformatted ( unformatted   ) 

Definition at line 89 of file src/Libs/newgen/text.c.

References gen_check(), and unformatted_domain.

Referenced by unformatted_consistent_p().

00089                                              {
00090   return (unformatted) gen_check((gen_chunk*) p, unformatted_domain);
00091 }

Here is the call graph for this function:

Here is the caller graph for this function:

sentence copy_sentence ( sentence   ) 

SENTENCE.

Definition at line 15 of file src/Libs/newgen/text.c.

References gen_copy_tree().

00015                                    {
00016   return (sentence) gen_copy_tree((gen_chunk*) p);
00017 }

Here is the call graph for this function:

text copy_text ( text   ) 

TEXT.

Definition at line 52 of file src/Libs/newgen/text.c.

References gen_copy_tree().

Referenced by test_rwt().

00052                        {
00053   return (text) gen_copy_tree((gen_chunk*) p);
00054 }

Here is the call graph for this function:

Here is the caller graph for this function:

unformatted copy_unformatted ( unformatted   ) 

UNFORMATTED.

Definition at line 83 of file src/Libs/newgen/text.c.

References gen_copy_tree().

00083                                             {
00084   return (unformatted) gen_copy_tree((gen_chunk*) p);
00085 }

Here is the call graph for this function:

void free_sentence ( sentence   ) 

Definition at line 18 of file src/Libs/newgen/text.c.

References gen_free().

00018                                {
00019   gen_free((gen_chunk*) p);
00020 }

Here is the call graph for this function:

void free_text ( text   ) 
void free_unformatted ( unformatted   ) 

Definition at line 86 of file src/Libs/newgen/text.c.

References gen_free().

00086                                      {
00087   gen_free((gen_chunk*) p);
00088 }

Here is the call graph for this function:

list gen_sentence_cons ( sentence  ,
list   
)

Definition at line 31 of file src/Libs/newgen/text.c.

References gen_typed_cons(), and SENTENCE_NEWGEN_DOMAIN.

00031                                            {
00032   return gen_typed_cons(SENTENCE_NEWGEN_DOMAIN, p, l);
00033 }

Here is the call graph for this function:

list gen_text_cons ( text  ,
list   
)

Definition at line 68 of file src/Libs/newgen/text.c.

References gen_typed_cons(), and TEXT_NEWGEN_DOMAIN.

00068                                    {
00069   return gen_typed_cons(TEXT_NEWGEN_DOMAIN, p, l);
00070 }

Here is the call graph for this function:

list gen_unformatted_cons ( unformatted  ,
list   
)

Definition at line 99 of file src/Libs/newgen/text.c.

References gen_typed_cons(), and UNFORMATTED_NEWGEN_DOMAIN.

00099                                                  {
00100   return gen_typed_cons(UNFORMATTED_NEWGEN_DOMAIN, p, l);
00101 }

Here is the call graph for this function:

sentence make_sentence ( enum  sentence_utype,
void *   
)

Definition at line 40 of file src/Libs/newgen/text.c.

References gen_alloc(), GEN_CHECK_ALLOC, and sentence_domain.

Referenced by add_one_unformated_printf_to_text(), add_to_current_line(), aliases_text(), append_marged_text(), build_a_clone_for(), C_any_comment_to_text(), c_text_related_entities(), close_current_line(), compilation_unit_text(), create_HRE_module(), generate_alternate_return_targets(), get_declaration_comments(), get_header_comments(), include(), init_text_statement(), make_pred_commentary_sentence(), make_sentence_formatted(), make_sentence_unformatted(), sentence_area(), sentence_basic_declaration(), sentence_data(), sentence_data_statement(), sentence_external(), sentence_goto_label(), sentence_head(), sentence_symbolic(), sentence_variable(), store_sc_text_line(), stub_head(), stub_text(), stub_var_decl(), text_array_comp_regions(), text_array_regions(), text_block(), text_block_elseif(), text_block_if(), text_block_ifthen(), text_complexity(), text_continuation_conditions(), text_entity_declaration(), text_forloop(), text_initializations(), text_instruction(), text_io_block_if(), text_logical_if(), text_loop(), text_loop_cmf(), text_loop_craft(), text_loop_default(), text_microtasked_loop(), text_named_module(), text_region(), text_region_no_action(), text_statement_enclosed(), text_summary_complexity(), text_trail(), text_transformer(), text_unstructured(), text_vectorized_loop(), and text_whileloop().

00040                                                             {
00041   return (sentence) gen_alloc(3*sizeof(gen_chunk), GEN_CHECK_ALLOC, sentence_domain, tag, val);
00042 }

Here is the call graph for this function:

sentence make_sentence_formatted ( string   ) 

Definition at line 43 of file src/Libs/newgen/text.c.

References is_sentence_formatted, and make_sentence().

00043                                                  {
00044   return make_sentence(is_sentence_formatted, (void*) _field_);
00045 }

Here is the call graph for this function:

sentence make_sentence_unformatted ( unformatted   ) 

Definition at line 46 of file src/Libs/newgen/text.c.

References is_sentence_unformatted, and make_sentence().

00046                                                         {
00047   return make_sentence(is_sentence_unformatted, (void*) _field_);
00048 }

Here is the call graph for this function:

text make_text ( list   ) 

Definition at line 77 of file src/Libs/newgen/text.c.

References gen_alloc(), GEN_CHECK_ALLOC, and text_domain.

Referenced by __attribute__(), aliases_text(), anyloop_rwt(), C_any_comment_to_text(), C_standard_comment_to_text(), c_text_entities(), c_text_related_entities(), callgraph_module_name(), compilation_unit_text(), empty_text(), find_simple_for_like_variable(), generate_alternate_return_targets(), get_any_comp_regions_text(), get_any_effects_text(), get_continuation_condition_text(), get_real_call_filtered_proper_effects(), get_semantic_text(), get_text_proper_effects_flt(), include(), init_text_statement(), instruction_rwt(), print_code_or_source(), print_code_or_source_comp(), print_code_static_control(), print_loops(), print_module_icfg(), print_parallelized_code_common(), print_parallelizedCMF_code(), print_parallelizedCRAFT_code(), simple_effects_to_text(), statement_flt(), store_sc_text_line(), string_predicate_to_commentary(), stub_text(), test_rwt(), text_all_comp_regions(), text_array_comp_regions(), text_array_regions(), text_block(), text_block_else(), text_block_elseif(), text_block_if(), text_block_ifthen(), text_comp_region(), text_comp_regions(), text_complexity(), text_continuation(), text_continuation_conditions(), text_cray(), text_directive(), text_entity_declaration(), text_equivalence_class(), text_equivalences(), text_forloop(), text_initializations(), text_instruction(), text_io_block_if(), text_logical_if(), text_loop(), text_loop_cmf(), text_loop_craft(), text_loop_default(), text_microtasked_loop(), text_named_module(), text_of_parameters(), text_points_to(), text_reductions(), text_region(), text_region_no_action(), text_statement_any_effect_type(), text_statement_enclosed(), text_summary_any_effect_type(), text_summary_complexity(), text_trail(), text_transformer(), text_unstructured(), text_vectorized_loop(), and text_whileloop().

00077                        {
00078   return (text) gen_alloc(2*sizeof(gen_chunk), GEN_CHECK_ALLOC, text_domain, a);
00079 }

Here is the call graph for this function:

unformatted make_unformatted ( string  ,
intptr_t  ,
intptr_t  ,
list   
)
sentence read_sentence ( FILE *   ) 

Definition at line 37 of file src/Libs/newgen/text.c.

References gen_read().

00037                                 {
00038   return (sentence) gen_read(f);
00039 }

Here is the call graph for this function:

text read_text ( FILE *   ) 

Definition at line 74 of file src/Libs/newgen/text.c.

References gen_read().

00074                         {
00075   return (text) gen_read(f);
00076 }

Here is the call graph for this function:

unformatted read_unformatted ( FILE *   ) 

Definition at line 105 of file src/Libs/newgen/text.c.

References gen_read().

00105                                       {
00106   return (unformatted) gen_read(f);
00107 }

Here is the call graph for this function:

bool sentence_consistent_p ( sentence   ) 

Definition at line 24 of file src/Libs/newgen/text.c.

References check_sentence(), and gen_consistent_p().

00024                                        {
00025   check_sentence(p);
00026   return gen_consistent_p((gen_chunk*) p);
00027 }

Here is the call graph for this function:

bool sentence_defined_p ( sentence   ) 

Definition at line 28 of file src/Libs/newgen/text.c.

References gen_defined_p().

00028                                     {
00029   return gen_defined_p((gen_chunk*) p);
00030 }

Here is the call graph for this function:

bool text_consistent_p ( text   ) 

Definition at line 61 of file src/Libs/newgen/text.c.

References check_text(), and gen_consistent_p().

Referenced by add_words_to_text(), and get_semantic_text().

00061                                {
00062   check_text(p);
00063   return gen_consistent_p((gen_chunk*) p);
00064 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool text_defined_p ( text   ) 

Definition at line 65 of file src/Libs/newgen/text.c.

References gen_defined_p().

00065                             {
00066   return gen_defined_p((gen_chunk*) p);
00067 }

Here is the call graph for this function:

bool unformatted_consistent_p ( unformatted   ) 

Definition at line 92 of file src/Libs/newgen/text.c.

References check_unformatted(), and gen_consistent_p().

00092                                              {
00093   check_unformatted(p);
00094   return gen_consistent_p((gen_chunk*) p);
00095 }

Here is the call graph for this function:

bool unformatted_defined_p ( unformatted   ) 

Definition at line 96 of file src/Libs/newgen/text.c.

References gen_defined_p().

00096                                           {
00097   return gen_defined_p((gen_chunk*) p);
00098 }

Here is the call graph for this function:

void write_sentence ( FILE *  ,
sentence   
)

Definition at line 34 of file src/Libs/newgen/text.c.

References gen_write().

00034                                          {
00035   gen_write(f, (gen_chunk*) p);
00036 }

Here is the call graph for this function:

void write_text ( FILE *  ,
text   
)

Definition at line 71 of file src/Libs/newgen/text.c.

References gen_write().

00071                                  {
00072   gen_write(f, (gen_chunk*) p);
00073 }

Here is the call graph for this function:

void write_unformatted ( FILE *  ,
unformatted   
)

Definition at line 102 of file src/Libs/newgen/text.c.

References gen_write().

00102                                                {
00103   gen_write(f, (gen_chunk*) p);
00104 }

Here is the call graph for this function:

Generated by  doxygen 1.6.2-20100208