~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/xmerl/src/xmerl_sax_parser_list.erlsrc

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-08-05 20:54:29 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090805205429-pm4pnwew8axraosl
Tags: 1:13.b.1-dfsg-5
* Fixed parentheses in Emacs mode (closes: #536891).
* Removed unnecessary conflicts with erlang-manpages package.
* Added workaround for #475459: disabled threads on sparc architecture.
  This breaks wxErlang, so it's only a temporary solution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%%-*-erlang-*-
 
2
%%--------------------------------------------------------------------
 
3
%% %CopyrightBegin%
 
4
%% 
 
5
%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
 
6
%% 
 
7
%% The contents of this file are subject to the Erlang Public License,
 
8
%% Version 1.1, (the "License"); you may not use this file except in
 
9
%% compliance with the License. You should have received a copy of the
 
10
%% Erlang Public License along with this software. If not, it can be
 
11
%% retrieved online at http://www.erlang.org/.
 
12
%% 
 
13
%% Software distributed under the License is distributed on an "AS IS"
 
14
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
15
%% the License for the specific language governing rights and limitations
 
16
%% under the License.
 
17
%% 
 
18
%% %CopyrightEnd%
 
19
%%----------------------------------------------------------------------
 
20
%% File    : xmerl_sax_parser_list.erl
 
21
%% Description : 
 
22
%%
 
23
%% Created : 25 Apr 2008 
 
24
%%----------------------------------------------------------------------
 
25
-module(xmerl_sax_parser_list).
 
26
 
 
27
%%----------------------------------------------------------------------
 
28
%% Macros
 
29
%%----------------------------------------------------------------------
 
30
-define(STRING_EMPTY, []).
 
31
-define(STRING(MatchStr), MatchStr).
 
32
-define(STRING_REST(MatchStr, Rest), MatchStr ++ Rest).
 
33
-define(APPEND_STRING(Rest, New), Rest ++ New).
 
34
-define(TO_INPUT_FORMAT(Val), Val).
 
35
 
 
36
%%  In the list case we can't use a '++' when matchin against an unbound variable 
 
37
-define(STRING_UNBOUND_REST(MatchChar, Rest), [MatchChar | Rest]).
 
38
-define(BYTE_ORDER_MARK_1, undefined_bom1).
 
39
-define(BYTE_ORDER_MARK_2, undefined_bom2).
 
40
-define(BYTE_ORDER_MARK_REST(Rest), [undefined|Rest]).