print.c 706 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. #include "u.h"
  10. #include "../port/lib.h"
  11. #include "mem.h"
  12. #include "dat.h"
  13. #include "fns.h"
  14. static Lock fmtl;
  15. void
  16. _fmtlock(void)
  17. {
  18. lock(&fmtl);
  19. }
  20. void
  21. _fmtunlock(void)
  22. {
  23. unlock(&fmtl);
  24. }
  25. int
  26. _efgfmt(Fmt* fmt)
  27. {
  28. return -1;
  29. }
  30. void
  31. fmtinit(void)
  32. {
  33. quotefmtinstall();
  34. archfmtinstall();
  35. }