gumbo-parser/src/tokenizer_states.h in nokogumbo-1.5.0 vs gumbo-parser/src/tokenizer_states.h in nokogumbo-2.0.0.pre.alpha
- old
+ new
@@ -1,34 +1,18 @@
-// Copyright 2011 Google Inc. All Rights Reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-// Author: jdtang@google.com (Jonathan Tang)
-//
-// This contains the list of states used in the tokenizer. Although at first
+#ifndef GUMBO_TOKENIZER_STATES_H_
+#define GUMBO_TOKENIZER_STATES_H_
+
+// This contains the list of states used in the tokenizer. Although at first
// glance it seems like these could be kept internal to the tokenizer, several
// of the actions in the parser require that it reach into the tokenizer and
-// reset the tokenizer state. For that to work, it needs to have the
+// reset the tokenizer state. For that to work, it needs to have the
// definitions of individual states available.
//
// This may also be useful for providing more detailed error messages for parse
// errors, as we can match up states and inputs in a table without having to
// clutter the tokenizer code with lots of precise error messages.
-#ifndef GUMBO_TOKENIZER_STATES_H_
-#define GUMBO_TOKENIZER_STATES_H_
-
// The ordering of this enum is also used to build the dispatch table for the
// tokenizer state machine, so if it is changed, be sure to update that too.
typedef enum {
GUMBO_LEX_DATA,
GUMBO_LEX_CHAR_REF_IN_DATA,
@@ -98,6 +82,6 @@
GUMBO_LEX_AFTER_DOCTYPE_SYSTEM_ID,
GUMBO_LEX_BOGUS_DOCTYPE,
GUMBO_LEX_CDATA
} GumboTokenizerEnum;
-#endif // GUMBO_TOKENIZER_STATES_H_
+#endif // GUMBO_TOKENIZER_STATES_H_