/[svn]/liblscp/trunk/examples/parser.c
ViewVC logotype

Diff of /liblscp/trunk/examples/parser.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1018 by capela, Sun Dec 3 18:30:04 2006 UTC revision 1019 by capela, Thu Jan 11 12:33:05 2007 UTC
# Line 2  Line 2 
2  //  //
3  /****************************************************************************  /****************************************************************************
4     liblscp - LinuxSampler Control Protocol API     liblscp - LinuxSampler Control Protocol API
5     Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.
6    
7     This library is free software; you can redistribute it and/or     This library is free software; you can redistribute it and/or
8     modify it under the terms of the GNU Lesser General Public     modify it under the terms of the GNU Lesser General Public
# Line 95  int lscp_parser_nextint ( lscp_parser_t Line 95  int lscp_parser_nextint ( lscp_parser_t
95    
96  float lscp_parser_nextnum ( lscp_parser_t *pParser )  float lscp_parser_nextnum ( lscp_parser_t *pParser )
97  {  {
98          float ret = 0;          float ret = 0.0f;
99    
100          if (pParser->pszToken) {          if (pParser->pszToken) {
101                  ret = (float) atof(pParser->pszToken);                  ret = (float) atof(pParser->pszToken);

Legend:
Removed from v.1018  
changed lines
  Added in v.1019

  ViewVC Help
Powered by ViewVC