Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Parameterized macro


Related Topics

In the News (Wed 11 Nov 09)

  
  php-deluxe.net - description Parameterized macro
As a simple example, in the C programming language, this is a typical macro that is not a parameterized macro: #define PI 3.14159 This causes the string PI to be replaced with 3.14159 wherever it occurs.
An example of a parameterized macro, on the other hand, is this: #define pred(x) ((x)-1) What this macro expands to depends on what argument (computer science) x is passed to it.
The parameterized macros used in languages such as Lisp programming language and Scheme programming language, on the other hand, are much more powerful, able to make decisions about what code to produce based on their arguments; thus, they can effectively be used to perform run-time code generation.
www.php-deluxe.net /encyclopedia,index.page,Parameterized-macro.htm   (190 words)

  
 [No title]
Parameterized macros include an options field, and perform argc/argv processing on white space separated tokens to the next newline.
During macro expansion, both flags and arguments are available as macros which are deleted at the end of macro expansion.
Those macros existed in rpm-2.5.x and the underscore is omitted in order to preserve the meaning and usage of macros that are defined during spec file parsing.
www.obsolyte.com /docs/rpm-3.0.3/macros   (786 words)

  
 CGREP 1 "June 15, 1995"
Within the body of a parameterized macro, the actual parameters may be referenced as `#1' through `#9'.
A macro name must start with a alphabetic character, and may include only alphanumeric characters and the character `_'.
An undefined macro is reported as a syntax error.
www.math.utah.edu /~beebe/fonts/manpages/cgrep.html   (1579 words)

  
 EETimes.com - Use macrocells to automate analog/mixed-signal design
When it comes to writing analog-cell generator macros, the highest efficiency is in components and cells that will be used a great deal across a number of projects so that the design time invested will be recouped.
A macro can save much time here, while guaranteeing that the connections to each well and gate are to the right supply and signal lines, that they are the proper width, and that the device has the appropriate well and gate spacing characteristics.
Parameterized cells for standard building blocks are available free of charge for the design flows of many EDA vendors.
www.eetimes.com /news/design/features/showArticle.jhtml?articleID=53701054   (2251 words)

  
 Parameterized macro - Wikipedia, the free encyclopedia
In computer science, a parameterized macro is a type of macro that is able to insert given objects into its expansion.
Parameterized macros are a useful source-level mechanism for performing in-line expansion, but in languages such as C where they use simple textual substitution, they have a number of severe disadvantages over other mechanisms for performing in-line expansion, such as inline functions.
The parameterized macros used in languages such as Lisp, PL/I and Scheme, on the other hand, are much more powerful, able to make decisions about what code to produce based on their arguments; thus, they can effectively be used to perform run-time code generation.
en.wikipedia.org /wiki/Parameterized_macro   (237 words)

  
 rpm: Macro syntax
At the end of invocation of a parameterized macro, the above macros are (at the moment, silently) discarded.
Within the body of a macro, there are several constructs that permit testing for the presence of optional parameters.
This will cause all occurrences of 1 in the macro definition to be replaced by the first argument to the macro, but only if the macro is invoked as "%mymacro 5".
www.uni-kiel.de /rz/altix-doc/doc/rpm-devel-4.2.3/apidocs/html/macros.html   (1032 words)

  
 U.S. Patent: 6121979 - Controllers for modifying shapes based on a control line placed at an arbitrary angle - ...
Parameterized Cell Reference Manual, Version 4.2.1, September 1992, available from Cadence, having a business address of 555 River Oaks Parkway, San Jose, Calif. 95134-1917, describes a product which uses parameterized cells as graphic, programmable cells which can be customized.
Macro compiler 25 is used to compile the macro.
This makes it possible to create a parameterized artwork macro (PAM) using a shape with some size (so it is easier to work with), and use the PAM without needing to know its initial size.
www.everypatent.com /comp/pat6121979.html   (6703 words)

  
 [No title]   (Site not responding. Last check: 2007-11-01)
Parameterized modules can be used to good effect to define implementations of collection ÒtypesÓ, i.e., arrays, lists, stacks, trees, etc., a capability of importance to the high performance computing community.
There are two main limitations upon the current parameterized derived types proposal that this proposal attempts to address: first the parameterized derived types proposal allows only parameterization by integers, while this proposal also allows parameterization by types; second, it is not clear how to use the parameterized derived types proposal to implement parameterization of procedures.
With parameterization it becomes much more useful to think about syntactic components such as modules and derived type constructs as types in themselves, in the same sense that procedures are objects with types.
members.aol.com /wclodius/97-117.txt   (1558 words)

  
 oracle.jdeveloper.externaltools.macro
Macro expanders are registered with the MacroRegistry and can be used to expand macros prior to running external tools.
Macros use information from the current JDeveloper context to pass into or influence the behavior of external tools.
A parameterized macro takes one or more parameters that can be used at expansion time.
www.oracle.com /technology/products/jdev/esdk/api1013/oracle/jdeveloper/externaltools/macro/package-summary.html   (435 words)

  
 C/C++ Programming
Macro replacement is the replacement of one string by another, conditional inclusion is the selective inclusion and exclusion of portions of source text on the basis of a computed condition, and file inclusion is the insertion of the text of a file into the current file.
Because the macros are used within expressions in the body of the program, it is not appropriate to end a macro with a semicolon.
The preprocessor performs two levels of replacement on parameterized macros: first the formal parameters in the body of the macro are replaced by the actual arguments, and then the resulting macro body is substituted for the macro call.
www-control.eng.cam.ac.uk /~pcr20/C_Manual/chap14.html   (2020 words)

  
 [No title]   (Site not responding. Last check: 2007-11-01)
Parameterization in practice has been found to be a particularly useful complement to object oriented programming capabilities.
Parameterized modules can be used to good effect to define implementations of collection ÒtypesÓ, i.e., arrays, lists, stacks, trees, etc., a capability of importance to the high performance computing community.
There are two main limitations upon the current parameterized derived types proposal that this proposal attempts to address: first the parameterized derived types proposal allows only parameterization by integers, while this proposal also allows parameterization by types; second, it is not clear how to use the parameterized derived types proposal to implement parameterization of procedures.
hometown.aol.com /wclodius/97-117.txt   (1558 words)

  
 C preprocessor - Wikipedia, the free encyclopedia
The macro could be defined implicitly by the compiler, or specified on the compiler's command line, perhaps to control compilation of the program from a makefile.
One stylistic note about this macro is that the semicolon on the last line of the macro definition is omitted so that the macro looks 'natural' when written.
Although macro expansion does not occur within a quoted string, the text of the macro arguments can be quoted and treated as a string literal by using the "#" directive.
en.wikipedia.org /wiki/C_preprocessor   (1550 words)

  
 Parameterized Macro Definition (PMD)
A macro is a literal name used in a program that is substituted by some value before the program is compiled.
Macros are useful as an alias without using program resources.
Parameterized macro definition (PMD) is something new in Verilog LRM2.0, although it has been there in other languages like C from the beginning.
www.angelfire.com /ca/verilog/pmd.html   (404 words)

  
 Aldor Compiler User Guide: Section II, Chapter 12: Source macros
Macros may consequently be defined to receive their arguments in groups, in a ``curried'' fashion.
Macro functions may appear directly in the source program, and may be written with their parameters in groups:
Since the macro uses the parameter in two places, the best practice is to introduce a new temporary variable so the argument is evaluated only once.
www.csd.uwo.ca /~watt/aldor/UserGuide/chap12.html   (625 words)

  
 EDN Access -- 10.26.95 Solving the configurable, core-based-chip puzzle: EDA tools put it together   (Site not responding. Last check: 2007-11-01)
A hard macro is a piece of logic that somebody has physically designed in a specific technology.
A soft macro is defined in a logical sense.
Soft macros come either in a netlist format with transistors and nodes defined or in a hardware-description-language (HDL) format, such as VHDL or Verilog.
www.edn.com /archives/1995/102695/22df2.htm   (3664 words)

  
 2.5 Parameterized Macros
No self-respecting macro preprocessor would be complete without some form of macro parameterization, and FunnelWeb is no exception.
To call a parameterized macro, an actual parameter list must be supplied that contains exactly the same number of actual parameters as there are formal parameters in the definition of the macro being called.
This time, parameters and macro calls are used in a FunnelWeb input file that constructs an O(n) representation of a song whose full size is O(n^2) in the number n of unique lines.
www.ross.net /funnelweb/tutorial/macro_param.html   (343 words)

  
 Проект OpenNet: MAN macros (3) Библиотечные вызовы (FreeBSD и Linux)
%0 the name of the macro being invoked %* all arguments (unlike shell, not including any processed flags) %# the number of arguments %{-f} if present at invocation, the flag f itself %{-f*} if present at invocation, the argument to flag f %1, %2 the arguments themselves (after getopt(3) processing)
Normally you will likely want to invoke a parameterized macro by using the % form so that parameters are expanded properly.
This will cause all occurances of %1 in the macro definition to be replaced by the first argument to the macro, but only if the macro is invoked as 'mymacro 5'.
www.opennet.ru /man.shtml?topic=macros&category=3&russian=2   (1132 words)

  
 Aldor Compiler User Guide: Section II, Chapter 12: Source macros
Macros may consequently be defined to receive their arguments in groups, in a ``curried'' fashion.
Macro functions may appear directly in the source program, and may be written with their parameters in groups:
Since the macro uses the parameter in two places, the best practice is to introduce a new temporary variable so the argument is evaluated only once.
www.aldor.org /docs/HTML/chap12.html   (614 words)

  
 C++ Development Environment - clu003
The generic package provides ways to simulate parameterized types by allowing the instantiation of class declarations using the macro facilities of the C++ preprocessor.
Declares the class specified by a macro with the name of the generic class.
Defines the noninline member functions of a class, specified by a macro with the name of the generic class.
h30097.www3.hp.com /cplus/clu003.htm   (717 words)

  
 generic Package
The generic package provides ways to simulate parameterized types by allowing the instantiation of class declarations using the macro facilities of the C++ preprocessor.
Macros provide preprocessor facilities for simulating parameterized types.
Defines the noninline member functions of a class, specified by a macro with the name of the generic class.
www.ph.unimelb.edu.au /~jfm/dec_cxx_5_7/u_cxxlrm0004.html   (671 words)

  
 Dr. Dobb's | Generic Containers in C++ | July 22, 2001
Parameterized types would allow you to easily write generic functions such as Max(), which returns the greater of two values.
For each generic class needed, define a macro function that will take one argument representing the class to be controlled.
GenListdeclare() is typical of the macro function names generated by declare(); its form is shown in Figure 1.
www.ddj.com /184408599;jsessionid=5GFJG3V5GP3NOQSNDLQCKH0CJUNN2JVN?_requestid=833673   (2050 words)

  
 Scheme Macro Programming
macro with informative failure reports, as a syntax-rule or a defmacro.
Therefore, macros tend to be monolithic, highly recursive, ad hoc, and requiring a revelation to write, and the equal revelation to understand.
Macros -- that is, syntax transformers and syntax objects -- can be stored in variables, passed to ordinary procedures and applied at run-time.
okmij.org /ftp/Scheme/macros.html   (4307 words)

  
 5.5 Fudging Conditionals
All debug code is wrapped by a call to this macro and so we can turn all the debug code on or off here by defining this macro to be either empty or its parameter.
The parameterized macro idea can be generalized to support the choice of more than one mutually exclusive alternative.
The main advantage of using a single macro is that the mutual exclusivity is enforced.
www.ross.net /funnelweb/tutorial/hints_conditionals.html   (577 words)

  
 Macros
If a value other than "-" appears in both the macro body and in the invocation of the macro, then the value in the invocation is examined and the appropriate action is taken (you will want to be running Shorewall 3.0.1 or later).
Macro names must be valid shell variable names ((must begin with a letter and be composed of letters, digits and underscore characters) as well as valid Netfilter chain names.
When you invoke a macro and specify a log level, only those rules in the macro that have no log level will be changed to log at the level specified at the action invocation.
www.shorewall.net /Macros.html   (1985 words)

  
 [No title]
For "simple" macros, this only // involves building a reversed sequence of tokens from the remainder of the // line and putting it in cpp-table.
However, if it is a parameterized macro // than we must also parse the parameter list and place it at the front of the // token sequence.
The expander identifies parameterized macros by the fact // that the first element of the token sequence is itself a sequence.
www.cs.cmu.edu /afs/cs.cmu.edu/project/gwydion-4/OldFiles/panda/workmelange/c-lexer-cpp.dylan   (1721 words)

  
 Product Info
The "SH" (execute shell) macro modifier executes the shell line defined by a macro and returns the output of the shell line.
Execute the macro value as a shell line and return the text output of the shell line as the value of the expansion.
Use the macro value as a file-system pattern and return the list of files or directories that match.
www.opussoftware.com /product/product.htm   (1426 words)

  
 .NET Generics for VB Programmers
The key is to separate data type from algorithm and parameterize the data type.
The new elements needed to define a generic method are the parentheses, the Of keyword, and an argument representing the generic type, as demonstrated by the (Of T) characters after the method name Swap.
Parameterized types can be limited to structures, classes, base classes, interfaces, and types that have a default constructor (Sub New with no parameters).
www.developer.com /net/vb/print.php/3521486   (704 words)

  
 [No title]   (Site not responding. Last check: 2007-11-01)
In this exercise, I explored the concept of micro and macro in parameterized form.
Here, macro means the whole space, which represents the possibile forms defined by the parameterization.
Oulipo probably would be one of the eariest attempt to explore this concept of possible space in literary experience.
users.design.ucla.edu /~tatsuyas/classes/152BC/ex2   (112 words)

  
 FunnelWeb Notation
Macros that are invoked in a macro that is not defined in this document are invoked in external files as described by Section 3 of Chapter 13.
Additive Macro: This macro is like the simple macro except that its definition may be distributed throughout the document.
This macro is invoked in definitions 3, 4 and 9.
chacs.nrl.navy.mil /5540/publications/CHACS/1996/newrptrTL/node29.html   (437 words)

  
 OSNews.com
It's hard to not like the idea of parameterized types, and it should be hard to not like many of the features present in C++ that are usually missing in other languages like specialization and partial specialization.
Another failing of C# generics is the absence of a feature like a "typedef" that would permit you to export instantiations of a parameterized type with a given type parameter with some typename.
It's the idea of perverting the feature to serve as a macro system that bothers me. I didn't use to feel this way, but the more I used stuff like Boost the more it pissed me off.
www.osnews.com /read_thread.php?news_id=16102&comment_id=169978   (846 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.