~ubuntu-branches/ubuntu/raring/rheolef/raring-proposed

« back to all changes in this revision

Viewing changes to config/doc2man.flex

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito, Pierre Saramito, Sylvestre Ledru
  • Date: 2012-05-14 14:02:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120514140209-dzbdlidkotyflf9e
Tags: 6.1-1
[ Pierre Saramito ]
* New upstream release 6.1 (minor changes):
  - support arbitrarily polynomial order Pk
  - source code supports g++-4.7 (closes: #671996)

[ Sylvestre Ledru ]
* update of the watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
    string ref = input;
115
115
    return ref;
116
116
}
117
 
// get "geo", put "geo(3)"
118
 
string make_class_reference (const string& input)
119
 
{
120
 
    string ref = input + "(3)";
121
 
    refs.push_back(ref);
122
 
    return ref;
123
 
}
124
117
// get "geo", put "geo(1)"
125
118
string make_command_reference (const string& input)
126
119
{
128
121
    refs.push_back(ref);
129
122
    return ref;
130
123
}
 
124
// get "geo", put "geo(2)"
 
125
string make_class_reference (const string& input)
 
126
{
 
127
    string ref = input + "(2)";
 
128
    refs.push_back(ref);
 
129
    return ref;
 
130
}
 
131
// get "curl", put "curl(3)"
 
132
string make_form_reference (const string& input)
 
133
{
 
134
    string ref = input + "(3)";
 
135
    refs.push_back(ref);
 
136
    return ref;
 
137
}
 
138
// get "level_set", put "level_set(4)"
 
139
string make_algorithm_reference (const string& input)
 
140
{
 
141
    string ref = input + "(4)";
 
142
    refs.push_back(ref);
 
143
    return ref;
 
144
}
131
145
// strip "class}" or "command}" for @ref{}
132
146
void strip_pending_string (char* s_ptr, const char* pending)
133
147
{
337
351
                          arg_previous_state = YYSTATE;
338
352
                          BEGIN(ref);
339
353
                        }
 
354
<ref>([^}])*"command}"  { // end of class ref
 
355
                          strip_pending_string (yytext_ptr, "command}");
 
356
                          cout << make_command_reference(yytext_ptr);
 
357
                          in_quotation = false;
 
358
                          BEGIN(arg_previous_state);
 
359
                        }
340
360
<ref>([^}])*"class}"    { // end of class ref
341
361
                          strip_pending_string (yytext_ptr, "class}");
342
362
                          cout << make_class_reference(yytext_ptr);
343
363
                          in_quotation = false;
344
364
                          BEGIN(arg_previous_state);
345
365
                        }
346
 
<ref>([^}])*"command}"  { // end of class ref
347
 
                          strip_pending_string (yytext_ptr, "command}");
348
 
                          cout << make_command_reference(yytext_ptr);
 
366
<ref>([^}])*"form}"     { // end of form ref
 
367
                          strip_pending_string (yytext_ptr, "form}");
 
368
                          cout << make_form_reference(yytext_ptr);
 
369
                          in_quotation = false;
 
370
                          BEGIN(arg_previous_state);
 
371
                        }
 
372
<ref>([^}])*"algorithm}" { // end of algorithm ref
 
373
                          strip_pending_string (yytext_ptr, "algorithm}");
 
374
                          cout << make_algorithm_reference(yytext_ptr);
349
375
                          in_quotation = false;
350
376
                          BEGIN(arg_previous_state);
351
377
                        }