bad8d0a212
- Fix dependencies - Respect C{C,XX} and C[XX]FLAGS - Fix spelling typo in pkg-descr, kill dots/space at EOLs - Utilize DATADIR in pkg-plist - Take maintainership
22 lines
634 B
C++
22 lines
634 B
C++
--- src/projects.cc.orig Sat Dec 9 23:13:32 2000
|
|
+++ src/projects.cc Thu Apr 7 19:10:08 2005
|
|
@@ -100,13 +100,13 @@
|
|
int pos = name.rfind('.');
|
|
|
|
if(pos != name.npos){
|
|
- if(!name.compare(".h",pos,2))
|
|
+ if(!name.compare(pos,2,".h"))
|
|
res = C_HEADER;
|
|
- if(!name.compare(".c",pos,2)||
|
|
- !name.compare(".C",pos,2)||
|
|
- !name.compare(".cc",pos,3)||
|
|
- !name.compare(".cpp",pos,4)||
|
|
- !name.compare(".cxx",pos,4))
|
|
+ if(!name.compare(pos,2,".c")||
|
|
+ !name.compare(pos,2,".C")||
|
|
+ !name.compare(pos,3,".cc")||
|
|
+ !name.compare(pos,4,".cpp")||
|
|
+ !name.compare(pos,4,".cxx"))
|
|
res = C_SOURCE;
|
|
};
|
|
|