~vibhavp/ubuntu/raring/spl/merge-from-debian

« back to all changes in this revision

Viewing changes to README.API

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2006-08-21 08:21:06 UTC
  • mto: (3.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20060821082106-6glercj8mn0un53l
Tags: upstream-1.0~pre2
ImportĀ upstreamĀ versionĀ 1.0~pre2

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
                statement.
321
321
 
322
322
        SPL_LOOKUP_NOCTX
323
 
        SPL_LOOKUP_COW
324
323
        SPL_LOOKUP_NOSTATIC
325
324
                These are used internally in recursive spl_lookup() calls,
326
325
                example given when looking something up in the class
343
342
        SPL_CREATE_NOSTATIC
344
343
                Used internally.
345
344
 
 
345
        SPL_CREATE_FUNCLOCAL
 
346
                Create function local unless already defined in a local
 
347
                command block. This is used internally for storing regular
 
348
                expression results.
 
349
 
346
350
The following two functions from the "time" module are used to convert a
347
351
UNIX 'tm' struct to an SPL data structure and vice versa. I think this is
348
352
an excelent example for using spl_lookup() and spl_create():
511
515
            
512
516
            /* initialize hnd */
513
517
            
514
 
            struct spl_node *n = spl_get(0);
 
518
            struct spl_node *n = SPL_NEW_STRING_DUP("SDL Sprite");
515
519
            n->hnode_name = strdup("sdl_sprite");
516
520
            n->hnode_data = hnd;
517
521