~ubuntu-branches/ubuntu/wily/afnix/wily

« back to all changes in this revision

Viewing changes to src/srv/wax/shl/Predwax.cpp

  • Committer: Package Import Robot
  • Author(s): Nobuhiro Iwamatsu
  • Date: 2015-07-11 02:00:35 UTC
  • mfrom: (10.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20150711020035-2nhpztq7s15qyc0v
Tags: 2.5.1-1
* New upstream release. (Closes: #789968)
* Update debian/control.
  - Update Standards-Version to 3.9.6.
* Add support mips64(el) and ppc64el. (Closes: #741508, #748146)
* Add patches/support-gcc-5.x.patch. (Closes: #777767)
  - Fix build with gcc-5.x.
* Add patches/Disable-NET0001.als.patch.
  - Disable test of NET0001.als.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
// - the copyright holder be liable for any  direct, indirect, incidental or -
12
12
// - special damages arising in any way out of the use of this software.     -
13
13
// ---------------------------------------------------------------------------
14
 
// - copyright (c) 1999-2012 amaury darsch                                   -
 
14
// - copyright (c) 1999-2015 amaury darsch                                   -
15
15
// ---------------------------------------------------------------------------
16
16
 
17
17
#include "Cons.hpp"
30
30
#include "XhtmlDiv.hpp"
31
31
#include "XhtmlPre.hpp"
32
32
#include "XhtmlRef.hpp"
 
33
#include "JsonMime.hpp"
33
34
#include "XhtmlMime.hpp"
34
35
#include "XhtmlMeta.hpp"
35
36
#include "XhtmlLink.hpp"
40
41
#include "XhtmlTxtb.hpp"
41
42
#include "XhtmlTxtt.hpp"
42
43
#include "Exception.hpp"
 
44
#include "XhtmlForm.hpp"
 
45
#include "XhtmlText.hpp"
43
46
#include "XhtmlThead.hpp"
44
47
#include "XhtmlTbody.hpp"
45
48
#include "XhtmlTfoot.hpp"
47
50
#include "XhtmlTitle.hpp"
48
51
#include "XhtmlEquiv.hpp"
49
52
#include "XhtmlStyle.hpp"
 
53
#include "XhtmlCanvas.hpp"
 
54
#include "XhtmlSubmit.hpp"
50
55
#include "XhtmlScript.hpp"
 
56
#include "XhtmlOption.hpp"
 
57
#include "XhtmlHidden.hpp"
51
58
#include "XhtmlCaption.hpp"
52
59
 
53
60
namespace afnix {
73
80
    return new Boolean (result);
74
81
  }
75
82
 
 
83
  // jsonp: json mime object predicate
 
84
  
 
85
  Object* wax_jsonp (Runnable* robj, Nameset* nset, Cons* args) {
 
86
    Object* obj = get_obj (robj, nset, args, "json-mime-p");
 
87
    bool result = (dynamic_cast <JsonMime*> (obj) == nilp) ? false : true;
 
88
    Object::cref (obj);
 
89
    return new Boolean (result);
 
90
  }
 
91
 
76
92
  // xmlmp: xml mime object predicate
77
93
 
78
94
  Object* wax_xmlmp (Runnable* robj, Nameset* nset, Cons* args) {
271
287
    return new Boolean (result);
272
288
  }
273
289
 
274
 
  // sscript: xhtml script object predicate
 
290
  // canvasp: xhtml canvas object predicate
 
291
 
 
292
  Object* wax_canvasp (Runnable* robj, Nameset* nset, Cons* args) {
 
293
    Object* obj = get_obj (robj, nset, args, "xhtml-canvas-p");
 
294
    bool result = (dynamic_cast <XhtmlCanvas*> (obj) == nilp) ? false : true;
 
295
    Object::cref (obj);
 
296
    return new Boolean (result);
 
297
  }
 
298
 
 
299
  // scriptp: xhtml script object predicate
275
300
 
276
301
  Object* wax_scriptp (Runnable* robj, Nameset* nset, Cons* args) {
277
302
    Object* obj = get_obj (robj, nset, args, "xhtml-script-p");
396
421
    Object::cref (obj);
397
422
    return new Boolean (result);
398
423
  }
 
424
 
 
425
  // formp: xhtml form object predicate
 
426
 
 
427
  Object* wax_formp (Runnable* robj, Nameset* nset, Cons* args) {
 
428
    Object* obj = get_obj (robj, nset, args, "xhtml-form-p");
 
429
    bool result = (dynamic_cast <XhtmlForm*> (obj) == nilp) ? false : true;
 
430
    Object::cref (obj);
 
431
    return new Boolean (result);
 
432
  }
 
433
 
 
434
  // formp: xhtml input text object predicate
 
435
 
 
436
  Object* wax_textp (Runnable* robj, Nameset* nset, Cons* args) {
 
437
    Object* obj = get_obj (robj, nset, args, "xhtml-text-p");
 
438
    bool result = (dynamic_cast <XhtmlText*> (obj) == nilp) ? false : true;
 
439
    Object::cref (obj);
 
440
    return new Boolean (result);
 
441
  }
 
442
 
 
443
  // subtp: xhtml input submit object predicate
 
444
 
 
445
  Object* wax_subtp (Runnable* robj, Nameset* nset, Cons* args) {
 
446
    Object* obj = get_obj (robj, nset, args, "xhtml-submit-p");
 
447
    bool result = (dynamic_cast <XhtmlSubmit*> (obj) == nilp) ? false : true;
 
448
    Object::cref (obj);
 
449
    return new Boolean (result);
 
450
  }
 
451
 
 
452
  // optnp: xhtml select option object predicate
 
453
 
 
454
  Object* wax_optnp (Runnable* robj, Nameset* nset, Cons* args) {
 
455
    Object* obj = get_obj (robj, nset, args, "xhtml-option-p");
 
456
    bool result = (dynamic_cast <XhtmlOption*> (obj) == nilp) ? false : true;
 
457
    Object::cref (obj);
 
458
    return new Boolean (result);
 
459
  }
 
460
 
 
461
  // hidep: xhtml input hidden object predicate
 
462
 
 
463
  Object* wax_hidep (Runnable* robj, Nameset* nset, Cons* args) {
 
464
    Object* obj = get_obj (robj, nset, args, "xhtml-hide-p");
 
465
    bool result = (dynamic_cast <XhtmlHidden*> (obj) == nilp) ? false : true;
 
466
    Object::cref (obj);
 
467
    return new Boolean (result);
 
468
  }
399
469
}