Lines Matching refs:out

552     sds out = sdsempty();  in cliFormatReplyTTY()  local
555 out = sdscatprintf(out,"(error) %s\n", r->str); in cliFormatReplyTTY()
558 out = sdscat(out,r->str); in cliFormatReplyTTY()
559 out = sdscat(out,"\n"); in cliFormatReplyTTY()
562 out = sdscatprintf(out,"(integer) %lld\n",r->integer); in cliFormatReplyTTY()
567 out = sdscatrepr(out,r->str,r->len); in cliFormatReplyTTY()
568 out = sdscat(out,"\n"); in cliFormatReplyTTY()
571 out = sdscat(out,"(nil)\n"); in cliFormatReplyTTY()
575 out = sdscat(out,"(empty list or set)\n"); in cliFormatReplyTTY()
601 out = sdscatprintf(out,_prefixfmt,i == 0 ? "" : prefix,i+1); in cliFormatReplyTTY()
605 out = sdscatlen(out,tmp,sdslen(tmp)); in cliFormatReplyTTY()
615 return out; in cliFormatReplyTTY()
664 sds out = sdsempty(), tmp; in cliFormatReplyRaw() local
672 out = sdscatlen(out,r->str,r->len); in cliFormatReplyRaw()
673 out = sdscatlen(out,"\n",1); in cliFormatReplyRaw()
690 out = sdsCatColorizedLdbReply(out,r->str,r->len); in cliFormatReplyRaw()
693 out = sdscatlen(out,r->str,r->len); in cliFormatReplyRaw()
697 out = sdscatprintf(out,"%lld",r->integer); in cliFormatReplyRaw()
701 if (i > 0) out = sdscat(out,config.mb_delim); in cliFormatReplyRaw()
703 out = sdscatlen(out,tmp,sdslen(tmp)); in cliFormatReplyRaw()
711 return out; in cliFormatReplyRaw()
717 sds out = sdsempty(); in cliFormatReplyCSV() local
720 out = sdscat(out,"ERROR,"); in cliFormatReplyCSV()
721 out = sdscatrepr(out,r->str,strlen(r->str)); in cliFormatReplyCSV()
724 out = sdscatrepr(out,r->str,r->len); in cliFormatReplyCSV()
727 out = sdscatprintf(out,"%lld",r->integer); in cliFormatReplyCSV()
730 out = sdscatrepr(out,r->str,r->len); in cliFormatReplyCSV()
733 out = sdscat(out,"NIL"); in cliFormatReplyCSV()
738 out = sdscatlen(out,tmp,sdslen(tmp)); in cliFormatReplyCSV()
739 if (i != r->elements-1) out = sdscat(out,","); in cliFormatReplyCSV()
747 return out; in cliFormatReplyCSV()
753 sds out = NULL; in cliReadReply() local
811 out = cliFormatReplyRaw(reply); in cliReadReply()
814 out = cliFormatReplyRaw(reply); in cliReadReply()
815 out = sdscat(out,"\n"); in cliReadReply()
817 out = cliFormatReplyTTY(reply,""); in cliReadReply()
819 out = cliFormatReplyCSV(reply); in cliReadReply()
820 out = sdscat(out,"\n"); in cliReadReply()
823 fwrite(out,sdslen(out),1,stdout); in cliReadReply()
824 sdsfree(out); in cliReadReply()