2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-03-31 12:00:42 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This class wraps up the creation (and destruction) of the standard
|
|
|
|
* set of atoms used by gklayout; the atoms are created when gklayout
|
|
|
|
* is loaded and they are destroyed when gklayout is unloaded.
|
|
|
|
*/
|
|
|
|
|
2006-01-19 03:58:12 +03:00
|
|
|
#include "nsGkAtoms.h"
|
2003-04-02 08:51:07 +04:00
|
|
|
#include "nsStaticAtom.h"
|
2008-07-30 12:50:48 +04:00
|
|
|
|
2011-10-11 09:50:08 +04:00
|
|
|
using namespace mozilla;
|
|
|
|
|
1999-07-18 04:24:47 +04:00
|
|
|
// define storage for all atoms
|
2017-10-03 01:05:19 +03:00
|
|
|
#define GK_ATOM(name_, value_) nsAtom* nsGkAtoms::name_;
|
2010-03-08 18:44:59 +03:00
|
|
|
#include "nsGkAtomList.h"
|
|
|
|
#undef GK_ATOM
|
|
|
|
|
|
|
|
#define GK_ATOM(name_, value_) NS_STATIC_ATOM_BUFFER(name_##_buffer, value_)
|
2006-01-19 03:58:12 +03:00
|
|
|
#include "nsGkAtomList.h"
|
|
|
|
#undef GK_ATOM
|
1998-04-14 00:24:54 +04:00
|
|
|
|
2006-01-19 03:58:12 +03:00
|
|
|
static const nsStaticAtom GkAtoms_info[] = {
|
2010-03-08 18:44:59 +03:00
|
|
|
#define GK_ATOM(name_, value_) NS_STATIC_ATOM(name_##_buffer, &nsGkAtoms::name_),
|
2006-01-19 03:58:12 +03:00
|
|
|
#include "nsGkAtomList.h"
|
|
|
|
#undef GK_ATOM
|
2003-02-22 18:58:07 +03:00
|
|
|
};
|
|
|
|
|
2006-01-19 03:58:12 +03:00
|
|
|
void nsGkAtoms::AddRefAtoms()
|
1998-04-14 00:24:54 +04:00
|
|
|
{
|
2012-03-09 06:22:57 +04:00
|
|
|
NS_RegisterStaticAtoms(GkAtoms_info);
|
1998-04-14 00:24:54 +04:00
|
|
|
}
|
|
|
|
|