Module: Dylan-User Synopsis: Environment Protocols Author: Andy Armstrong, Chris Page, Roman Budzianowski Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND //--- Useful module so that all of the environment libraries see the //--- same set of names, and get the same exclusions. define module environment-imports use functional-dylan, exclude: { slot-setter, slot-getter, slot-type, slot-allocation, range-by, range-to, method-specializers, application-filename, application-arguments }, export: all; use streams, export: all; use format, export: all; use threads, export: all; use date, export: all; use file-system, export: all; use operating-system, rename: { application-filename => os/application-filename, application-arguments => os/application-arguments, run-application => os/run-application }, export: all; use channels, export: all; use settings, export: all; use locators, export: all; use plists, export: all; use machine-words, export: { }; use collectors, export: all; use machine-words, import: { u%+ => mw/+, u%- => mw/- }, export: all; use memory-manager, import: { collect-garbage }, export: all; use source-records, export: all; use file-source-records, export: all; use release-info, export: all; end module environment-imports; define module environment-protocols use environment-imports; // Server objects export , , , condition-project, condition-object, record-client-query, server-project; // IDs export , , , , , , , id-filename, id-generic-function, id-library, id-line-number, id-module, id-name, id-specializers; // Environment objects export , , , note-object-properties-changed, environment-object-id, environment-object-exists?, environment-object-primitive-name, get-environment-object-primitive-name, environment-object-basic-name, environment-object-display-name, environment-object-unique-name, environment-object-type, environment-object-type-name, environment-object-source, environment-object-source-location, environment-object-home-server?, environment-object-home-name, environment-object-name, environment-object-library, find-environment-object, make-environment-object, parse-environment-object-name, parse-module-name, print-environment-object, print-environment-object-to-string, print-environment-object-name, print-environment-object-name-to-string, source-location-environment-object; // Environment options export ; // Compiler objects export , compiler-object-proxy, invalidate-compiler-proxy; // Application objects export , , application-object-class, application-object-proxy, application-object-proxy-setter, application-object-address, invalidate-application-proxy; // Unbound objects export , $unbound-object; // Address objects export , , , , $invalid-address-object, address-application-object, address-to-string, string-to-address, indirect-address, indexed-address, address-read-memory-contents, address-read-application-object; // Register objects export , , application-registers, do-application-registers, register-contents, register-contents-address, lookup-register-by-name; // Component objects export , component-image-filename, component-version, component-version-string, lookup-component-by-name, application-components, do-application-components; // Application and compiler objects export ; // Composite objects export , composite-object-size, composite-object-contents; // User objects export , user-object-slot-value, user-object-slot-values; // User class info export , user-class-info-class, user-class-info-id, user-object-class-mappings; // Internal objects export ; // Foreign objects export ; // Dylan objects export , , , , $dylan-library-id, $dylan-module-id, $dylan-extensions-module-id, $dispatch-engine-module-id, $-id, $-id, $-id, $-id; // Dylan expression objects export , , ; // Dylan application objects export , , , , , number-object-to-string; // Boolean objects export , boolean-object-true?, $true-object, $false-object; // Collection objects export , , , , , , collection-size, collection-keys, collection-elements, do-collection-keys, do-collection-elements, range-start, range-end, range-by, pair-head, pair-tail; // Source forms export , do-used-definitions, do-client-source-forms, source-form-has-clients?, source-form-uses-definitions?, source-form-used-definitions, source-form-clients; // Macro calls export , do-macro-call-source-forms, macro-call-source-forms; // Non-definition source forms export , ; // Definition objects export , definition-modifiers, definition-interactive-locations, definition-known-locations, find-named-definition; // Breakpoints export , , , , , , , , , , $default-breakpoint-stop?, $default-breakpoint-message?, $default-breakpoint-transient?, $default-breakpoint-enabled?, $default-breakpoint-profile?, $default-breakpoint-test, $default-breakpoint-entry-function?, $default-breakpoint-directions, destroy-breakpoint, initialize-breakpoint, reinitialize-breakpoint, do-generic-breakpoint-methods, current-stop-breakpoints, find-breakpoint, project-breakpoints, source-location-breakpoints, environment-object-breakpoints, breakpoint-object, breakpoint-object-setter, breakpoint-project, breakpoint-stop?, breakpoint-stop?-setter, breakpoint-message?, breakpoint-message?-setter, breakpoint-transient?, breakpoint-transient?-setter, breakpoint-enabled?, breakpoint-enabled?-setter, breakpoint-profile?, breakpoint-profile?-setter, breakpoint-test, breakpoint-test-setter, breakpoint-entry-function?, breakpoint-entry-function?-setter, breakpoint-entry-point?, breakpoint-entry-point?-setter, breakpoint-directions, breakpoint-directions-setter, note-breakpoint-state-changed, server-note-breakpoint-state-changed, \with-compressed-breakpoint-state-changes, do-with-compressed-breakpoint-state-changes, note-breakpoint-state-changes-failed, trace-function; // Threads objects export , thread-stack-trace, thread-complete-stack-trace, thread-index, thread-state, thread-runtime-state, thread-runtime-state-setter, thread-suspended?, thread-suspended?-setter, create-application-thread, suspend-application-thread, resume-application-thread, thread-current-interactor-level, add-application-object-to-thread-history, application-default-interactor-thread; // Restarts export , application-thread-restarts, application-restart-message, application-restart-abort?, invoke-application-restart; // Machines export , machine-network-address, machine-hostname, environment-host-machine, do-machine-connections, close-connection-to-machine, machine-connection-open?, , , , , failed-connection, failed-network-address, failed-password, , debug-iterator; // A function that calls debug-message("%=", x) // for any argument x. From the debugger, this // can be used to test DO-xxx protocols. // Processes export , process-host-machine, process-executable-file, process-id, lookup-process-by-id, process-debuggable?, do-active-processes, do-processes-on-machine; // Not for use by clients, and // not documented. // Applications export , , , \with-application-transaction, perform-application-transaction, application-startup-option, application-client, application-machine, application-filename, application-arguments, application-temporary-stop?, application-temporary-stop?-setter, application-state, application-state-setter, application-threads, application-running?, application-stopped?, application-closed?, application-tethered?, application-debug?, application-pause-before-termination?, application-just-hit-breakpoint?, application-just-hit-dylan-error?, application-just-hit-error?, application-just-interacted?, application-just-stepped?, application-stop-reason-message, close-application, continue-application, ensure-application-proxy, find-application-proxy, application-proxy-id, run-application, initialize-application-client, attach-live-application, note-run-application-failed, stop-application, make-project-application, step-application-into, step-application-over, step-application-out, update-application, note-application-initialized; // Compiler databases export , ensure-database-proxy, find-compiler-database-proxy, compiler-database-proxy-id, invalidate-compiler-database; // Project objects export , , , , , active-project, active-project-setter, project-name, project-properties, project-properties-setter, project-proxy, project-proxy-setter, project-application, project-application-setter, project-compiler-database, project-compiler-database-setter, project-database-changed?, project-sources-changed?, project-opened-by-user?, project-opened-by-user?-setter, project-used-libraries, project-used-projects, do-project-used-libraries, do-project-file-libraries, do-used-projects, edit-source-location, edit-source-record, edit-definition, open-project, find-project, create-new-user-project, open-project-from-file, create-exe-project-from-file, import-project-from-file, close-project, project-add-source-record, project-remove-source-record, project-reorder-source-records, save-project, save-project-database, open-projects, current-project, current-project-setter, project-library, project-start-function-name, project-start-function-name-setter, project-start-function, project-read-only?, project-can-be-built?, project-can-be-debugged?, project-compiled?, project-sources, project-canonical-sources, project-canonical-source-record, project-canonical-filename, project-other-sources, project-directory, project-filename, project-build-filename, project-build-filename-setter, project-full-build-filename, project-debug-filename, project-debug-filename-setter, project-debug-arguments, project-debug-arguments-setter, project-debug-machine-address, project-debug-machine-address-setter, project-debug-machine, project-debug-machine-setter, project-debug-directory, project-debug-directory-setter, project-build-directory, project-bin-directory, project-release-directory, project-server-path, project-compilation-mode, project-compilation-mode-setter, project-compiler-back-end, project-compiler-back-end-setter, project-target-type, project-target-type-setter, project-interface-type, project-interface-type-setter, project-base-address, project-base-address-setter, project-major-version, project-major-version-setter, project-minor-version, project-minor-version-setter, find-project-source-record, find-source-record-library, session-property, session-property-setter, source-record-top-level-forms, source-record-projects, source-record-colorization-info, open-project-compiler-database, parse-project-source, build-project, remove-project-build-products, default-build-script, default-build-script-setter, link-project, note-user-project-opened; // Playground export find-playground-project, playground-project-name, playground-project?, playground-application-filename; // File extensions export environment-locator-type, executable-file-extension, project-file-extension, lid-file-extension, dylan-file-extension; // Interactive evaluation export project-execute-code, project-macroexpand-code, project-valid-code?, project-runtime-context, record-return-values, application-state-at-code-entry, , , execution-info-id, execution-info-thread, project-execution-info, project-remove-execution-info, project-bind-variable, fetch-interactor-return-values, dispose-interactor-return-values, transaction-id-source-record; // Name objects export , , , name-value, name-type, name-imported?, name-exported?; // Namespace objects export , find-name, name-namespace, namespace-names, do-namespace-names; // Library objects export , find-library, library-modules, library-default-module, library-project, library-project-filename, library-filename, library-interactive?, library-read-only?, library-read-only?-setter, do-library-modules; // Module objects export , file-module, find-module, module-project-proxy, do-module-definitions, module-definitions; // Macros export ; // Variable objects export , , , , variable-type, variable-value; // Constant objects export ; // Functions export , , , , , , , , , , , , function-parameters, do-generic-function-methods, generic-function-object-methods, method-generic-function, method-specializers, parameter-name, parameter-type, parameter-keyword, parameter-default-value; // Domains export , domain-specializers; // Type objects export ; // Singleton objects export , singleton-value; // Classes export , do-direct-subclasses, do-direct-superclasses, do-direct-methods, do-direct-slots, do-all-methods, do-all-superclasses, do-all-slots, do-init-keywords, class-direct-subclasses, class-direct-superclasses, class-direct-methods, class-direct-slots, class-slots; // Slots export , slot-class, slot-getter, slot-setter, slot-type, slot-init-kind, slot-init-keyword, slot-allocation; // Local variable objects export ; // Stack frame objects export , stack-frame-function, stack-frame-environment-object, stack-frame-source-location, stack-frame-thread, stack-frame-type, stack-frame-next-frame, stack-frame-previous-frame, stack-frame-local-variables, stack-frame-local-variable-count; // Compiler warnings export , , , , , compiler-warning-short-message, compiler-warning-full-message, environment-object-proxy, warning-owner, do-compiler-warnings, project-warnings, source-form-compiler-warnings; // Condition objects export ; // DUIM objects export , , , , , , duim-object-composite?, do-duim-object-children, duim-object-children; // Profiling export , profiling-enabled?, project-default-profile-options, project-default-profile-options-setter, project-last-profile, profile-snapshot-available-values, start-profiling-application, ensure-profiling-started, stop-profiling-application, clear-profiling-results, process-profiling-results; // Profiling options export , , , , profile-sampling-options, profile-sampling-style, profile-sampling-rate, profile-snapshot-options, profile-snapshot-values, profile-snapshot-stack-depth; // Profile results export , application-profile-options, application-profile-snapshots, do-application-profile-snapshots, application-profile-threads, do-application-profile-threads, application-total-snapshots, application-total-wall-time, application-total-wall-time-setter, application-total-page-faults, application-total-page-faults-setter, , application-snapshot-wall-time, application-snapshot-page-faults, application-snapshot-thread-snapshot, application-snapshot-thread-snapshots, do-application-snapshot-thread-snapshots, thread-profile-snapshots, do-thread-profile-snapshots, , thread-snapshot-thread, thread-snapshot-cpu-time, thread-snapshot-allocated-class, thread-snapshot-allocation, thread-snapshot-stack-size, thread-snapshot-frame-snapshots, process-thread-snapshot-frame-snapshots, thread-snapshot-functions, do-thread-snapshot-functions, , frame-snapshot-function, frame-snapshot-source-location; // Channels export $project-channel, , , , , , , , , , message-project, , , , , message-breakpoint-state, message-breakpoint, message-breakpoints, , , message-enabled?; // Application messages export , , , , , , , , message-thread, message-transaction-id, message-warnings; // Printing utilities export print-source-location, application-state-label, thread-state-label; end module environment-protocols;