From 1bf29618a4bceef237750ae589085d2e7337f290 Mon Sep 17 00:00:00 2001 From: vorlon Date: Sun, 15 Jun 2008 01:55:18 +0000 Subject: take 3.2.0rc2 back off of the upstream branch; everything should now be in order git-svn-id: svn://svn.debian.org/svn/pkg-samba/branches/samba/upstream@1953 fc4039ab-9d04-0410-8cac-899223bdd6b0 --- docs/htmldocs/Samba3-Developers-Guide/parsing.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/htmldocs/Samba3-Developers-Guide/parsing.html') diff --git a/docs/htmldocs/Samba3-Developers-Guide/parsing.html b/docs/htmldocs/Samba3-Developers-Guide/parsing.html index f05ac6c042..6f85776e01 100644 --- a/docs/htmldocs/Samba3-Developers-Guide/parsing.html +++ b/docs/htmldocs/Samba3-Developers-Guide/parsing.html @@ -1,4 +1,4 @@ -Chapter 11. The smb.conf file

Chapter 11. The smb.conf file

Chris Hertel

November 1997

Lexical Analysis

+Chapter 11. The smb.conf file

Chapter 11. The smb.conf file

Chris Hertel

November 1997

Lexical Analysis

Basically, the file is processed on a line by line basis. There are four types of lines that are recognized by the lexical analyzer (params.c): @@ -25,7 +25,7 @@ ignores them. The latter two line types are scanned for These are the only tokens passed to the parameter loader (loadparm.c). Parameter names and values are divided from one another by an equal sign: '='. -

Handling of Whitespace

+

Handling of Whitespace

Whitespace is defined as all characters recognized by the isspace() function (see ctype(3C)) except for the newline character ('\n') The newline is excluded because it identifies the end of the line. @@ -40,7 +40,7 @@ the exception of carriage return characters ('\r'), all of which are removed.

  • Leading and trailing whitespace is removed from names and values. -

  • Handling of Line Continuation

    +

    Handling of Line Continuation

    Long section header and parameter lines may be extended across multiple lines by use of the backslash character ('\\'). Line continuation is ignored for blank and comment lines. @@ -63,7 +63,7 @@ line, plus the four preceeding the word 'with' in the second line. Line continuation characters are ignored on blank lines and at the end of comments. They are *only* recognized within section and parameter lines. -

    Line Continuation Quirks

    Note the following example:

    +

    Line Continuation Quirks

    Note the following example:

     	param name = parameter value string \
         \
         with line continuation.
    @@ -87,7 +87,7 @@ terminating character, and the rest of the line is ignored.  The lines
     

    are read as

     	[section name]
         param name = value
    -

    Syntax

    The syntax of the smb.conf file is as follows:

    +

    Syntax

    The syntax of the smb.conf file is as follows:

       <file>            :==  { <section> } EOF
       <section>         :==  <section header> { <parameter line> }
       <section header>  :==  '[' NAME ']'
    @@ -106,7 +106,7 @@ terminating character, and the rest of the line is ignored.  The lines
     	A parameter line is divided into a NAME and a VALUE.  The *first*
     	equal sign on the line separates the NAME from the VALUE.  The
     	VALUE is terminated by a newline character (NL = '\n').
    -

    About params.c

    +

    About params.c

    The parsing of the config file is a bit unusual if you are used to lex, yacc, bison, etc. Both lexical analysis (scanning) and parsing are performed by params.c. Values are loaded via callbacks to -- cgit v1.2.3