mostly indenting

This commit is contained in:
Vítor Santos Costa 2016-03-05 12:30:49 +00:00
parent 0fc0e96306
commit 0522720ff4

View File

@ -128,7 +128,6 @@ Int Yap_peek(int sno) {
s->status |= Push_Eof_Stream_f;
return ch;
}
}
if (s->encoding == ENC_OCTET || s->encoding == ENC_ISO_LATIN1 ||
s->encoding == ENC_ISO_ASCII) {
@ -168,15 +167,15 @@ Int Yap_peek(int sno) {
ungetc(lead % 256, s->file);
}
} else if (s->encoding == ENC_ISO_UTF32_LE) {
ungetc( (ch >> 24) & 0xff, s->file);
ungetc( (ch >> 16) & 0xff, s->file);
ungetc( (ch >> 8) & 0xff, s->file);
ungetc( ch & 0xff, s->file);
ungetc((ch >> 24) & 0xff, s->file);
ungetc((ch >> 16) & 0xff, s->file);
ungetc((ch >> 8) & 0xff, s->file);
ungetc(ch & 0xff, s->file);
} else if (s->encoding == ENC_ISO_UTF32_BE) {
ungetc( ch & 0xff, s->file);
ungetc( (ch >> 8) & 0xff, s->file);
ungetc( (ch >> 16) & 0xff, s->file);
ungetc( (ch >> 24) & 0xff, s->file);
ungetc(ch & 0xff, s->file);
ungetc((ch >> 8) & 0xff, s->file);
ungetc((ch >> 16) & 0xff, s->file);
ungetc((ch >> 24) & 0xff, s->file);
} else if (s->encoding == ENC_UCS2_BE) {
/* do the ungetc as if a write .. */
// computations
@ -1135,9 +1134,9 @@ leaving the current stream position unaltered.
*/
void Yap_flush(void) { CACHE_REGS(void)flush_all_streams(PASS_REGS1); }
void Yap_flush(void) { CACHE_REGS(void) flush_all_streams(PASS_REGS1); }
void Yap_FlushStreams(void) { CACHE_REGS(void)flush_all_streams(PASS_REGS1); }
void Yap_FlushStreams(void) { CACHE_REGS(void) flush_all_streams(PASS_REGS1); }
void Yap_InitCharsio(void) {
Yap_InitCPred("get", 2, get, SafePredFlag | SyncPredFlag);