GETABLEXPRSUPPORT(3)

πŸ“¦ version 5.1.1, in fedora 43, fedora 44

πŸ’– GETABLEXPRSUPPORT πŸ’–

okay so bestie, welcome to the getablexprsupport page β€” straight out of the ABL FUNCTIONS section 3 of the manual, no cap. it's giving "i find out what your expression is actually made of" energy and honestly? iconic. πŸ¦‹


✨ NAME ✨

getablexprsupport β€” gives the expression's support. periodt. πŸ’…


🌸 ORIGIN 🌸

okay so this software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. like, France France. πŸ‡«πŸ‡·βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

#include "abl101.h"
 void βˆ—getablexprsupport( Expr, Mode )
  chain_list βˆ—Expr;
  int         Mode;

🧚 PARAMETERS 🧚

  • Expr β€” the expression. the main character, literally.
  • Mode β€” the mode of the returned support. you gotta tell it what shape you want your support in, bestie. 🫢

πŸ’œ DESCRIPTION πŸ’œ

so getablexprsupport gives you the support of Expr. and here's the vibe check: if Mode is ABL_SUPPORT_CHAIN, the support comes back as a chain_list; otherwise it comes back as a ptype_list. choose wisely, it's giving two totally different data structures. 😭

⚠️ the support must be freed using the freechain or freeptype functions. do NOT forget this. leaking memory is not cute. 🚨

⭐ RETURN VALUE ⭐

getablexprsupport returns a pointer to a chain_list or a ptype_list. depends on your Mode, iykyk. ✨


🌈 EXAMPLE 🌈

#include "abl101.h"
  chain_list βˆ—Expr;
  ptype_list βˆ—Support;
  ptype_list βˆ—ScanSupport;
  Expr = createablbinexpr( ABL_AND,
                           createablatom( "a" ),
                           createablatom( "b" ) );
  Support = getablexprsupport( Expr, ABL_SUPPORT_PTYPE );
  /* displays a b */
  for ( ScanSupport  = Support;
        ScanSupport != (ptype_list βˆ—)0;
        ScanSupport  = ScanSupport->NEXT )
  {
    printf( "%s ", (char *)ScanSupport->DATA );
  }
  freeptype( Support );

look at that loop walk through the list and print a b β€” we love a support reveal. πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹


πŸ‘‘ BUG REPORT πŸ‘‘

this tool is under development at the ASIM department of the LIP6 laboratory. we need your feedback to improve documentation and tools. fr fr, send the feedback, they're literally asking. πŸ™ˆπŸ’–


okay bye bestie, that's the whole page! this one came from ASIM/LIP6 and it's dated October 1, 1997, filed under GETABLEXPRSUPPORT(3). go free your support lists and slay. πŸ’…βœ¨πŸŒΈ