Changeset 57


Ignore:
Timestamp:
Oct 9, 2006, 9:55:55 PM (19 years ago)
Author:
ktk
Message:

Some fixes which were wrong according to the DTD, changed license.

Location:
DOV
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • DOV/bibl.xml

    r54 r57  
    1 <bibliography xmlns="http://docbook.org/ns/docbook">
     1<bibliography>
    22        <title>References</title>
    33       
  • DOV/book.xml

    r54 r57  
    4646               
    4747                <legalnotice>
    48                         <para>This work is licensed under the Creative Commons Attribution License. To
    49                                 view a copy of this license, visit <ulink
    50                                         url="http://creativecommons.org/licenses/by/2.0/"/> or send a
    51                                 letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California
    52                                 94305, USA.</para>
     48                        <para>This work is licensed under the Creative Commons
     49                                Attribution-NonCommercial-NoDerivs 2.5 License. To view a copy of this
     50                                license, visit <ulink
     51                                        url="http://creativecommons.org/licenses/by-nc-nd/2.5/"/> or
     52                                send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford,
     53                                California 94305, USA.</para>
    5354                </legalnotice>
    5455               
  • DOV/ch03.xml

    r54 r57  
    11<?xml version='1.0'?>
    2 <!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3b2/docbookx.dtd">
     2<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3b2/docbookx.dtd">
    33<chapter id="dov.vom">
    44
     
    4444      which is encapsulated and come with object methods to work with
    4545      them. For example one doesn&apos;t copy a file by using a
    46       filemanager or the desktop application and calling some
    47       <function>copy()</function> API of the operating system. Instead
    48       a method on the file object is invoked and the file object
    49       handles the copying on itself.</para>
     46      filemanager or the desktop application and calling some <function>
     47      copy()</function> API of the operating system. Instead a method
     48      on the file object is invoked and the file object handles the
     49      copying on itself.</para>
    5050
    5151      <para>Every object is an instance of a class which is registered
     
    238238      <title>Memory Management</title>
    239239
    240       <para>Using <function>wpAllocMem()</function> and
    241       <function>wpFreeMem()</function> allocated memory is tracked in
    242       an inuse list. Whenever an object is deleted or goes dormant this
    243       list is scanned by the system and memory still allocated will be
    244       freed automatically. Nevertheless memory not in use anymore
    245       should be freed by the programmer as usual because the desktop
    246       does not include a garbage collector. The inuse list should be
    247       considered as a kind of safety net.</para>
     240      <para>Using <function>wpAllocMem()</function> and <function>
     241      wpFreeMem()</function> allocated memory is tracked in an inuse
     242      list. Whenever an object is deleted or goes dormant this list is
     243      scanned by the system and memory still allocated will be freed
     244      automatically. Nevertheless memory not in use anymore should be
     245      freed by the programmer as usual because the desktop does not
     246      include a garbage collector. The inuse list should be considered
     247      as a kind of safety net.</para>
    248248
    249249      <warning>
    250250
    251         <para>While the usual memory function like
    252         <function>malloc()</function>, <function>g_alloc()</function>,
    253         <function>SOMMAlloc()</function> are available to desktop
    254         developers it is strongly adviced to only use
    255         <function>wpAllocMem()</function> and
    256         <function>wpFreeMem()</function>.</para>
     251        <para>While the usual memory function like <function>
     252        malloc()</function>, <function>g_alloc()</function>, <function>
     253        SOMMAlloc()</function> are available to desktop developers it
     254        is strongly adviced to only use <function>
     255        wpAllocMem()</function> and <function>
     256        wpFreeMem()</function>.</para>
    257257
    258258      </warning>
     
    262262        <listitem>
    263263
    264           <title>Memory allocation with
    265           <function>wpAllocMem()</function></title>
    266 
     264          <bridgehead>Memory allocation with <function>
     265          wpAllocMem()</function></bridgehead>
    267266          <para>A programmer asks for memory using</para>
    268267
    269           <funcsynopsis><funcprototype><funcdef>int
    270           <function>wpAllocMem</function></funcdef> <paramdef>WPObject
    271           <parameter>somSelf</parameter></paramdef> <paramdef>ULONG
    272           <parameter>cbBytes</parameter></paramdef>
    273           <paramdef><parameter>...</parameter></paramdef></funcprototype></funcsynopsis>
     268          <funcsynopsis><funcprototype><funcdef>int <function>
     269          wpAllocMem</function></funcdef><paramdef>WPObject <parameter>
     270          somSelf</parameter></paramdef><paramdef>ULONG <parameter>
     271          cbBytes</parameter></paramdef><paramdef>
     272          <parameter>...</parameter></paramdef></funcprototype></funcsynopsis>
    274273          <para>This method is introduced by the
    275274          <classname>WPObject</classname> class.</para>
     
    305304          variables. The inuse list is such a critical resource so
    306305          <function>wpAddToObjUseList()</function> tries to aquire the
    307           objects semaphor using
    308           <function>wpRequestObjectSem()</function>.</para>
     306          objects semaphor using <function>
     307          wpRequestObjectSem()</function>.</para>
    309308
    310309          <warning>
     
    319318        <listitem>
    320319
    321           <title>Freeing memory with
    322           <function>wpFreeMem()</function></title>
    323 
    324           <para>Memory is freed using
    325           <synopsis>wpFreeMem()</synopsis></para>
     320          <bridgehead>Freeing memory with <function>
     321          wpFreeMem()</function></bridgehead>
     322          <para>Memory is freed using <synopsis>
     323          wpFreeMem()</synopsis></para>
    326324
    327325          <para>This method introduced by
     
    330328          block (see the section about memory allocation). Using a
    331329          pointer to the USEITEM the memory is removed from the objects
    332           inuse list using
    333           <function>wpDeleteFromObjUseList()</function>.</para>
     330          inuse list using <function>
     331          wpDeleteFromObjUseList()</function>.</para>
    334332
    335333          <para>Be aware that this method tries to aquire the object
Note: See TracChangeset for help on using the changeset viewer.