Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a6fb7c00
Kaydet (Commit)
a6fb7c00
authored
Ock 30, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove TEST, DEBUG and dead code.
üst
0b5a3e73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
hwpeq.cpp
hwpfilter/source/hwpeq.cpp
+2
-17
No files found.
hwpfilter/source/hwpeq.cpp
Dosyayı görüntüle @
a6fb7c00
...
@@ -39,9 +39,6 @@ using namespace std;
...
@@ -39,9 +39,6 @@ using namespace std;
#include "hwpeq.h"
#include "hwpeq.h"
#include <sal/types.h>
#include <sal/types.h>
#include <sal/macros.h>
#include <sal/macros.h>
//#define TEST
//#define DEBUG
/* @Man: hwp수식을 LaTeX으로 바꾸기 */
/* @Man: hwp수식을 LaTeX으로 바꾸기 */
#ifdef WIN32
#ifdef WIN32
...
@@ -537,8 +534,7 @@ static int next_token(MzString &white, MzString &token, istream *strm)
...
@@ -537,8 +534,7 @@ static int next_token(MzString &white, MzString &token, istream *strm)
}
}
else
else
token
<<
(
char
)
ch
;
token
<<
(
char
)
ch
;
// cout << "WHITE : " << "|" << white.c_str() << "|" << endl ;
// cout << "TOKEN : " << "|" << token.c_str() << "|" << endl ;
return
token
.
length
();
return
token
.
length
();
}
}
...
@@ -580,11 +576,7 @@ static int eq_word(MzString& outs, istream *strm, int status)
...
@@ -580,11 +576,7 @@ static int eq_word(MzString& outs, istream *strm, int status)
int
ch
,
result
,
nargs
;
int
ch
,
result
,
nargs
;
char
keyword
[
256
];
char
keyword
[
256
];
hwpeq
*
eq
;
hwpeq
*
eq
;
#ifdef DEBUG
static
int
slevel
=
0
;
slevel
++
;
#endif
next_token
(
white
,
token
,
strm
);
next_token
(
white
,
token
,
strm
);
if
(
token
.
length
()
<=
0
)
if
(
token
.
length
()
<=
0
)
return
0
;
return
0
;
...
@@ -641,11 +633,7 @@ static int eq_word(MzString& outs, istream *strm, int status)
...
@@ -641,11 +633,7 @@ static int eq_word(MzString& outs, istream *strm, int status)
}
}
}
}
outs
<<
state
;
outs
<<
state
;
#ifdef DEBUG
//if( slevel == 1 )
// cout << "LEVEL[" << slevel << "]" << state << "\n";
slevel
--
;
#endif
return
result
;
return
result
;
}
}
...
@@ -749,9 +737,6 @@ void eq2latex(MzString& outs, char *s)
...
@@ -749,9 +737,6 @@ void eq2latex(MzString& outs, char *s)
istringstream
tstrm
(
s
);
istringstream
tstrm
(
s
);
bool
eqnarray
=
eq_sentence
(
tstr
,
&
tstrm
);
bool
eqnarray
=
eq_sentence
(
tstr
,
&
tstrm
);
#ifdef TEST
cout
<<
"Step1: "
<<
endl
<<
tstr
.
c_str
()
<<
endl
;
#endif
istringstream
strm
(
tstr
.
c_str
());
istringstream
strm
(
tstr
.
c_str
());
if
(
eqnarray
)
if
(
eqnarray
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment