comparison scripts/gethelp.cc @ 8019:0ef13e15319b

replace NPOS with std::string::npos
author John W. Eaton <jwe@octave.org>
date Thu, 07 Aug 2008 15:15:33 -0400
parents 93c65f2a5668
children 93cf10950334
comparison
equal deleted inserted replaced
8018:8487847eb092 8019:0ef13e15319b
24 #define __USE_STD_IOSTREAM 24 #define __USE_STD_IOSTREAM
25 #endif 25 #endif
26 26
27 #include <string> 27 #include <string>
28 #include <iostream> 28 #include <iostream>
29
30 #ifndef NPOS
31 #define NPOS std::string::npos
32 #endif
33 29
34 static bool 30 static bool
35 looks_like_octave_copyright (const std::string& s) 31 looks_like_octave_copyright (const std::string& s)
36 { 32 {
37 // Perhaps someday we will want to do more here, so leave this as a 33 // Perhaps someday we will want to do more here, so leave this as a