Home | Links | Contact Us | More About Intellectual Property | Bookmark
Search patents:
Home I/O Systems System-and-method-for-enabling-pointers-to-be-passed-from-computer-programs-written-using-computer-programming-languages-that-do-not-support-pointers

 Digital copier operable with external storing medium
It is, therefore, an object of the present invention to provide a digital copier having an external ...


 Image communication apparatus
It is an object of the present invention to improve an image communication apparatus in ...


 Facsimile/telephone controller
OF THE INVENTION FIGS. 1a and 1b show a line sensing relay 14 and a double pole single throw latch ...


 High-frequency selecting switch terminal
OF THE INVENTION Referring to FIGS. 1 and 2, it can be seen that the housing (1) is threaded (11) ...


 High speed pipeline merge sorter with run length tuning mechanism
Accordingly, it is an object of the invention to provide a control data generator for a sort ...


 High speed pointer based first-in-first-out memory
One embodiment of a high-speed pointer-based FIFO memory system constructed in accordance with ...


 Circuits, systems and methods for preventing queue overflow in data processing systems
The principles of the present invention are preferably applied to circuits, systems, and methods ...


 Polled FIFO flags
It is desirable to provide a FIFO memory device which has polled status flags. It is also desirable ...


 Image forming system including interconnected and priority allocated image forming devices
The object of the present invention is to provide an image forming system characterized in (1) ...


 Method for allocating priorities to plurality of DMA engines for processing data packets based on bus phase and transactions status
The present invention provides a method and apparatus for processing data packets through direct ...


 System and method for enabling pointers to be passed from computer programs written using computer programming languages that do not support pointers

Details
Inventors: Wang, I-Shin Andy; Sharp, Frederick Thomas; Wu, Rita Shiao-yuan; Ng, John Shek-Luen; Hwang, Kuo-Wei; Chen, David Y.;
Assignee: International Business Machines Corp. (Armonk, NY)
Primary Examiner: Kriess; Kevin A.
Assistant Examiner: Chaki; Kakali
Attorney, Agent or Firm: Johnson; Prentiss Wayne Sterne, Kessler, Goldstein & Fox, pllc

Described herein is a system and method for enabling an application to pass a structure containing a pointer member to an external entity, wherein the application represents a computer program executing in a computer system, and the computer program is written in a computer programming language that does not support pointers. The application declares a variable V, a structure type having a member P, and a variable M of the structure type. The application invokes a function written in a computer programming language that supports pointers. A reference to the variable V is passed to the function. The function, when executed, obtains and returns an address of the variable V. The application sets the member P in the variable M equal to the address of the variable V. The application then passes the variable M to an external entity. In this manner, the present invention enables a structure having a pointer embedded therein to be passed to the external entity.

DETAILED DESCRIPTION Having thus described our invention, what we claim as new and desire to secure by letters patent is: 1.
A method performed by an application representing a computer program executing in a computer system, the computer program written in a computer programming language that does not support pointers, the method enabling the application to pass a pointer to an external entity, the method comprising the steps of: (1) declaring a variable V; (2) declaring a structure type having a member P; (3) declaring a variable M of said structure type; (4) invoking a function written in a computer programming language that supports pointers, a reference to said variable V being passed to said function, said function when executed obtaining and returning an address of said variable V; (5) setting said member P in said variable M equal to said address of said variable V; and (6) passing said variable M to an external entity.
2.
The method of claim 1, wherein step (2) comprises the step of: declaring a structure type having a member P of a data type, wherein memory allocated to an instance of said data type is greater than or equal to memory allocated to a pointer.
3.
The method of claim 2, wherein said data type is equal to long integer.
4.
The method of claim 1, wherein in step (1) said variable V is declared as a non-string, and wherein step (4) comprises the step of: invoking an ADDR function written in a computer programming language that supports pointers, a reference to said variable V being passed to said ADDR function, said ADDR function when executed performing the steps of: (i) receiving said reference to said variable V; and (ii) returning said reference to said variable V.
5.
The method of claim 1, wherein in step (1) said variable V is declared as a string, and wherein step (4) comprises the step of: invoking an ADDR.
sub.
13 STRING function written in a computer programming language that supports pointers, a reference to a handle associated with said variable V being passed to said ADDR



Related patents
  Digital copier enabling setting of a plurality of copying conditions in a single setting operation before copying is initiated
The present invention has been achieved in the light of such circumstances. An object of the present invention is to provide a digital copier which enables an operator ...
  System for data transfer across asynchronous interface
Briefly, the present invention includes a bridge with an input data register and multiple interface registers in one clock domain that can transfer data packets to a ...
  Data storage system
In accordance with one feature of the present invention, a computer/disk storage system interface is provided having disk controller, CPU controller, and cache memory ...
  Stored program logic system using a common exchange circuit
What is claimed is: 1. A stored program logic system for use with a plurality of peripheral equipments comprising: a data memory (1) having a plurality of addressed ...
  Magnetic memory organization
FIG. 1 shows a schematic diagram of an illustrative embodiment 10 of this invention. The memory comprises a layer 11 of magnetic material in which magnetic bubbles can ...
  Device for controlling the radiating output of a semiconductor laser
It is an object of the present invention to provide a device for controlling the radiating output of a semiconductor laser, the device being of a reduced cost since it ...
  Electronic apparatus with memory backup system
Accordingly, an object of the invention is to provide an electronic apparatus capable of exactly deciding, during interruption of power supply thereto, validity of data ...
  Compressed image virtual editing system
The present invention allows for pixel level manipulation of images that remain in a compressed form. In an image compression system using a typical image compression ...
  Pseudo-concurrent access to a cached shared resource
A method and apparatus is disclosed for efficiently controlling the access to a cached shared resource such as dynamic random access memory (DRAM). The access is ...
  Interface module for telephone lines
OF THE INVENTION 1. Architecture of the Basic Module FIG. 1 is a schematic diagram of the architecture of two identical modules 10 and 10' in accordance with the ...

0.064

Archive: All patents - Links

Copyright (c)2006 Eipa-patents.org - All rights reserved