specparse.h #1

  • //
  • guest/
  • perforce_software/
  • p4/
  • 2016-1/
  • support/
  • specparse.h
  • View
  • Commits
  • Open Download .zip Download (493 B)
/*
 * Copyright 1995, 1996 Perforce Software.  All rights reserved.
 *
 * This file is part of Perforce - the FAST SCM System.
 */


enum SpecParseReturn {  
	SR_EOS,
	SR_TAG,
	SR_VALUE,
	SR_COMMENT,
	SR_COMMENT_NL,
	SR_DONEV
};

class SpecParse {
	
    public:

			SpecParse( const char *buffer );

	SpecParseReturn	GetToken( int isTextBlock, StrBuf *value, Error *e );
			
	void		ErrorLine( Error *e );

    private:

	SpecChar	c;
	int		state;
	int		savedBlankLines;
	int		addNewLine;

} ;

# Change User Description Committed
#1 19472 Liz Lam Initial add of the 2016.1 p4/p4api source code.