~ubuntu-branches/ubuntu/maverick/codelite/maverick

« back to all changes in this revision

Viewing changes to CxxParser/variable.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-04-30 02:46:27 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090430024627-7xp71gerfvw00xtt
Tags: 1.0.2822+dfsg-0ubuntu1
* New upstream release (LP: #369466)
* debian/copyright:
  + Added Files section for sdk/wxpropgrid
  + Made license text RFC compliant (add . for empty lines)
* debian/control:
  + Bump Standards-Version to 3.8.1
* debian/patches/02_fix-desktop.patch,
  + Refreshed to patch cleanly
* debian/*.install,
  debian/codelite.dirs,
  debian/codelite.links,
  debian/patches/03_fix-sh.patch,
  debian/patches/04_change-installpath.patch,
  + Updated for new upstream directory structure
  + Patches dropped, no longer needed.
* debian/patches/03_cstdio-include.patch,
  + Include cstdio for C++ and stdio.h for C, since it seems to be missing
* debian/codelite.menu,
  debian/*.1,
  debian/codelite.manpages:
  + Updated to reflect change in command names
    - CodeLite    => codelite
    - le_exec     => codelite_exec
    - le_dos2unix => codelite_fix_files
    - le_killproc => codelite_kill_children
* debian/README.source,
  debian/rules,
  debian/copyright:
  + Remove sdk/curl from the list of excluded files, since it doesn't exist
    any more

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        m_lineno = src.m_lineno;
28
28
        m_isConst = src.m_isConst;
29
29
        m_defaultValue = src.m_defaultValue;
 
30
        m_arrayBrackets = src.m_arrayBrackets;
30
31
        return *this;
31
32
}
32
33
 
43
44
        m_lineno = 0;
44
45
        m_isConst = false;
45
46
        m_defaultValue = "";
 
47
        m_arrayBrackets = "";
46
48
}
47
49
 
48
50
void Variable::Print()
49
51
{
50
 
        fprintf(        stdout, "{m_name=%s, m_defaultValue=%s, m_lineno=%d, m_starAmp=%s, m_type=%s, m_isConst=%s, m_typeScope=%s, m_templateDecl=%s, m_isPtr=%s, m_isTemplate=%s }\n",
 
52
        fprintf(    stdout, "{m_name=%s, m_defaultValue=%s, m_lineno=%d, m_starAmp=%s, m_type=%s, m_isConst=%s, m_typeScope=%s, m_templateDecl=%s, m_arrayBrackets=%s, m_isPtr=%s, m_isTemplate=%s }\n",
51
53
                                m_name.c_str(),
52
54
                                m_defaultValue.c_str(),
53
55
                                m_lineno,
56
58
                                m_isConst ? "true" : "false",
57
59
                                m_typeScope.c_str(),
58
60
                                m_templateDecl.c_str(),
 
61
                                m_arrayBrackets.c_str(),
59
62
                                m_isPtr ? "true" : "false",
60
63
                                m_isTemplate ? "true" : "false");
 
64
 
61
65
        fprintf( stdout, "Pattern: %s\n", m_pattern.c_str());
62
66
        fflush(stdout);
63
67
}