You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
604 B

  1. From C++ std:
  2. \begin{cppcode}
  3. void pop();
  4. \end{cppcode}
  5. \slidep
  6. From the C FLINT library:
  7. \begin{ccode}
  8. void fmpz_mod_poly_add(
  9. fmpz_mod_poly_t res,
  10. const fmpz_mod_poly_t poly1,
  11. const fmpz_mod_poly_t poly2);
  12. \end{ccode}
  13. \vspace{\baselineskip}
  14. \slidep
  15. Regular C functions in real-world (omitting examples on purpose):
  16. \begin{itemizep}
  17. \item 100+ LOC
  18. \item at least 7 ifs, 4 whiles, 12 variables, 1 goto
  19. \item accesses both static and global variables
  20. \item indenting level of 5 or more
  21. \item a lot of memory management and custom-made error handling
  22. \item references everywhere!
  23. \end{itemizep}