Changeset 26531

Show
Ignore:
Timestamp:
2007-03-03 11:34:44 (4 years ago)
Author:
res2002
Message:

Texinfo markup fixes + few tweaks on the smart pointers + VC build sections.

Location:
CS/trunk/docs/texinfo
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • CS/trunk/docs/texinfo/build/extlibs.txi

    r26526 r26531  
    143143 
    144144This is needed to enable graphical output on a number of Unix-like operating  
    145 systems, most prominently @sc{gnu}/Linux.  It is \emph{not} needed for Windows 
     145systems, most prominently @sc{gnu}/Linux.  It is @emph{not} needed for Windows 
    146146or MacOS/X. 
    147147 
     
    158158@cindex Libraries, OpenGL 
    159159 
    160 OpenGL is needed to provide accelerated 3D graphics \emph{on all platforms}. 
     160OpenGL is needed to provide accelerated 3D graphics @emph{on all platforms}. 
    161161 
    162162No special effort is usually needed to install the development components on 
  • CS/trunk/docs/texinfo/build/platform/win32/msvc/msvc7.txi

    r26339 r26531  
    224224Q1. @emph{I'm using the Visual C++ 2005 Express Edition and I get a lot of  
    225225``file not found'' errors for @file{windef.h} and others. What is wrong?} 
     226 
    226227Q2. @emph{I'm using the Visual C++ 2005 Express Edition and I get a lot of  
    227228``unresolved symbol'' errors for names like  
     
    265266 
    266267@item 
    267 Q. @emph{I've got unresolved symbols.} 
    268  
    269 A. What kind of symbols? 
    270  
    271 @itemize @minus 
    272 @item 
    273 @samp{_png_@dots{}}: That means that you don't link the project with 
    274 @file{libpng.lib}.  Just take a look below where it is explained how to do so. 
    275  
    276 @item 
    277 @samp{_inflate@dots{}} and @samp{_deflate@dots{}}: Well, it seems to your 
    278 project lacks @file{zlib.lib}.  The trick is explained just below, so hang on. 
    279  
    280 @item 
    281 @samp{_DirectDraw@dots{}}: Same as above, but for @file{ddraw.lib} (DirectX 
    282 component), look below. 
    283  
    284 @item 
    285268Q. @emph{How can I reduce build times?} 
    286269 
     
    293276@item 
    294277Q. @emph{How can I reduce build sizes?} 
     278 
    295279A. Build only the projects you will need. 
     280 
    296281A. Turning off precompiled headers tends to save a large amount of file space 
    297282while increasing build times somewhat. 
    298283 
    299284@item 
    300 Any others: It seems that there is a missing source file in the project.   
    301  
    302 For Crystal Space the MSVC project files are generated once every 24 hours, so  
    303 normally all missing sources should have been added after that time.  If you 
    304 can't wait that long, or the file is still missing, contact one of the Crystal 
    305 Space developers. 
     285Q. @emph{It seems that there is a missing source file in the project.} 
     286 
     287A. For Crystal Space the MSVC project files are generated once every 24 hours,  
     288so normally all missing sources should have been added after that time.  If  
     289you can't wait that long, or the file is still missing, contact one of the  
     290Crystal Space developers. 
    306291 
    307292For third party projects it's usually the best idea to contact one of it's 
    308293developers, they should be able to tell you which file is missing. 
     294@end itemize 
    309295 
    310296@subsubheading Executing 
  • CS/trunk/docs/texinfo/build/sysreq.txi

    r26526 r26531  
    7272@item X Window System 
    7373This is needed to enable graphical output on a number of Unix-like operating  
    74 systems, most prominently @sc{gnu}/Linux. It is \emph{not} needed for Windows 
     74systems, most prominently @sc{gnu}/Linux. It is @emph{not} needed for Windows 
    7575or MacOS/X. 
    7676 
    7777@item OpenGL 
    78 OpenGL is needed to provide accelerated 3D graphics \emph{on all platforms}. 
     78OpenGL is needed to provide accelerated 3D graphics @emph{on all platforms}. 
    7979 
    8080Note that no special effort is usually needed to install the development  
  • CS/trunk/docs/texinfo/usingcs/scf/smartptr.txi

    r26378 r26531  
    9797need to be aware of the interactions with reference counting. 
    9898 
    99 Assigning a smart pointer to a normal pointer \emph{does not} change the  
     99Assigning a smart pointer to a normal pointer @emph{does not} change the  
    100100reference count of the object.  This can be beneficial as the reference  
    101101counting overhead is avoided.  It can also be dangerous, as the normal pointer  
     
    105105the normal pointer.  If that's not guaranteed use a @code{csRef<>} instead. 
    106106 
    107 Assigning a normal pointer to a smart pointer \emph{does} change the reference 
     107Assigning a normal pointer to a smart pointer @emph{does} change the reference 
    108108count: ownership is taken, ie the reference count is increased.  This can  
    109109cause a leaked reference in certain circumstances.  One notable instance is  
     
    114114leak. 
    115115 
    116 The recommend way to deal with that is to \emph{never} assign an object  
     116The recommend way to deal with that is to @emph{never} assign an object  
    117117allocated with @samp{new} to a smart pointer directly.  Instead use it's 
    118118@code{AttachNew()} method which will take care of the proper reference 
     
    399399@code{csRef<>} object to take ownership. 
    400400 
     401@example 
     402// Passing a csRef<iFoo> as parameter: usually unnecessary 
     403void Bar (csRef<iFoo>& stuff) @{ @dots{} @} 
     404 
     405// iFoo* is usually completely adequate 
     406void Baz (iFoo* stuff)  
     407@{  
     408  @dots{}  
     409  /* If 'stuff' runs the risk of being released you can always assign it to 
     410   * a csRef<> in the function body. */ 
     411  csRef<iFoo> keepRef = stuff; 
     412  @dots{}  
     413@} 
     414@end example 
     415 
    401416@subsubheading Warnings About csPtr<>! 
    402417